2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
echo_test_string=`eval $cmd` &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
tagnames=${tagnames+${tagnames},}CXX
704
tagnames=${tagnames+${tagnames},}F77
706
exec 7<&0 </dev/null 6>&1
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
ac_default_prefix=/usr/local
718
ac_config_libobj_dir=.
724
SHELL=${CONFIG_SHELL-/bin/sh}
726
# Identity of this package.
733
ac_unique_file="acinclude.m4"
734
ac_default_prefix=${KDEDIR:-the kde prefix}
735
# Factoring default headers for most tests.
736
ac_includes_default="\
738
#ifdef HAVE_SYS_TYPES_H
739
# include <sys/types.h>
741
#ifdef HAVE_SYS_STAT_H
742
# include <sys/stat.h>
748
# ifdef HAVE_STDLIB_H
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758
#ifdef HAVE_STRINGS_H
759
# include <strings.h>
761
#ifdef HAVE_INTTYPES_H
762
# include <inttypes.h>
780
program_transform_name
833
INSTALL_STRIP_PROGRAM
870
unsermake_enable_pch_TRUE
871
unsermake_enable_pch_FALSE
877
ENABLE_PERMISSIVE_FLAG
883
KDE_USE_CLOSURE_FALSE
886
KDE_USE_NMCHECK_FALSE
1020
ac_precious_vars='build_alias
1038
# Initialize some variables set by options.
1040
ac_init_version=false
1041
# The variables have the same names as the options, with
1042
# dashes changed to underlines.
1043
cache_file=/dev/null
1050
program_transform_name=s,x,x,
1058
# Installation directory options.
1059
# These are left unexpanded so users can "make install exec_prefix=/foo"
1060
# and all the variables that are supposed to be based on exec_prefix
1061
# by default will actually change.
1062
# Use braces instead of parens because sh, perl, etc. also accept them.
1063
# (The list follows the same order as the GNU Coding Standards.)
1064
bindir='${exec_prefix}/bin'
1065
sbindir='${exec_prefix}/sbin'
1066
libexecdir='${exec_prefix}/libexec'
1067
datarootdir='${prefix}/share'
1068
datadir='${datarootdir}'
1069
sysconfdir='${prefix}/etc'
1070
sharedstatedir='${prefix}/com'
1071
localstatedir='${prefix}/var'
1072
includedir='${prefix}/include'
1073
oldincludedir='/usr/include'
1074
docdir='${datarootdir}/doc/${PACKAGE}'
1075
infodir='${datarootdir}/info'
1080
libdir='${exec_prefix}/lib'
1081
localedir='${datarootdir}/locale'
1082
mandir='${datarootdir}/man'
1088
# If the previous option needs an argument, assign it.
1089
if test -n "$ac_prev"; then
1090
eval $ac_prev=\$ac_option
1096
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1100
# Accept the important Cygnus configure options, so we can diagnose typos.
1102
case $ac_dashdash$ac_option in
1106
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1108
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1109
bindir=$ac_optarg ;;
1111
-build | --build | --buil | --bui | --bu)
1112
ac_prev=build_alias ;;
1113
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1114
build_alias=$ac_optarg ;;
1116
-cache-file | --cache-file | --cache-fil | --cache-fi \
1117
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1118
ac_prev=cache_file ;;
1119
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1120
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1121
cache_file=$ac_optarg ;;
1123
--config-cache | -C)
1124
cache_file=config.cache ;;
1126
-datadir | --datadir | --datadi | --datad)
1128
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1129
datadir=$ac_optarg ;;
1131
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1132
| --dataroo | --dataro | --datar)
1133
ac_prev=datarootdir ;;
1134
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1135
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1136
datarootdir=$ac_optarg ;;
1138
-disable-* | --disable-*)
1139
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1140
# Reject names that are not valid shell variable names.
1141
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1143
{ (exit 1); exit 1; }; }
1144
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1145
eval enable_$ac_feature=no ;;
1147
-docdir | --docdir | --docdi | --doc | --do)
1149
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1150
docdir=$ac_optarg ;;
1152
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1155
dvidir=$ac_optarg ;;
1157
-enable-* | --enable-*)
1158
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1159
# Reject names that are not valid shell variable names.
1160
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1162
{ (exit 1); exit 1; }; }
1163
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1164
eval enable_$ac_feature=\$ac_optarg ;;
1166
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1167
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1168
| --exec | --exe | --ex)
1169
ac_prev=exec_prefix ;;
1170
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1171
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1172
| --exec=* | --exe=* | --ex=*)
1173
exec_prefix=$ac_optarg ;;
1175
-gas | --gas | --ga | --g)
1176
# Obsolete; use --with-gas.
1179
-help | --help | --hel | --he | -h)
1180
ac_init_help=long ;;
1181
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1182
ac_init_help=recursive ;;
1183
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1184
ac_init_help=short ;;
1186
-host | --host | --hos | --ho)
1187
ac_prev=host_alias ;;
1188
-host=* | --host=* | --hos=* | --ho=*)
1189
host_alias=$ac_optarg ;;
1191
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1193
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1195
htmldir=$ac_optarg ;;
1197
-includedir | --includedir | --includedi | --included | --include \
1198
| --includ | --inclu | --incl | --inc)
1199
ac_prev=includedir ;;
1200
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1201
| --includ=* | --inclu=* | --incl=* | --inc=*)
1202
includedir=$ac_optarg ;;
1204
-infodir | --infodir | --infodi | --infod | --info | --inf)
1206
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1207
infodir=$ac_optarg ;;
1209
-libdir | --libdir | --libdi | --libd)
1211
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1212
libdir=$ac_optarg ;;
1214
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1215
| --libexe | --libex | --libe)
1216
ac_prev=libexecdir ;;
1217
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1218
| --libexe=* | --libex=* | --libe=*)
1219
libexecdir=$ac_optarg ;;
1221
-localedir | --localedir | --localedi | --localed | --locale)
1222
ac_prev=localedir ;;
1223
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1224
localedir=$ac_optarg ;;
1226
-localstatedir | --localstatedir | --localstatedi | --localstated \
1227
| --localstate | --localstat | --localsta | --localst | --locals)
1228
ac_prev=localstatedir ;;
1229
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1230
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1231
localstatedir=$ac_optarg ;;
1233
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1235
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1236
mandir=$ac_optarg ;;
1238
-nfp | --nfp | --nf)
1239
# Obsolete; use --without-fp.
1242
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1243
| --no-cr | --no-c | -n)
1246
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1247
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1250
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1251
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1252
| --oldin | --oldi | --old | --ol | --o)
1253
ac_prev=oldincludedir ;;
1254
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1255
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1256
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1257
oldincludedir=$ac_optarg ;;
1259
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1261
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1262
prefix=$ac_optarg ;;
1264
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1265
| --program-pre | --program-pr | --program-p)
1266
ac_prev=program_prefix ;;
1267
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1268
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1269
program_prefix=$ac_optarg ;;
1271
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1272
| --program-suf | --program-su | --program-s)
1273
ac_prev=program_suffix ;;
1274
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1275
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1276
program_suffix=$ac_optarg ;;
1278
-program-transform-name | --program-transform-name \
1279
| --program-transform-nam | --program-transform-na \
1280
| --program-transform-n | --program-transform- \
1281
| --program-transform | --program-transfor \
1282
| --program-transfo | --program-transf \
1283
| --program-trans | --program-tran \
1284
| --progr-tra | --program-tr | --program-t)
1285
ac_prev=program_transform_name ;;
1286
-program-transform-name=* | --program-transform-name=* \
1287
| --program-transform-nam=* | --program-transform-na=* \
1288
| --program-transform-n=* | --program-transform-=* \
1289
| --program-transform=* | --program-transfor=* \
1290
| --program-transfo=* | --program-transf=* \
1291
| --program-trans=* | --program-tran=* \
1292
| --progr-tra=* | --program-tr=* | --program-t=*)
1293
program_transform_name=$ac_optarg ;;
1295
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1297
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1298
pdfdir=$ac_optarg ;;
1300
-psdir | --psdir | --psdi | --psd | --ps)
1302
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1305
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306
| -silent | --silent | --silen | --sile | --sil)
1309
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313
sbindir=$ac_optarg ;;
1315
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1316
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1317
| --sharedst | --shareds | --shared | --share | --shar \
1319
ac_prev=sharedstatedir ;;
1320
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1321
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1322
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324
sharedstatedir=$ac_optarg ;;
1326
-site | --site | --sit)
1328
-site=* | --site=* | --sit=*)
1331
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1334
srcdir=$ac_optarg ;;
1336
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1337
| --syscon | --sysco | --sysc | --sys | --sy)
1338
ac_prev=sysconfdir ;;
1339
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1340
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1341
sysconfdir=$ac_optarg ;;
1343
-target | --target | --targe | --targ | --tar | --ta | --t)
1344
ac_prev=target_alias ;;
1345
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1346
target_alias=$ac_optarg ;;
1348
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1351
-version | --version | --versio | --versi | --vers | -V)
1352
ac_init_version=: ;;
1355
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1356
# Reject names that are not valid shell variable names.
1357
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1359
{ (exit 1); exit 1; }; }
1360
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1361
eval with_$ac_package=\$ac_optarg ;;
1363
-without-* | --without-*)
1364
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1365
# Reject names that are not valid shell variable names.
1366
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1368
{ (exit 1); exit 1; }; }
1369
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1370
eval with_$ac_package=no ;;
1373
# Obsolete; use --with-x.
1376
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1377
| --x-incl | --x-inc | --x-in | --x-i)
1378
ac_prev=x_includes ;;
1379
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1380
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1381
x_includes=$ac_optarg ;;
1383
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1384
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1385
ac_prev=x_libraries ;;
1386
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1387
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1388
x_libraries=$ac_optarg ;;
1390
-*) { echo "$as_me: error: unrecognized option: $ac_option
1391
Try \`$0 --help' for more information." >&2
1392
{ (exit 1); exit 1; }; }
1396
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1397
# Reject names that are not valid shell variable names.
1398
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1399
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1400
{ (exit 1); exit 1; }; }
1401
eval $ac_envvar=\$ac_optarg
1402
export $ac_envvar ;;
1405
# FIXME: should be removed in autoconf 3.0.
1406
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1407
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1409
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1415
if test -n "$ac_prev"; then
1416
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1417
{ echo "$as_me: error: missing argument to $ac_option" >&2
1418
{ (exit 1); exit 1; }; }
1421
# Be sure to have absolute directory names.
1422
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423
datadir sysconfdir sharedstatedir localstatedir includedir \
1424
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425
libdir localedir mandir
1427
eval ac_val=\$$ac_var
1429
[\\/$]* | ?:[\\/]* ) continue;;
1430
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1433
{ (exit 1); exit 1; }; }
1436
# There might be people who depend on the old broken behavior: `$host'
1437
# used to hold the argument of --host etc.
1438
# FIXME: To remove some day.
1441
target=$target_alias
1443
# FIXME: To remove some day.
1444
if test "x$host_alias" != x; then
1445
if test "x$build_alias" = x; then
1446
cross_compiling=maybe
1447
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1448
If a cross compiler is detected then cross compile mode will be used." >&2
1449
elif test "x$build_alias" != "x$host_alias"; then
1455
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
test "$silent" = yes && exec 6>/dev/null
1460
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461
ac_ls_di=`ls -di .` &&
1462
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1463
{ echo "$as_me: error: Working directory cannot be determined" >&2
1464
{ (exit 1); exit 1; }; }
1465
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1467
{ (exit 1); exit 1; }; }
1470
# Find the source files, if location was not specified.
1471
if test -z "$srcdir"; then
1472
ac_srcdir_defaulted=yes
1473
# Try the directory containing this script, then the parent directory.
1474
ac_confdir=`$as_dirname -- "$0" ||
1475
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476
X"$0" : 'X\(//\)[^/]' \| \
1477
X"$0" : 'X\(//\)$' \| \
1478
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1480
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498
if test ! -r "$srcdir/$ac_unique_file"; then
1502
ac_srcdir_defaulted=no
1504
if test ! -r "$srcdir/$ac_unique_file"; then
1505
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1507
{ (exit 1); exit 1; }; }
1509
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1511
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1512
{ (exit 1); exit 1; }; }
1514
# When building in place, set srcdir=.
1515
if test "$ac_abs_confdir" = "$ac_pwd"; then
1518
# Remove unnecessary trailing slashes from srcdir.
1519
# Double slashes in file names in object file debugging info
1520
# mess up M-x gdb in Emacs.
1522
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524
for ac_var in $ac_precious_vars; do
1525
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526
eval ac_env_${ac_var}_value=\$${ac_var}
1527
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1532
# Report the --help message.
1534
if test "$ac_init_help" = "long"; then
1535
# Omit some internal or obsolete options to make the list less imposing.
1536
# This message is too long to be a string in the A/UX 3.1 sh.
1538
\`configure' configures this package to adapt to many kinds of systems.
1540
Usage: $0 [OPTION]... [VAR=VALUE]...
1542
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543
VAR=VALUE. See below for descriptions of some of the useful variables.
1545
Defaults for the options are specified in brackets.
1548
-h, --help display this help and exit
1549
--help=short display options specific to this package
1550
--help=recursive display the short help of all the included packages
1551
-V, --version display version information and exit
1552
-q, --quiet, --silent do not print \`checking...' messages
1553
--cache-file=FILE cache test results in FILE [disabled]
1554
-C, --config-cache alias for \`--cache-file=config.cache'
1555
-n, --no-create do not create output files
1556
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1558
Installation directories:
1559
--prefix=PREFIX install architecture-independent files in PREFIX
1560
[$ac_default_prefix]
1561
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564
By default, \`make install' will install all the files in
1565
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567
for instance \`--prefix=\$HOME'.
1569
For better control, use the options below.
1571
Fine tuning of the installation directories:
1572
--bindir=DIR user executables [EPREFIX/bin]
1573
--sbindir=DIR system admin executables [EPREFIX/sbin]
1574
--libexecdir=DIR program executables [EPREFIX/libexec]
1575
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578
--libdir=DIR object code libraries [EPREFIX/lib]
1579
--includedir=DIR C header files [PREFIX/include]
1580
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1581
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583
--infodir=DIR info documentation [DATAROOTDIR/info]
1584
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585
--mandir=DIR man documentation [DATAROOTDIR/man]
1586
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1587
--htmldir=DIR html documentation [DOCDIR]
1588
--dvidir=DIR dvi documentation [DOCDIR]
1589
--pdfdir=DIR pdf documentation [DOCDIR]
1590
--psdir=DIR ps documentation [DOCDIR]
1596
--program-prefix=PREFIX prepend PREFIX to installed program names
1597
--program-suffix=SUFFIX append SUFFIX to installed program names
1598
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1601
--build=BUILD configure for building on BUILD [guessed]
1602
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1603
--target=TARGET configure for building compilers for TARGET [HOST]
1607
if test -n "$ac_init_help"; then
1612
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1613
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1614
--disable-fast-perl disable fast Makefile generation (needs perl)
1615
--enable-debug=ARG enables debug symbols (yes|no|full) default=no
1616
--disable-debug disables debug output and debug symbols default=no
1617
--enable-strict compiles with strict compiler options (may not
1619
--disable-warnings disables compilation with -Wall and similar
1620
--enable-profile creates profiling infos default=no
1621
--disable-dependency-tracking speeds up one-time build
1622
--enable-dependency-tracking do not reject slow dependency extractors
1623
--enable-pch enables precompiled header support (currently only
1624
KCC or gcc >=3.4+unsermake) default=no
1625
--enable-coverage use gcc coverage testing
1626
--enable-new-ldflags enable the new linker flags
1627
--enable-final build size optimized apps (experimental - needs lots
1629
--enable-closure delay template instantiation
1630
--enable-nmcheck enable automatic namespace cleanness check
1631
--enable-shared[=PKGS] build shared libraries [default=yes]
1632
--enable-static[=PKGS] build static libraries [default=no]
1633
--enable-libsuffix /lib directory suffix (64,32,none,auto=default)
1634
--enable-fast-install[=PKGS]
1635
optimize for fast installation [default=yes]
1636
--disable-libtool-lock avoid locking (might break parallel builds)
1637
--enable-pie platform supports PIE linking default=detect
1638
--enable-embedded link to Qt-embedded, don't use X
1639
--enable-qtopia link to Qt-embedded, link to the Qtopia Environment
1640
--enable-mac link to Qt/Mac (don't use X)
1641
--disable-mt link to non-threaded Qt (deprecated)
1642
--disable-threading disables threading even if libpthread found
1643
--disable-rpath do not use the rpath feature of ld
1644
--disable-path-check don't try to find out, where to install
1647
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1650
--with-pic try to use only PIC/non-PIC objects [default=use
1652
--with-tags[=TAGS] include additional configurations [automatic]
1653
--with-extra-includes=DIR
1654
adds non standard include paths
1655
--with-extra-libs=DIR adds non standard library paths
1656
--with-qt-dir=DIR where the root of Qt is installed
1657
--with-qt-includes=DIR where the Qt includes are.
1658
--with-qt-libraries=DIR where the Qt library is installed.
1659
--without-arts build without aRts default=no
1660
--with-libgcrypt-prefix=PFX
1661
prefix where LIBGCRYPT is installed (optional)
1663
Some influential environment variables:
1664
CC C compiler command
1665
CFLAGS C compiler flags
1666
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667
nonstandard directory <lib dir>
1668
LIBS libraries to pass to the linker, e.g. -l<library>
1669
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1670
you have headers in a nonstandard directory <include dir>
1672
CXX C++ compiler command
1673
CXXFLAGS C++ compiler flags
1674
CXXCPP C++ preprocessor
1675
F77 Fortran 77 compiler command
1676
FFLAGS Fortran 77 compiler flags
1677
XMKMF Path to xmkmf, Makefile generator for X Window System
1679
Use these variables to override the choices made by `configure' or to help
1680
it to find libraries and programs with nonstandard names/locations.
1686
if test "$ac_init_help" = "recursive"; then
1687
# If there are subdirs, report their specific --help.
1688
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689
test -d "$ac_dir" || continue
1693
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1696
# A ".." for each directory in $ac_dir_suffix.
1697
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1698
case $ac_top_builddir_sub in
1699
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703
ac_abs_top_builddir=$ac_pwd
1704
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705
# for backward compatibility:
1706
ac_top_builddir=$ac_top_build_prefix
1709
.) # We are building in place.
1711
ac_top_srcdir=$ac_top_builddir_sub
1712
ac_abs_top_srcdir=$ac_pwd ;;
1713
[\\/]* | ?:[\\/]* ) # Absolute name.
1714
ac_srcdir=$srcdir$ac_dir_suffix;
1715
ac_top_srcdir=$srcdir
1716
ac_abs_top_srcdir=$srcdir ;;
1718
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719
ac_top_srcdir=$ac_top_build_prefix$srcdir
1720
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
cd "$ac_dir" || { ac_status=$?; continue; }
1725
# Check for guested configure.
1726
if test -f "$ac_srcdir/configure.gnu"; then
1728
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729
elif test -f "$ac_srcdir/configure"; then
1731
$SHELL "$ac_srcdir/configure" --help=recursive
1733
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735
cd "$ac_pwd" || { ac_status=$?; break; }
1739
test -n "$ac_init_help" && exit $ac_status
1740
if $ac_init_version; then
1743
generated by GNU Autoconf 2.61
1745
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1746
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1747
This configure script is free software; the Free Software Foundation
1748
gives unlimited permission to copy, distribute and modify it.
1752
cat >config.log <<_ACEOF
1753
This file contains any messages produced by compilers while
1754
running configure, to aid debugging if configure makes a mistake.
1756
It was created by $as_me, which was
1757
generated by GNU Autoconf 2.61. Invocation command line was
1769
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1771
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1772
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1773
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1775
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1778
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1779
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1780
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1782
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1783
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1784
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792
test -z "$as_dir" && as_dir=.
1793
echo "PATH: $as_dir"
1809
# Keep a trace of the command line.
1810
# Strip out --no-create and --no-recursion so they do not pile up.
1811
# Strip out --silent because we don't want to record it for future runs.
1812
# Also quote any args containing shell meta-characters.
1813
# Make two passes to allow for proper duplicate-argument suppression.
1817
ac_must_keep_next=false
1823
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825
| -silent | --silent | --silen | --sile | --sil)
1828
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1831
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1833
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1834
if test $ac_must_keep_next = true; then
1835
ac_must_keep_next=false # Got value, back to normal.
1838
*=* | --config-cache | -C | -disable-* | --disable-* \
1839
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841
| -with-* | --with-* | -without-* | --without-* | --x)
1842
case "$ac_configure_args0 " in
1843
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1846
-* ) ac_must_keep_next=true ;;
1849
ac_configure_args="$ac_configure_args '$ac_arg'"
1854
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1855
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1857
# When interrupted or exit'd, cleanup temporary files, and complete
1858
# config.log. We remove comments because anyway the quotes in there
1859
# would cause problems or look ugly.
1860
# WARNING: Use '\'' to represent an apostrophe within the trap.
1861
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862
trap 'exit_status=$?
1863
# Save into config.log some information that might help in debugging.
1868
## ---------------- ##
1869
## Cache variables. ##
1870
## ---------------- ##
1873
# The following way of writing the cache mishandles newlines in values,
1875
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1876
eval ac_val=\$$ac_var
1880
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1881
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1884
_ | IFS | as_nl) ;; #(
1885
*) $as_unset $ac_var ;;
1890
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1891
*${as_nl}ac_space=\ *)
1893
"s/'\''/'\''\\\\'\'''\''/g;
1894
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1905
## ----------------- ##
1906
## Output variables. ##
1907
## ----------------- ##
1910
for ac_var in $ac_subst_vars
1912
eval ac_val=\$$ac_var
1914
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916
echo "$ac_var='\''$ac_val'\''"
1920
if test -n "$ac_subst_files"; then
1922
## ------------------- ##
1923
## File substitutions. ##
1924
## ------------------- ##
1927
for ac_var in $ac_subst_files
1929
eval ac_val=\$$ac_var
1931
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1933
echo "$ac_var='\''$ac_val'\''"
1938
if test -s confdefs.h; then
1948
test "$ac_signal" != 0 &&
1949
echo "$as_me: caught signal $ac_signal"
1950
echo "$as_me: exit $exit_status"
1952
rm -f core *.core core.conftest.* &&
1953
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1956
for ac_signal in 1 2 13 15; do
1957
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1961
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1962
rm -f -r conftest* confdefs.h
1964
# Predefined preprocessor variables.
1966
cat >>confdefs.h <<_ACEOF
1967
#define PACKAGE_NAME "$PACKAGE_NAME"
1971
cat >>confdefs.h <<_ACEOF
1972
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1976
cat >>confdefs.h <<_ACEOF
1977
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1981
cat >>confdefs.h <<_ACEOF
1982
#define PACKAGE_STRING "$PACKAGE_STRING"
1986
cat >>confdefs.h <<_ACEOF
1987
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1991
# Let the site file select an alternate cache file if it wants to.
1992
# Prefer explicitly selected file to automatically selected ones.
1993
if test -n "$CONFIG_SITE"; then
1994
set x "$CONFIG_SITE"
1995
elif test "x$prefix" != xNONE; then
1996
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1998
set x "$ac_default_prefix/share/config.site" \
1999
"$ac_default_prefix/etc/config.site"
2004
if test -r "$ac_site_file"; then
2005
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2006
echo "$as_me: loading site script $ac_site_file" >&6;}
2007
sed 's/^/| /' "$ac_site_file" >&5
2012
if test -r "$cache_file"; then
2013
# Some versions of bash will fail to source /dev/null (special
2014
# files actually), so we avoid doing that.
2015
if test -f "$cache_file"; then
2016
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
2017
echo "$as_me: loading cache $cache_file" >&6;}
2019
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2020
*) . "./$cache_file";;
2024
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
2025
echo "$as_me: creating cache $cache_file" >&6;}
2029
# Check that the precious variables saved in the cache have kept the same
2031
ac_cache_corrupted=false
2032
for ac_var in $ac_precious_vars; do
2033
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034
eval ac_new_set=\$ac_env_${ac_var}_set
2035
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036
eval ac_new_val=\$ac_env_${ac_var}_value
2037
case $ac_old_set,$ac_new_set in
2039
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041
ac_cache_corrupted=: ;;
2043
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2044
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045
ac_cache_corrupted=: ;;
2048
if test "x$ac_old_val" != "x$ac_new_val"; then
2049
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2050
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2051
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2052
echo "$as_me: former value: $ac_old_val" >&2;}
2053
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2054
echo "$as_me: current value: $ac_new_val" >&2;}
2055
ac_cache_corrupted=:
2058
# Pass precious variables to config.status.
2059
if test "$ac_new_set" = set; then
2061
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2062
*) ac_arg=$ac_var=$ac_new_val ;;
2064
case " $ac_configure_args " in
2065
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2066
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2070
if $ac_cache_corrupted; then
2071
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2072
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2073
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2074
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2075
{ (exit 1); exit 1; }; }
2095
ac_cpp='$CPP $CPPFLAGS'
2096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102
for ac_dir in admin "$srcdir"/admin; do
2103
if test -f "$ac_dir/install-sh"; then
2105
ac_install_sh="$ac_aux_dir/install-sh -c"
2107
elif test -f "$ac_dir/install.sh"; then
2109
ac_install_sh="$ac_aux_dir/install.sh -c"
2111
elif test -f "$ac_dir/shtool"; then
2113
ac_install_sh="$ac_aux_dir/shtool install -c"
2117
if test -z "$ac_aux_dir"; then
2118
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
2119
echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
2120
{ (exit 1); exit 1; }; }
2123
# These three variables are undocumented and unsupported,
2124
# and are intended to be withdrawn in a future Autoconf release.
2125
# They can cause serious problems if a builder's source tree is in a directory
2126
# whose full name contains unusual characters.
2127
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2128
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2129
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2135
# Make sure we can run config.sub.
2136
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2137
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2138
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2139
{ (exit 1); exit 1; }; }
2141
{ echo "$as_me:$LINENO: checking build system type" >&5
2142
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2143
if test "${ac_cv_build+set}" = set; then
2144
echo $ECHO_N "(cached) $ECHO_C" >&6
2146
ac_build_alias=$build_alias
2147
test "x$ac_build_alias" = x &&
2148
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2149
test "x$ac_build_alias" = x &&
2150
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2152
{ (exit 1); exit 1; }; }
2153
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2154
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2155
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2156
{ (exit 1); exit 1; }; }
2159
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160
echo "${ECHO_T}$ac_cv_build" >&6; }
2161
case $ac_cv_build in
2163
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2164
echo "$as_me: error: invalid value of canonical build" >&2;}
2165
{ (exit 1); exit 1; }; };;
2168
ac_save_IFS=$IFS; IFS='-'
2174
# Remember, the first character of IFS is used to create $*,
2175
# except with old shells:
2178
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2181
{ echo "$as_me:$LINENO: checking host system type" >&5
2182
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2183
if test "${ac_cv_host+set}" = set; then
2184
echo $ECHO_N "(cached) $ECHO_C" >&6
2186
if test "x$host_alias" = x; then
2187
ac_cv_host=$ac_cv_build
2189
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2190
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2191
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2192
{ (exit 1); exit 1; }; }
2196
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197
echo "${ECHO_T}$ac_cv_host" >&6; }
2200
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2201
echo "$as_me: error: invalid value of canonical host" >&2;}
2202
{ (exit 1); exit 1; }; };;
2205
ac_save_IFS=$IFS; IFS='-'
2211
# Remember, the first character of IFS is used to create $*,
2212
# except with old shells:
2215
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2218
{ echo "$as_me:$LINENO: checking target system type" >&5
2219
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2220
if test "${ac_cv_target+set}" = set; then
2221
echo $ECHO_N "(cached) $ECHO_C" >&6
2223
if test "x$target_alias" = x; then
2224
ac_cv_target=$ac_cv_host
2226
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2227
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2228
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2229
{ (exit 1); exit 1; }; }
2233
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234
echo "${ECHO_T}$ac_cv_target" >&6; }
2235
case $ac_cv_target in
2237
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2238
echo "$as_me: error: invalid value of canonical target" >&2;}
2239
{ (exit 1); exit 1; }; };;
2241
target=$ac_cv_target
2242
ac_save_IFS=$IFS; IFS='-'
2248
# Remember, the first character of IFS is used to create $*,
2249
# except with old shells:
2252
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2255
# The aliases save the names the user supplied, while $host etc.
2256
# will get canonicalized.
2257
test -n "$target_alias" &&
2258
test "$program_prefix$program_suffix$program_transform_name" = \
2260
program_prefix=${target_alias}-
2261
test "$program_prefix" != NONE &&
2262
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2263
# Use a double $ so make ignores it.
2264
test "$program_suffix" != NONE &&
2265
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2266
# Double any \ or $. echo might interpret backslashes.
2267
# By default was `s,x,x', remove it if useless.
2268
cat <<\_ACEOF >conftest.sed
2269
s/[\\$]/&&/g;s/;s,x,x,$//
2271
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2275
am__api_version="1.9"
2278
test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2279
test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2280
test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2281
# Find a good install program. We prefer a C program (faster),
2282
# so one script is as good as another. But avoid the broken or
2283
# incompatible versions:
2284
# SysV /etc/install, /usr/sbin/install
2285
# SunOS /usr/etc/install
2286
# IRIX /sbin/install
2288
# AmigaOS /C/install, which installs bootblocks on floppy discs
2289
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2290
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2291
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2292
# OS/2's system install, which has a completely different semantic
2293
# ./install, which can be erroneously created by make from ./install.sh.
2294
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2295
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2296
if test -z "$INSTALL"; then
2297
if test "${ac_cv_path_install+set}" = set; then
2298
echo $ECHO_N "(cached) $ECHO_C" >&6
2300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304
test -z "$as_dir" && as_dir=.
2305
# Account for people who put trailing slashes in PATH elements.
2307
./ | .// | /cC/* | \
2308
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2309
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2312
# OSF1 and SCO ODT 3.0 have their own names for install.
2313
# Don't use installbsd from OSF since it installs stuff as root
2315
for ac_prog in ginstall scoinst install; do
2316
for ac_exec_ext in '' $ac_executable_extensions; do
2317
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2318
if test $ac_prog = install &&
2319
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2320
# AIX install. It has an incompatible calling convention.
2322
elif test $ac_prog = install &&
2323
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324
# program-specific install script used by HP pwplus--don't use.
2327
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2340
if test "${ac_cv_path_install+set}" = set; then
2341
INSTALL=$ac_cv_path_install
2343
# As a last resort, use the slow shell script. Don't cache a
2344
# value for INSTALL within a source directory, because that will
2345
# break other packages using the cache if that directory is
2346
# removed, or if the value is a relative name.
2347
INSTALL=$ac_install_sh
2350
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2351
echo "${ECHO_T}$INSTALL" >&6; }
2353
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2354
# It thinks the first close brace ends the variable substitution.
2355
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2362
if test -z "$kde_save_INSTALL_given" ; then
2363
# OK, user hasn't given any INSTALL, autoconf found one for us
2364
# now we test, if it supports the -p flag
2365
{ echo "$as_me:$LINENO: checking for -p flag to install" >&5
2366
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6; }
2367
rm -f confinst.$$.* > /dev/null 2>&1
2368
echo "Testtest" > confinst.$$.orig
2370
if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2371
if test -f confinst.$$.new ; then
2372
# OK, -p seems to do no harm to install
2373
INSTALL="${INSTALL} -p"
2378
{ echo "$as_me:$LINENO: result: $ac_res" >&5
2379
echo "${ECHO_T}$ac_res" >&6; }
2382
if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2383
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2385
if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2386
INSTALL_SCRIPT='${INSTALL}'
2389
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2390
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&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
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2414
alias in your environment" >&5
2415
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
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2427
Check your system clock" >&5
2428
echo "$as_me: error: newly created file is older than distributed files!
2429
Check your system clock" >&2;}
2430
{ (exit 1); exit 1; }; }
2432
{ echo "$as_me:$LINENO: result: yes" >&5
2433
echo "${ECHO_T}yes" >&6; }
2434
# expand $ac_aux_dir to an absolute path
2435
am_aux_dir=`cd $ac_aux_dir && pwd`
2437
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2438
# Use eval to expand $SHELL
2439
if eval "$MISSING --run true"; then
2440
am_missing_run="$MISSING --run "
2443
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2444
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2447
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2448
# We used to keeping the `.' as first argument, in order to
2449
# allow $(mkdir_p) to be used without argument. As in
2450
# $(mkdir_p) $(somedir)
2451
# where $(somedir) is conditionally defined. However this is wrong
2453
# 1. if the package is installed by a user who cannot write `.'
2454
# make install will fail,
2455
# 2. the above comment should most certainly read
2456
# $(mkdir_p) $(DESTDIR)$(somedir)
2457
# so it does not work when $(somedir) is undefined and
2458
# $(DESTDIR) is not.
2459
# To support the latter case, we have to write
2460
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2461
# so the `.' trick is pointless.
2462
mkdir_p='mkdir -p --'
2464
# On NextStep and OpenStep, the `mkdir' command does not
2465
# recognize any option. It will interpret all options as
2466
# directories to create, and then abort because `.' already
2468
for d in ./-p ./--version;
2470
test -d $d && rmdir $d
2472
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2473
if test -f "$ac_aux_dir/mkinstalldirs"; then
2474
mkdir_p='$(mkinstalldirs)'
2476
mkdir_p='$(install_sh) -d'
2480
for ac_prog in gawk mawk nawk awk
2482
# Extract the first word of "$ac_prog", so it can be a program name with args.
2483
set dummy $ac_prog; ac_word=$2
2484
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2485
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486
if test "${ac_cv_prog_AWK+set}" = set; then
2487
echo $ECHO_N "(cached) $ECHO_C" >&6
2489
if test -n "$AWK"; then
2490
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496
test -z "$as_dir" && as_dir=.
2497
for ac_exec_ext in '' $ac_executable_extensions; do
2498
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499
ac_cv_prog_AWK="$ac_prog"
2500
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510
if test -n "$AWK"; then
2511
{ echo "$as_me:$LINENO: result: $AWK" >&5
2512
echo "${ECHO_T}$AWK" >&6; }
2514
{ echo "$as_me:$LINENO: result: no" >&5
2515
echo "${ECHO_T}no" >&6; }
2519
test -n "$AWK" && break
2522
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2523
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2524
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2525
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2526
echo $ECHO_N "(cached) $ECHO_C" >&6
2528
cat >conftest.make <<\_ACEOF
2531
@echo '@@@%%%=$(MAKE)=@@@%%%'
2533
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2534
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2536
eval ac_cv_prog_make_${ac_make}_set=yes;;
2538
eval ac_cv_prog_make_${ac_make}_set=no;;
2542
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2543
{ echo "$as_me:$LINENO: result: yes" >&5
2544
echo "${ECHO_T}yes" >&6; }
2547
{ echo "$as_me:$LINENO: result: no" >&5
2548
echo "${ECHO_T}no" >&6; }
2549
SET_MAKE="MAKE=${MAKE-make}"
2552
rm -rf .tst 2>/dev/null
2553
mkdir .tst 2>/dev/null
2554
if test -d .tst; then
2559
rmdir .tst 2>/dev/null
2561
# test to see if srcdir already configured
2562
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2563
test -f $srcdir/config.status; then
2564
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2565
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2566
{ (exit 1); exit 1; }; }
2569
# test whether we have cygpath
2570
if test -z "$CYGPATH_W"; then
2571
if (cygpath --version) >/dev/null 2>/dev/null; then
2572
CYGPATH_W='cygpath -w'
2579
# Define the identity of the package.
2584
cat >>confdefs.h <<_ACEOF
2585
#define PACKAGE "$PACKAGE"
2589
cat >>confdefs.h <<_ACEOF
2590
#define VERSION "$VERSION"
2593
# Some tools Automake needs.
2595
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2598
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2601
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2604
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2607
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2609
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2611
# Installed binaries are usually stripped using `strip' when the user
2612
# run `make install-strip'. However `strip' might not be the right
2613
# tool to use in cross-compilation environments, therefore Automake
2614
# will honor the `STRIP' environment variable to overrule this program.
2615
if test "$cross_compiling" != no; then
2616
if test -n "$ac_tool_prefix"; then
2617
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618
set dummy ${ac_tool_prefix}strip; ac_word=$2
2619
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621
if test "${ac_cv_prog_STRIP+set}" = set; then
2622
echo $ECHO_N "(cached) $ECHO_C" >&6
2624
if test -n "$STRIP"; then
2625
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631
test -z "$as_dir" && as_dir=.
2632
for ac_exec_ext in '' $ac_executable_extensions; do
2633
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644
STRIP=$ac_cv_prog_STRIP
2645
if test -n "$STRIP"; then
2646
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2647
echo "${ECHO_T}$STRIP" >&6; }
2649
{ echo "$as_me:$LINENO: result: no" >&5
2650
echo "${ECHO_T}no" >&6; }
2655
if test -z "$ac_cv_prog_STRIP"; then
2657
# Extract the first word of "strip", so it can be a program name with args.
2658
set dummy strip; ac_word=$2
2659
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2660
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2662
echo $ECHO_N "(cached) $ECHO_C" >&6
2664
if test -n "$ac_ct_STRIP"; then
2665
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671
test -z "$as_dir" && as_dir=.
2672
for ac_exec_ext in '' $ac_executable_extensions; do
2673
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674
ac_cv_prog_ac_ct_STRIP="strip"
2675
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685
if test -n "$ac_ct_STRIP"; then
2686
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2687
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2689
{ echo "$as_me:$LINENO: result: no" >&5
2690
echo "${ECHO_T}no" >&6; }
2693
if test "x$ac_ct_STRIP" = x; then
2696
case $cross_compiling:$ac_tool_warned in
2698
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2699
whose name does not start with the host triplet. If you think this
2700
configuration is useful to you, please write to autoconf@gnu.org." >&5
2701
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2702
whose name does not start with the host triplet. If you think this
2703
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2704
ac_tool_warned=yes ;;
2709
STRIP="$ac_cv_prog_STRIP"
2713
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2715
# We need awk for the "check" target. The system "awk" is bad on
2717
# Always define AMTAR for backward compatibility.
2719
AMTAR=${AMTAR-"${am_missing_run}tar"}
2721
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2732
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
2733
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
2734
if test -n "$KDEDIRS"; then
2737
for dir in $KDEDIRS; do
2738
kde_default_bindirs="$dir/bin $kde_default_bindirs "
2743
if test "x$prefix" = "xNONE"; then
2745
{ echo "$as_me:$LINENO: checking for kde-config" >&5
2746
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2747
if test -n "$KDECONFIG"; then
2748
kde_cv_path="$KDECONFIG";
2750
kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2752
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2753
echo $ECHO_N "(cached) $ECHO_C" >&6
2760
for dir in $PATH; do
2763
if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2764
else dirs="$dirs $kde_default_bindirs"
2768
for dir in $dirs; do
2769
if test -x "$dir/kde-config"; then
2772
evalstr="$dir/kde-config 2>&1 "
2773
if eval $evalstr; then
2774
kde_cv_path="$dir/kde-config"
2778
kde_cv_path="$dir/kde-config"
2784
eval "kde_cv_path_$kde_cache=$kde_cv_path"
2790
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2794
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2795
{ echo "$as_me:$LINENO: result: not found" >&5
2796
echo "${ECHO_T}not found" >&6; }
2798
{ { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2799
Please check whether you installed KDE correctly.
2801
echo "$as_me: error: The important program kde-config was not found!
2802
Please check whether you installed KDE correctly.
2804
{ (exit 1); exit 1; }; }
2807
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2808
echo "${ECHO_T}$kde_cv_path" >&6; }
2809
KDECONFIG=$kde_cv_path
2814
kde_save_PATH="$PATH"
2815
PATH="$exec_prefix/bin:$prefix/bin:$PATH"
2817
{ echo "$as_me:$LINENO: checking for kde-config" >&5
2818
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2819
if test -n "$KDECONFIG"; then
2820
kde_cv_path="$KDECONFIG";
2822
kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2824
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2825
echo $ECHO_N "(cached) $ECHO_C" >&6
2832
for dir in $PATH; do
2835
if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2836
else dirs="$dirs $kde_default_bindirs"
2840
for dir in $dirs; do
2841
if test -x "$dir/kde-config"; then
2844
evalstr="$dir/kde-config 2>&1 "
2845
if eval $evalstr; then
2846
kde_cv_path="$dir/kde-config"
2850
kde_cv_path="$dir/kde-config"
2856
eval "kde_cv_path_$kde_cache=$kde_cv_path"
2862
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2866
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2867
{ echo "$as_me:$LINENO: result: not found" >&5
2868
echo "${ECHO_T}not found" >&6; }
2870
{ { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2871
Please check whether you installed KDE correctly.
2873
echo "$as_me: error: The important program kde-config was not found!
2874
Please check whether you installed KDE correctly.
2876
{ (exit 1); exit 1; }; }
2879
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2880
echo "${ECHO_T}$kde_cv_path" >&6; }
2881
KDECONFIG=$kde_cv_path
2885
PATH="$kde_save_PATH"
2888
kde_libs_prefix=`$KDECONFIG --prefix`
2889
if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
2890
{ { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2891
This means it has been moved since you installed it.
2892
This won't work. Please recompile kdelibs for the new prefix.
2894
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2895
This means it has been moved since you installed it.
2896
This won't work. Please recompile kdelibs for the new prefix.
2898
{ (exit 1); exit 1; }; }
2900
kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
2902
{ echo "$as_me:$LINENO: checking where to install" >&5
2903
echo $ECHO_N "checking where to install... $ECHO_C" >&6; }
2904
if test "x$prefix" = "xNONE"; then
2905
prefix=$kde_libs_prefix
2906
{ echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
2907
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6; }
2909
given_prefix=$prefix
2910
{ echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
2911
echo "${ECHO_T}$prefix (as requested)" >&6; }
2914
# And delete superfluous '/' to make compares easier
2915
prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2916
exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2917
given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2924
# Check whether --enable-fast-perl was given.
2925
if test "${enable_fast_perl+set}" = set; then
2926
enableval=$enable_fast_perl; with_fast_perl=$enableval
2934
if test -f $srcdir/configure.files ; then
2935
val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
2938
if test -n "$val" ; then
2940
CONF_FILES="$CONF_FILES $i"
2947
ac_config_headers="$ac_config_headers config.h"
2949
DEPDIR="${am__leading_dot}deps"
2951
ac_config_commands="$ac_config_commands depfiles"
2954
am_make=${MAKE-make}
2955
cat > confinc << 'END'
2960
# If we don't find an include directive, just comment out the code.
2961
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2962
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2966
# First try GNU make style include.
2967
echo "include confinc" > confmf
2968
# We grep out `Entering directory' and `Leaving directory'
2969
# messages which can occur if `w' ends up in MAKEFLAGS.
2970
# In particular we don't look at `^make:' because GNU make might
2971
# be invoked under some other name (usually "gmake"), in which
2972
# case it prints its new name instead of `make'.
2973
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2978
# Now try BSD make style include.
2979
if test "$am__include" = "#"; then
2980
echo '.include "confinc"' > confmf
2981
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2982
am__include=.include
2989
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2990
echo "${ECHO_T}$_am_result" >&6; }
2991
rm -f confinc confmf
2993
# Check whether --enable-dependency-tracking was given.
2994
if test "${enable_dependency_tracking+set}" = set; then
2995
enableval=$enable_dependency_tracking;
2998
if test "x$enable_dependency_tracking" != xno; then
2999
am_depcomp="$ac_aux_dir/depcomp"
3004
if test "x$enable_dependency_tracking" != xno; then
3017
# Check whether --enable-debug was given.
3018
if test "${enable_debug+set}" = set; then
3019
enableval=$enable_debug;
3022
kde_use_debug_code="yes"
3023
kde_use_debug_define=no
3026
kde_use_debug_code="full"
3027
kde_use_debug_define=no
3030
kde_use_debug_code="no"
3031
kde_use_debug_define=yes
3036
kde_use_debug_code="no"
3037
kde_use_debug_define=no
3042
# Check whether --enable-dummyoption was given.
3043
if test "${enable_dummyoption+set}" = set; then
3044
enableval=$enable_dummyoption;
3048
# Check whether --enable-strict was given.
3049
if test "${enable_strict+set}" = set; then
3050
enableval=$enable_strict;
3051
if test $enableval = "no"; then
3052
kde_use_strict_options="no"
3054
kde_use_strict_options="yes"
3058
kde_use_strict_options="no"
3062
# Check whether --enable-warnings was given.
3063
if test "${enable_warnings+set}" = set; then
3064
enableval=$enable_warnings;
3065
if test $enableval = "no"; then
3066
kde_use_warnings="no"
3068
kde_use_warnings="yes"
3072
kde_use_warnings="yes"
3076
if test "$kde_use_debug_code" != "no"; then
3077
kde_use_warnings=yes
3080
# Check whether --enable-profile was given.
3081
if test "${enable_profile+set}" = set; then
3082
enableval=$enable_profile; kde_use_profiling=$enableval
3084
kde_use_profiling="no"
3092
ac_cpp='$CPP $CPPFLAGS'
3093
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096
if test -n "$ac_tool_prefix"; then
3097
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3098
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3099
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3101
if test "${ac_cv_prog_CC+set}" = set; then
3102
echo $ECHO_N "(cached) $ECHO_C" >&6
3104
if test -n "$CC"; then
3105
ac_cv_prog_CC="$CC" # Let the user override the test.
3107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111
test -z "$as_dir" && as_dir=.
3112
for ac_exec_ext in '' $ac_executable_extensions; do
3113
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3115
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125
if test -n "$CC"; then
3126
{ echo "$as_me:$LINENO: result: $CC" >&5
3127
echo "${ECHO_T}$CC" >&6; }
3129
{ echo "$as_me:$LINENO: result: no" >&5
3130
echo "${ECHO_T}no" >&6; }
3135
if test -z "$ac_cv_prog_CC"; then
3137
# Extract the first word of "gcc", so it can be a program name with args.
3138
set dummy gcc; ac_word=$2
3139
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3140
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3141
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3142
echo $ECHO_N "(cached) $ECHO_C" >&6
3144
if test -n "$ac_ct_CC"; then
3145
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151
test -z "$as_dir" && as_dir=.
3152
for ac_exec_ext in '' $ac_executable_extensions; do
3153
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154
ac_cv_prog_ac_ct_CC="gcc"
3155
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165
if test -n "$ac_ct_CC"; then
3166
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3167
echo "${ECHO_T}$ac_ct_CC" >&6; }
3169
{ echo "$as_me:$LINENO: result: no" >&5
3170
echo "${ECHO_T}no" >&6; }
3173
if test "x$ac_ct_CC" = x; then
3176
case $cross_compiling:$ac_tool_warned in
3178
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3179
whose name does not start with the host triplet. If you think this
3180
configuration is useful to you, please write to autoconf@gnu.org." >&5
3181
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3182
whose name does not start with the host triplet. If you think this
3183
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3184
ac_tool_warned=yes ;;
3192
if test -z "$CC"; then
3193
if test -n "$ac_tool_prefix"; then
3194
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3195
set dummy ${ac_tool_prefix}cc; ac_word=$2
3196
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3198
if test "${ac_cv_prog_CC+set}" = set; then
3199
echo $ECHO_N "(cached) $ECHO_C" >&6
3201
if test -n "$CC"; then
3202
ac_cv_prog_CC="$CC" # Let the user override the test.
3204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208
test -z "$as_dir" && as_dir=.
3209
for ac_exec_ext in '' $ac_executable_extensions; do
3210
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211
ac_cv_prog_CC="${ac_tool_prefix}cc"
3212
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222
if test -n "$CC"; then
3223
{ echo "$as_me:$LINENO: result: $CC" >&5
3224
echo "${ECHO_T}$CC" >&6; }
3226
{ echo "$as_me:$LINENO: result: no" >&5
3227
echo "${ECHO_T}no" >&6; }
3233
if test -z "$CC"; then
3234
# Extract the first word of "cc", so it can be a program name with args.
3235
set dummy cc; ac_word=$2
3236
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3238
if test "${ac_cv_prog_CC+set}" = set; then
3239
echo $ECHO_N "(cached) $ECHO_C" >&6
3241
if test -n "$CC"; then
3242
ac_cv_prog_CC="$CC" # Let the user override the test.
3245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249
test -z "$as_dir" && as_dir=.
3250
for ac_exec_ext in '' $ac_executable_extensions; do
3251
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3253
ac_prog_rejected=yes
3257
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264
if test $ac_prog_rejected = yes; then
3265
# We found a bogon in the path, so make sure we never use it.
3266
set dummy $ac_cv_prog_CC
3268
if test $# != 0; then
3269
# We chose a different compiler from the bogus one.
3270
# However, it has the same basename, so the bogon will be chosen
3271
# first if we set CC to just the basename; use the full file name.
3273
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3279
if test -n "$CC"; then
3280
{ echo "$as_me:$LINENO: result: $CC" >&5
3281
echo "${ECHO_T}$CC" >&6; }
3283
{ echo "$as_me:$LINENO: result: no" >&5
3284
echo "${ECHO_T}no" >&6; }
3289
if test -z "$CC"; then
3290
if test -n "$ac_tool_prefix"; then
3291
for ac_prog in cl.exe
3293
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3294
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3296
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3297
if test "${ac_cv_prog_CC+set}" = set; then
3298
echo $ECHO_N "(cached) $ECHO_C" >&6
3300
if test -n "$CC"; then
3301
ac_cv_prog_CC="$CC" # Let the user override the test.
3303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307
test -z "$as_dir" && as_dir=.
3308
for ac_exec_ext in '' $ac_executable_extensions; do
3309
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3311
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321
if test -n "$CC"; then
3322
{ echo "$as_me:$LINENO: result: $CC" >&5
3323
echo "${ECHO_T}$CC" >&6; }
3325
{ echo "$as_me:$LINENO: result: no" >&5
3326
echo "${ECHO_T}no" >&6; }
3330
test -n "$CC" && break
3333
if test -z "$CC"; then
3335
for ac_prog in cl.exe
3337
# Extract the first word of "$ac_prog", so it can be a program name with args.
3338
set dummy $ac_prog; ac_word=$2
3339
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3340
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3341
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3342
echo $ECHO_N "(cached) $ECHO_C" >&6
3344
if test -n "$ac_ct_CC"; then
3345
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351
test -z "$as_dir" && as_dir=.
3352
for ac_exec_ext in '' $ac_executable_extensions; do
3353
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354
ac_cv_prog_ac_ct_CC="$ac_prog"
3355
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365
if test -n "$ac_ct_CC"; then
3366
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3367
echo "${ECHO_T}$ac_ct_CC" >&6; }
3369
{ echo "$as_me:$LINENO: result: no" >&5
3370
echo "${ECHO_T}no" >&6; }
3374
test -n "$ac_ct_CC" && break
3377
if test "x$ac_ct_CC" = x; then
3380
case $cross_compiling:$ac_tool_warned in
3382
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3383
whose name does not start with the host triplet. If you think this
3384
configuration is useful to you, please write to autoconf@gnu.org." >&5
3385
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3386
whose name does not start with the host triplet. If you think this
3387
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3388
ac_tool_warned=yes ;;
3397
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3398
See \`config.log' for more details." >&5
3399
echo "$as_me: error: no acceptable C compiler found in \$PATH
3400
See \`config.log' for more details." >&2;}
3401
{ (exit 1); exit 1; }; }
3403
# Provide some information about the compiler.
3404
echo "$as_me:$LINENO: checking for C compiler version" >&5
3405
ac_compiler=`set X $ac_compile; echo $2`
3406
{ (ac_try="$ac_compiler --version >&5"
3408
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409
*) ac_try_echo=$ac_try;;
3411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412
(eval "$ac_compiler --version >&5") 2>&5
3414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415
(exit $ac_status); }
3416
{ (ac_try="$ac_compiler -v >&5"
3418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419
*) ac_try_echo=$ac_try;;
3421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422
(eval "$ac_compiler -v >&5") 2>&5
3424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425
(exit $ac_status); }
3426
{ (ac_try="$ac_compiler -V >&5"
3428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429
*) ac_try_echo=$ac_try;;
3431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432
(eval "$ac_compiler -V >&5") 2>&5
3434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435
(exit $ac_status); }
3437
cat >conftest.$ac_ext <<_ACEOF
3440
cat confdefs.h >>conftest.$ac_ext
3441
cat >>conftest.$ac_ext <<_ACEOF
3442
/* end confdefs.h. */
3452
ac_clean_files_save=$ac_clean_files
3453
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3454
# Try to create an executable without -o first, disregard a.out.
3455
# It will help us diagnose broken compilers, and finding out an intuition
3457
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3458
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3459
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3461
# List of possible output files, starting from the most likely.
3462
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3463
# only as a last resort. b.out is created by i960 compilers.
3464
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3466
# The IRIX 6 linker writes into existing files which may not be
3467
# executable, retaining their permissions. Remove them first so a
3468
# subsequent execution test works.
3470
for ac_file in $ac_files
3473
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3474
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3479
if { (ac_try="$ac_link_default"
3481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482
*) ac_try_echo=$ac_try;;
3484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485
(eval "$ac_link_default") 2>&5
3487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488
(exit $ac_status); }; then
3489
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3492
# so that the user can short-circuit this test for compilers unknown to
3494
for ac_file in $ac_files ''
3496
test -f "$ac_file" || continue
3498
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3501
# We found the default executable, but exeext='' is most
3505
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509
# We set ac_cv_exeext here because the later test for it is not
3510
# safe: cross compilers may not add the suffix if given an `-o'
3511
# argument, so we may need to know it at that point already.
3512
# Even if this section looks crufty: it has the advantage of
3519
test "$ac_cv_exeext" = no && ac_cv_exeext=
3525
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3526
echo "${ECHO_T}$ac_file" >&6; }
3527
if test -z "$ac_file"; then
3528
echo "$as_me: failed program was:" >&5
3529
sed 's/^/| /' conftest.$ac_ext >&5
3531
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3532
See \`config.log' for more details." >&5
3533
echo "$as_me: error: C compiler cannot create executables
3534
See \`config.log' for more details." >&2;}
3535
{ (exit 77); exit 77; }; }
3538
ac_exeext=$ac_cv_exeext
3540
# Check that the compiler produces executables we can run. If not, either
3541
# the compiler is broken, or we cross compile.
3542
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3543
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3544
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3545
# If not cross compiling, check that we can run a simple program.
3546
if test "$cross_compiling" != yes; then
3547
if { ac_try='./$ac_file'
3548
{ (case "(($ac_try" in
3549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550
*) ac_try_echo=$ac_try;;
3552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553
(eval "$ac_try") 2>&5
3555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556
(exit $ac_status); }; }; then
3559
if test "$cross_compiling" = maybe; then
3562
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3563
If you meant to cross compile, use \`--host'.
3564
See \`config.log' for more details." >&5
3565
echo "$as_me: error: cannot run C compiled programs.
3566
If you meant to cross compile, use \`--host'.
3567
See \`config.log' for more details." >&2;}
3568
{ (exit 1); exit 1; }; }
3572
{ echo "$as_me:$LINENO: result: yes" >&5
3573
echo "${ECHO_T}yes" >&6; }
3575
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3576
ac_clean_files=$ac_clean_files_save
3577
# Check that the compiler produces executables we can run. If not, either
3578
# the compiler is broken, or we cross compile.
3579
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3580
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3581
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3582
echo "${ECHO_T}$cross_compiling" >&6; }
3584
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3585
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3586
if { (ac_try="$ac_link"
3588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589
*) ac_try_echo=$ac_try;;
3591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592
(eval "$ac_link") 2>&5
3594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595
(exit $ac_status); }; then
3596
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3597
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598
# work properly (i.e., refer to `conftest.exe'), while it won't with
3600
for ac_file in conftest.exe conftest conftest.*; do
3601
test -f "$ac_file" || continue
3603
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3604
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3611
See \`config.log' for more details." >&5
3612
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3613
See \`config.log' for more details." >&2;}
3614
{ (exit 1); exit 1; }; }
3617
rm -f conftest$ac_cv_exeext
3618
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3619
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3621
rm -f conftest.$ac_ext
3622
EXEEXT=$ac_cv_exeext
3624
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3625
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3626
if test "${ac_cv_objext+set}" = set; then
3627
echo $ECHO_N "(cached) $ECHO_C" >&6
3629
cat >conftest.$ac_ext <<_ACEOF
3632
cat confdefs.h >>conftest.$ac_ext
3633
cat >>conftest.$ac_ext <<_ACEOF
3634
/* end confdefs.h. */
3644
rm -f conftest.o conftest.obj
3645
if { (ac_try="$ac_compile"
3647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648
*) ac_try_echo=$ac_try;;
3650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651
(eval "$ac_compile") 2>&5
3653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654
(exit $ac_status); }; then
3655
for ac_file in conftest.o conftest.obj conftest.*; do
3656
test -f "$ac_file" || continue;
3658
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3659
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3664
echo "$as_me: failed program was:" >&5
3665
sed 's/^/| /' conftest.$ac_ext >&5
3667
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3668
See \`config.log' for more details." >&5
3669
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3670
See \`config.log' for more details." >&2;}
3671
{ (exit 1); exit 1; }; }
3674
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3676
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3677
echo "${ECHO_T}$ac_cv_objext" >&6; }
3678
OBJEXT=$ac_cv_objext
3680
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3681
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3682
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3683
echo $ECHO_N "(cached) $ECHO_C" >&6
3685
cat >conftest.$ac_ext <<_ACEOF
3688
cat confdefs.h >>conftest.$ac_ext
3689
cat >>conftest.$ac_ext <<_ACEOF
3690
/* end confdefs.h. */
3703
rm -f conftest.$ac_objext
3704
if { (ac_try="$ac_compile"
3706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707
*) ac_try_echo=$ac_try;;
3709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710
(eval "$ac_compile") 2>conftest.er1
3712
grep -v '^ *+' conftest.er1 >conftest.err
3714
cat conftest.err >&5
3715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716
(exit $ac_status); } && {
3717
test -z "$ac_c_werror_flag" ||
3718
test ! -s conftest.err
3719
} && test -s conftest.$ac_objext; then
3722
echo "$as_me: failed program was:" >&5
3723
sed 's/^/| /' conftest.$ac_ext >&5
3728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3732
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3733
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3734
GCC=`test $ac_compiler_gnu = yes && echo yes`
3735
ac_test_CFLAGS=${CFLAGS+set}
3736
ac_save_CFLAGS=$CFLAGS
3737
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3738
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3739
if test "${ac_cv_prog_cc_g+set}" = set; then
3740
echo $ECHO_N "(cached) $ECHO_C" >&6
3742
ac_save_c_werror_flag=$ac_c_werror_flag
3743
ac_c_werror_flag=yes
3746
cat >conftest.$ac_ext <<_ACEOF
3749
cat confdefs.h >>conftest.$ac_ext
3750
cat >>conftest.$ac_ext <<_ACEOF
3751
/* end confdefs.h. */
3761
rm -f conftest.$ac_objext
3762
if { (ac_try="$ac_compile"
3764
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765
*) ac_try_echo=$ac_try;;
3767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768
(eval "$ac_compile") 2>conftest.er1
3770
grep -v '^ *+' conftest.er1 >conftest.err
3772
cat conftest.err >&5
3773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774
(exit $ac_status); } && {
3775
test -z "$ac_c_werror_flag" ||
3776
test ! -s conftest.err
3777
} && test -s conftest.$ac_objext; then
3780
echo "$as_me: failed program was:" >&5
3781
sed 's/^/| /' conftest.$ac_ext >&5
3784
cat >conftest.$ac_ext <<_ACEOF
3787
cat confdefs.h >>conftest.$ac_ext
3788
cat >>conftest.$ac_ext <<_ACEOF
3789
/* end confdefs.h. */
3799
rm -f conftest.$ac_objext
3800
if { (ac_try="$ac_compile"
3802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803
*) ac_try_echo=$ac_try;;
3805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806
(eval "$ac_compile") 2>conftest.er1
3808
grep -v '^ *+' conftest.er1 >conftest.err
3810
cat conftest.err >&5
3811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812
(exit $ac_status); } && {
3813
test -z "$ac_c_werror_flag" ||
3814
test ! -s conftest.err
3815
} && test -s conftest.$ac_objext; then
3818
echo "$as_me: failed program was:" >&5
3819
sed 's/^/| /' conftest.$ac_ext >&5
3821
ac_c_werror_flag=$ac_save_c_werror_flag
3823
cat >conftest.$ac_ext <<_ACEOF
3826
cat confdefs.h >>conftest.$ac_ext
3827
cat >>conftest.$ac_ext <<_ACEOF
3828
/* end confdefs.h. */
3838
rm -f conftest.$ac_objext
3839
if { (ac_try="$ac_compile"
3841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842
*) ac_try_echo=$ac_try;;
3844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845
(eval "$ac_compile") 2>conftest.er1
3847
grep -v '^ *+' conftest.er1 >conftest.err
3849
cat conftest.err >&5
3850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
(exit $ac_status); } && {
3852
test -z "$ac_c_werror_flag" ||
3853
test ! -s conftest.err
3854
} && test -s conftest.$ac_objext; then
3857
echo "$as_me: failed program was:" >&5
3858
sed 's/^/| /' conftest.$ac_ext >&5
3863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870
ac_c_werror_flag=$ac_save_c_werror_flag
3872
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3873
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3874
if test "$ac_test_CFLAGS" = set; then
3875
CFLAGS=$ac_save_CFLAGS
3876
elif test $ac_cv_prog_cc_g = yes; then
3877
if test "$GCC" = yes; then
3883
if test "$GCC" = yes; then
3889
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3890
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3891
if test "${ac_cv_prog_cc_c89+set}" = set; then
3892
echo $ECHO_N "(cached) $ECHO_C" >&6
3894
ac_cv_prog_cc_c89=no
3896
cat >conftest.$ac_ext <<_ACEOF
3899
cat confdefs.h >>conftest.$ac_ext
3900
cat >>conftest.$ac_ext <<_ACEOF
3901
/* end confdefs.h. */
3904
#include <sys/types.h>
3905
#include <sys/stat.h>
3906
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3907
struct buf { int x; };
3908
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3909
static char *e (p, i)
3915
static char *f (char * (*g) (char **, int), char **p, ...)
3920
s = g (p, va_arg (v,int));
3925
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3926
function prototypes and stuff, but not '\xHH' hex character constants.
3927
These don't provoke an error unfortunately, instead are silently treated
3928
as 'x'. The following induces an error, until -std is added to get
3929
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3930
array size at least. It's necessary to write '\x00'==0 to get something
3931
that's true only with -std. */
3932
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3934
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3935
inside strings and character constants. */
3937
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3939
int test (int i, double x);
3940
struct s1 {int (*f) (int a);};
3941
struct s2 {int (*f) (double a);};
3942
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3948
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3953
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3954
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3956
CC="$ac_save_CC $ac_arg"
3957
rm -f conftest.$ac_objext
3958
if { (ac_try="$ac_compile"
3960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961
*) ac_try_echo=$ac_try;;
3963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964
(eval "$ac_compile") 2>conftest.er1
3966
grep -v '^ *+' conftest.er1 >conftest.err
3968
cat conftest.err >&5
3969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970
(exit $ac_status); } && {
3971
test -z "$ac_c_werror_flag" ||
3972
test ! -s conftest.err
3973
} && test -s conftest.$ac_objext; then
3974
ac_cv_prog_cc_c89=$ac_arg
3976
echo "$as_me: failed program was:" >&5
3977
sed 's/^/| /' conftest.$ac_ext >&5
3982
rm -f core conftest.err conftest.$ac_objext
3983
test "x$ac_cv_prog_cc_c89" != "xno" && break
3985
rm -f conftest.$ac_ext
3990
case "x$ac_cv_prog_cc_c89" in
3992
{ echo "$as_me:$LINENO: result: none needed" >&5
3993
echo "${ECHO_T}none needed" >&6; } ;;
3995
{ echo "$as_me:$LINENO: result: unsupported" >&5
3996
echo "${ECHO_T}unsupported" >&6; } ;;
3998
CC="$CC $ac_cv_prog_cc_c89"
3999
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4000
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4005
ac_cpp='$CPP $CPPFLAGS'
4006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010
depcc="$CC" am_compiler_list=
4012
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4013
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4014
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4015
echo $ECHO_N "(cached) $ECHO_C" >&6
4017
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4018
# We make a subdir and do the tests there. Otherwise we can end up
4019
# making bogus files that we don't know about and never remove. For
4020
# instance it was reported that on HP-UX the gcc test will end up
4021
# making a dummy file named `D' -- because `-MD' means `put the output
4024
# Copy depcomp to subdir because otherwise we won't find it if we're
4025
# using a relative directory.
4026
cp "$am_depcomp" conftest.dir
4028
# We will build objects and dependencies in a subdirectory because
4029
# it helps to detect inapplicable dependency modes. For instance
4030
# both Tru64's cc and ICC support -MD to output dependencies as a
4031
# side effect of compilation, but ICC will put the dependencies in
4032
# the current directory while Tru64 will put them in the object
4036
am_cv_CC_dependencies_compiler_type=none
4037
if test "$am_compiler_list" = ""; then
4038
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4040
for depmode in $am_compiler_list; do
4041
# Setup a source with many dependencies, because some compilers
4042
# like to wrap large dependency lists on column 80 (with \), and
4043
# we should not choose a depcomp mode which is confused by this.
4045
# We need to recreate these files for each test, as the compiler may
4046
# overwrite some of them when testing with obscure command lines.
4047
# This happens at least with the AIX C compiler.
4049
for i in 1 2 3 4 5 6; do
4050
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4051
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4052
# Solaris 8's {/usr,}/bin/sh.
4053
touch sub/conftst$i.h
4055
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4059
# after this tag, mechanisms are not by side-effect, so they'll
4060
# only be used when explicitly requested
4061
if test "x$enable_dependency_tracking" = xyes; then
4069
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4070
# mode. It turns out that the SunPro C++ compiler does not properly
4071
# handle `-M -o', and we need to detect this.
4072
if depmode=$depmode \
4073
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4074
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4075
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4076
>/dev/null 2>conftest.err &&
4077
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4078
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4079
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4080
# icc doesn't choke on unknown options, it will just issue warnings
4081
# or remarks (even with -Werror). So we grep stderr for any message
4082
# that says an option was ignored or not supported.
4083
# When given -MP, icc 7.0 and 7.1 complain thusly:
4084
# icc: Command line warning: ignoring option '-M'; no argument required
4085
# The diagnosis changed in icc 8.0:
4086
# icc: Command line remark: option '-MP' not supported
4087
if (grep 'ignoring option' conftest.err ||
4088
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4089
am_cv_CC_dependencies_compiler_type=$depmode
4098
am_cv_CC_dependencies_compiler_type=none
4102
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4103
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4104
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4109
test "x$enable_dependency_tracking" != xno \
4110
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4112
am__fastdepCC_FALSE='#'
4114
am__fastdepCC_TRUE='#'
4115
am__fastdepCC_FALSE=
4121
ac_cpp='$CPP $CPPFLAGS'
4122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4126
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4127
# On Suns, sometimes $CPP names a directory.
4128
if test -n "$CPP" && test -d "$CPP"; then
4131
if test -z "$CPP"; then
4132
if test "${ac_cv_prog_CPP+set}" = set; then
4133
echo $ECHO_N "(cached) $ECHO_C" >&6
4135
# Double quotes because CPP needs to be expanded
4136
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4139
for ac_c_preproc_warn_flag in '' yes
4141
# Use a header file that comes with gcc, so configuring glibc
4142
# with a fresh cross-compiler works.
4143
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144
# <limits.h> exists even on freestanding compilers.
4145
# On the NeXT, cc -E runs the code through the compiler's parser,
4146
# not just through cpp. "Syntax error" is here to catch this case.
4147
cat >conftest.$ac_ext <<_ACEOF
4150
cat confdefs.h >>conftest.$ac_ext
4151
cat >>conftest.$ac_ext <<_ACEOF
4152
/* end confdefs.h. */
4154
# include <limits.h>
4156
# include <assert.h>
4160
if { (ac_try="$ac_cpp conftest.$ac_ext"
4162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163
*) ac_try_echo=$ac_try;;
4165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4168
grep -v '^ *+' conftest.er1 >conftest.err
4170
cat conftest.err >&5
4171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172
(exit $ac_status); } >/dev/null && {
4173
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4174
test ! -s conftest.err
4178
echo "$as_me: failed program was:" >&5
4179
sed 's/^/| /' conftest.$ac_ext >&5
4181
# Broken: fails on valid input.
4185
rm -f conftest.err conftest.$ac_ext
4187
# OK, works on sane cases. Now check whether nonexistent headers
4188
# can be detected and how.
4189
cat >conftest.$ac_ext <<_ACEOF
4192
cat confdefs.h >>conftest.$ac_ext
4193
cat >>conftest.$ac_ext <<_ACEOF
4194
/* end confdefs.h. */
4195
#include <ac_nonexistent.h>
4197
if { (ac_try="$ac_cpp conftest.$ac_ext"
4199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200
*) ac_try_echo=$ac_try;;
4202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4205
grep -v '^ *+' conftest.er1 >conftest.err
4207
cat conftest.err >&5
4208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
(exit $ac_status); } >/dev/null && {
4210
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4211
test ! -s conftest.err
4213
# Broken: success on invalid input.
4216
echo "$as_me: failed program was:" >&5
4217
sed 's/^/| /' conftest.$ac_ext >&5
4219
# Passes both tests.
4224
rm -f conftest.err conftest.$ac_ext
4227
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4228
rm -f conftest.err conftest.$ac_ext
4229
if $ac_preproc_ok; then
4241
{ echo "$as_me:$LINENO: result: $CPP" >&5
4242
echo "${ECHO_T}$CPP" >&6; }
4244
for ac_c_preproc_warn_flag in '' yes
4246
# Use a header file that comes with gcc, so configuring glibc
4247
# with a fresh cross-compiler works.
4248
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4249
# <limits.h> exists even on freestanding compilers.
4250
# On the NeXT, cc -E runs the code through the compiler's parser,
4251
# not just through cpp. "Syntax error" is here to catch this case.
4252
cat >conftest.$ac_ext <<_ACEOF
4255
cat confdefs.h >>conftest.$ac_ext
4256
cat >>conftest.$ac_ext <<_ACEOF
4257
/* end confdefs.h. */
4259
# include <limits.h>
4261
# include <assert.h>
4265
if { (ac_try="$ac_cpp conftest.$ac_ext"
4267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268
*) ac_try_echo=$ac_try;;
4270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4273
grep -v '^ *+' conftest.er1 >conftest.err
4275
cat conftest.err >&5
4276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277
(exit $ac_status); } >/dev/null && {
4278
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4279
test ! -s conftest.err
4283
echo "$as_me: failed program was:" >&5
4284
sed 's/^/| /' conftest.$ac_ext >&5
4286
# Broken: fails on valid input.
4290
rm -f conftest.err conftest.$ac_ext
4292
# OK, works on sane cases. Now check whether nonexistent headers
4293
# can be detected and how.
4294
cat >conftest.$ac_ext <<_ACEOF
4297
cat confdefs.h >>conftest.$ac_ext
4298
cat >>conftest.$ac_ext <<_ACEOF
4299
/* end confdefs.h. */
4300
#include <ac_nonexistent.h>
4302
if { (ac_try="$ac_cpp conftest.$ac_ext"
4304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305
*) ac_try_echo=$ac_try;;
4307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4310
grep -v '^ *+' conftest.er1 >conftest.err
4312
cat conftest.err >&5
4313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
(exit $ac_status); } >/dev/null && {
4315
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4316
test ! -s conftest.err
4318
# Broken: success on invalid input.
4321
echo "$as_me: failed program was:" >&5
4322
sed 's/^/| /' conftest.$ac_ext >&5
4324
# Passes both tests.
4329
rm -f conftest.err conftest.$ac_ext
4332
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333
rm -f conftest.err conftest.$ac_ext
4334
if $ac_preproc_ok; then
4337
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4338
See \`config.log' for more details." >&5
4339
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4340
See \`config.log' for more details." >&2;}
4341
{ (exit 1); exit 1; }; }
4345
ac_cpp='$CPP $CPPFLAGS'
4346
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351
if test "$GCC" = "yes"; then
4352
if test "$kde_use_debug_code" != "no"; then
4353
if test $kde_use_debug_code = "full"; then
4354
CFLAGS="-g3 -fno-inline $CFLAGS"
4356
CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
4359
CFLAGS="-O2 $CFLAGS"
4363
if test "$kde_use_debug_define" = "yes"; then
4364
CFLAGS="-DNDEBUG $CFLAGS"
4369
*-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4370
*-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4373
if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4377
CXXFLAGS=" $CXXFLAGS"
4380
ac_cpp='$CXXCPP $CPPFLAGS'
4381
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4384
if test -z "$CXX"; then
4385
if test -n "$CCC"; then
4388
if test -n "$ac_tool_prefix"; then
4389
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4391
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4392
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4393
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4394
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395
if test "${ac_cv_prog_CXX+set}" = set; then
4396
echo $ECHO_N "(cached) $ECHO_C" >&6
4398
if test -n "$CXX"; then
4399
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405
test -z "$as_dir" && as_dir=.
4406
for ac_exec_ext in '' $ac_executable_extensions; do
4407
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4409
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419
if test -n "$CXX"; then
4420
{ echo "$as_me:$LINENO: result: $CXX" >&5
4421
echo "${ECHO_T}$CXX" >&6; }
4423
{ echo "$as_me:$LINENO: result: no" >&5
4424
echo "${ECHO_T}no" >&6; }
4428
test -n "$CXX" && break
4431
if test -z "$CXX"; then
4433
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4435
# Extract the first word of "$ac_prog", so it can be a program name with args.
4436
set dummy $ac_prog; ac_word=$2
4437
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4440
echo $ECHO_N "(cached) $ECHO_C" >&6
4442
if test -n "$ac_ct_CXX"; then
4443
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449
test -z "$as_dir" && as_dir=.
4450
for ac_exec_ext in '' $ac_executable_extensions; do
4451
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4452
ac_cv_prog_ac_ct_CXX="$ac_prog"
4453
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4463
if test -n "$ac_ct_CXX"; then
4464
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4465
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4467
{ echo "$as_me:$LINENO: result: no" >&5
4468
echo "${ECHO_T}no" >&6; }
4472
test -n "$ac_ct_CXX" && break
4475
if test "x$ac_ct_CXX" = x; then
4478
case $cross_compiling:$ac_tool_warned in
4480
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4481
whose name does not start with the host triplet. If you think this
4482
configuration is useful to you, please write to autoconf@gnu.org." >&5
4483
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4484
whose name does not start with the host triplet. If you think this
4485
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4486
ac_tool_warned=yes ;;
4494
# Provide some information about the compiler.
4495
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4496
ac_compiler=`set X $ac_compile; echo $2`
4497
{ (ac_try="$ac_compiler --version >&5"
4499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500
*) ac_try_echo=$ac_try;;
4502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503
(eval "$ac_compiler --version >&5") 2>&5
4505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
(exit $ac_status); }
4507
{ (ac_try="$ac_compiler -v >&5"
4509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510
*) ac_try_echo=$ac_try;;
4512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513
(eval "$ac_compiler -v >&5") 2>&5
4515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516
(exit $ac_status); }
4517
{ (ac_try="$ac_compiler -V >&5"
4519
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520
*) ac_try_echo=$ac_try;;
4522
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523
(eval "$ac_compiler -V >&5") 2>&5
4525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
(exit $ac_status); }
4528
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4529
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4530
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4531
echo $ECHO_N "(cached) $ECHO_C" >&6
4533
cat >conftest.$ac_ext <<_ACEOF
4536
cat confdefs.h >>conftest.$ac_ext
4537
cat >>conftest.$ac_ext <<_ACEOF
4538
/* end confdefs.h. */
4551
rm -f conftest.$ac_objext
4552
if { (ac_try="$ac_compile"
4554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555
*) ac_try_echo=$ac_try;;
4557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558
(eval "$ac_compile") 2>conftest.er1
4560
grep -v '^ *+' conftest.er1 >conftest.err
4562
cat conftest.err >&5
4563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564
(exit $ac_status); } && {
4565
test -z "$ac_cxx_werror_flag" ||
4566
test ! -s conftest.err
4567
} && test -s conftest.$ac_objext; then
4570
echo "$as_me: failed program was:" >&5
4571
sed 's/^/| /' conftest.$ac_ext >&5
4576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4580
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4581
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4582
GXX=`test $ac_compiler_gnu = yes && echo yes`
4583
ac_test_CXXFLAGS=${CXXFLAGS+set}
4584
ac_save_CXXFLAGS=$CXXFLAGS
4585
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4586
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4587
if test "${ac_cv_prog_cxx_g+set}" = set; then
4588
echo $ECHO_N "(cached) $ECHO_C" >&6
4590
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4591
ac_cxx_werror_flag=yes
4594
cat >conftest.$ac_ext <<_ACEOF
4597
cat confdefs.h >>conftest.$ac_ext
4598
cat >>conftest.$ac_ext <<_ACEOF
4599
/* end confdefs.h. */
4609
rm -f conftest.$ac_objext
4610
if { (ac_try="$ac_compile"
4612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613
*) ac_try_echo=$ac_try;;
4615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616
(eval "$ac_compile") 2>conftest.er1
4618
grep -v '^ *+' conftest.er1 >conftest.err
4620
cat conftest.err >&5
4621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622
(exit $ac_status); } && {
4623
test -z "$ac_cxx_werror_flag" ||
4624
test ! -s conftest.err
4625
} && test -s conftest.$ac_objext; then
4626
ac_cv_prog_cxx_g=yes
4628
echo "$as_me: failed program was:" >&5
4629
sed 's/^/| /' conftest.$ac_ext >&5
4632
cat >conftest.$ac_ext <<_ACEOF
4635
cat confdefs.h >>conftest.$ac_ext
4636
cat >>conftest.$ac_ext <<_ACEOF
4637
/* end confdefs.h. */
4647
rm -f conftest.$ac_objext
4648
if { (ac_try="$ac_compile"
4650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651
*) ac_try_echo=$ac_try;;
4653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654
(eval "$ac_compile") 2>conftest.er1
4656
grep -v '^ *+' conftest.er1 >conftest.err
4658
cat conftest.err >&5
4659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660
(exit $ac_status); } && {
4661
test -z "$ac_cxx_werror_flag" ||
4662
test ! -s conftest.err
4663
} && test -s conftest.$ac_objext; then
4666
echo "$as_me: failed program was:" >&5
4667
sed 's/^/| /' conftest.$ac_ext >&5
4669
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4671
cat >conftest.$ac_ext <<_ACEOF
4674
cat confdefs.h >>conftest.$ac_ext
4675
cat >>conftest.$ac_ext <<_ACEOF
4676
/* end confdefs.h. */
4686
rm -f conftest.$ac_objext
4687
if { (ac_try="$ac_compile"
4689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690
*) ac_try_echo=$ac_try;;
4692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693
(eval "$ac_compile") 2>conftest.er1
4695
grep -v '^ *+' conftest.er1 >conftest.err
4697
cat conftest.err >&5
4698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699
(exit $ac_status); } && {
4700
test -z "$ac_cxx_werror_flag" ||
4701
test ! -s conftest.err
4702
} && test -s conftest.$ac_objext; then
4703
ac_cv_prog_cxx_g=yes
4705
echo "$as_me: failed program was:" >&5
4706
sed 's/^/| /' conftest.$ac_ext >&5
4711
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4720
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4721
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4722
if test "$ac_test_CXXFLAGS" = set; then
4723
CXXFLAGS=$ac_save_CXXFLAGS
4724
elif test $ac_cv_prog_cxx_g = yes; then
4725
if test "$GXX" = yes; then
4731
if test "$GXX" = yes; then
4738
ac_cpp='$CPP $CPPFLAGS'
4739
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743
depcc="$CXX" am_compiler_list=
4745
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4746
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4747
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4748
echo $ECHO_N "(cached) $ECHO_C" >&6
4750
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4751
# We make a subdir and do the tests there. Otherwise we can end up
4752
# making bogus files that we don't know about and never remove. For
4753
# instance it was reported that on HP-UX the gcc test will end up
4754
# making a dummy file named `D' -- because `-MD' means `put the output
4757
# Copy depcomp to subdir because otherwise we won't find it if we're
4758
# using a relative directory.
4759
cp "$am_depcomp" conftest.dir
4761
# We will build objects and dependencies in a subdirectory because
4762
# it helps to detect inapplicable dependency modes. For instance
4763
# both Tru64's cc and ICC support -MD to output dependencies as a
4764
# side effect of compilation, but ICC will put the dependencies in
4765
# the current directory while Tru64 will put them in the object
4769
am_cv_CXX_dependencies_compiler_type=none
4770
if test "$am_compiler_list" = ""; then
4771
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4773
for depmode in $am_compiler_list; do
4774
# Setup a source with many dependencies, because some compilers
4775
# like to wrap large dependency lists on column 80 (with \), and
4776
# we should not choose a depcomp mode which is confused by this.
4778
# We need to recreate these files for each test, as the compiler may
4779
# overwrite some of them when testing with obscure command lines.
4780
# This happens at least with the AIX C compiler.
4782
for i in 1 2 3 4 5 6; do
4783
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4784
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4785
# Solaris 8's {/usr,}/bin/sh.
4786
touch sub/conftst$i.h
4788
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4792
# after this tag, mechanisms are not by side-effect, so they'll
4793
# only be used when explicitly requested
4794
if test "x$enable_dependency_tracking" = xyes; then
4802
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4803
# mode. It turns out that the SunPro C++ compiler does not properly
4804
# handle `-M -o', and we need to detect this.
4805
if depmode=$depmode \
4806
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4807
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4808
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4809
>/dev/null 2>conftest.err &&
4810
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4811
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4812
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4813
# icc doesn't choke on unknown options, it will just issue warnings
4814
# or remarks (even with -Werror). So we grep stderr for any message
4815
# that says an option was ignored or not supported.
4816
# When given -MP, icc 7.0 and 7.1 complain thusly:
4817
# icc: Command line warning: ignoring option '-M'; no argument required
4818
# The diagnosis changed in icc 8.0:
4819
# icc: Command line remark: option '-MP' not supported
4820
if (grep 'ignoring option' conftest.err ||
4821
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4822
am_cv_CXX_dependencies_compiler_type=$depmode
4831
am_cv_CXX_dependencies_compiler_type=none
4835
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4836
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4837
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4842
test "x$enable_dependency_tracking" != xno \
4843
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4844
am__fastdepCXX_TRUE=
4845
am__fastdepCXX_FALSE='#'
4847
am__fastdepCXX_TRUE='#'
4848
am__fastdepCXX_FALSE=
4854
{ echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
4855
echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6; }
4858
cat >conftest.$ac_ext <<_ACEOF
4861
cat confdefs.h >>conftest.$ac_ext
4862
cat >>conftest.$ac_ext <<_ACEOF
4863
/* end confdefs.h. */
4866
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
4879
rm -f conftest.$ac_objext
4880
if { (ac_try="$ac_compile"
4882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883
*) ac_try_echo=$ac_try;;
4885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886
(eval "$ac_compile") 2>conftest.er1
4888
grep -v '^ *+' conftest.er1 >conftest.err
4890
cat conftest.err >&5
4891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892
(exit $ac_status); } && {
4893
test -z "$ac_c_werror_flag" ||
4894
test ! -s conftest.err
4895
} && test -s conftest.$ac_objext; then
4898
echo "$as_me: failed program was:" >&5
4899
sed 's/^/| /' conftest.$ac_ext >&5
4901
kde_bad_compiler=yes
4905
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907
{ echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
4908
echo "${ECHO_T}$kde_bad_compiler" >&6; }
4910
if test "$kde_bad_compiler" = "yes"; then
4911
{ { echo "$as_me:$LINENO: error:
4913
This particular compiler version is blacklisted because it
4914
is known to miscompile KDE. Please use a newer version, or
4915
if that is not yet available, choose an older version.
4917
Please do not report a bug or bother us reporting this
4918
configure error. We know about it, and we introduced
4919
it by intention to avoid untraceable bugs or crashes in KDE.
4922
echo "$as_me: error:
4924
This particular compiler version is blacklisted because it
4925
is known to miscompile KDE. Please use a newer version, or
4926
if that is not yet available, choose an older version.
4928
Please do not report a bug or bother us reporting this
4929
configure error. We know about it, and we introduced
4930
it by intention to avoid untraceable bugs or crashes in KDE.
4933
{ (exit 1); exit 1; }; }
4938
if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4939
if test "$kde_use_debug_code" != "no"; then
4940
if test "$CXX" = "KCC"; then
4941
CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4943
if test "$kde_use_debug_code" = "full"; then
4944
CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
4946
CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
4950
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4951
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6; }
4952
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
4953
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4954
echo $ECHO_N "(cached) $ECHO_C" >&6
4960
ac_cpp='$CXXCPP $CPPFLAGS'
4961
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4969
save_CXXFLAGS="$CXXFLAGS"
4970
CXXFLAGS="$CXXFLAGS -fno-builtin"
4971
cat >conftest.$ac_ext <<_ACEOF
4974
cat confdefs.h >>conftest.$ac_ext
4975
cat >>conftest.$ac_ext <<_ACEOF
4976
/* end confdefs.h. */
4986
rm -f conftest.$ac_objext conftest$ac_exeext
4987
if { (ac_try="$ac_link"
4989
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990
*) ac_try_echo=$ac_try;;
4992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993
(eval "$ac_link") 2>conftest.er1
4995
grep -v '^ *+' conftest.er1 >conftest.err
4997
cat conftest.err >&5
4998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999
(exit $ac_status); } && {
5000
test -z "$ac_cxx_werror_flag" ||
5001
test ! -s conftest.err
5002
} && test -s conftest$ac_exeext &&
5003
$as_test_x conftest$ac_exeext; then
5004
eval "kde_cv_prog_cxx_$kde_cache=yes"
5006
echo "$as_me: failed program was:" >&5
5007
sed 's/^/| /' conftest.$ac_ext >&5
5012
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5013
conftest$ac_exeext conftest.$ac_ext
5014
CXXFLAGS="$save_CXXFLAGS"
5016
ac_cpp='$CPP $CPPFLAGS'
5017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5025
{ echo "$as_me:$LINENO: result: yes" >&5
5026
echo "${ECHO_T}yes" >&6; }
5028
CXXFLAGS="-fno-builtin $CXXFLAGS"
5030
{ echo "$as_me:$LINENO: result: no" >&5
5031
echo "${ECHO_T}no" >&6; }
5038
{ echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
5039
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6; }
5040
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
5041
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5042
echo $ECHO_N "(cached) $ECHO_C" >&6
5047
ac_cpp='$CXXCPP $CPPFLAGS'
5048
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5052
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5055
save_CXXFLAGS="$CXXFLAGS"
5056
CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
5057
cat >conftest.$ac_ext <<_ACEOF
5060
cat confdefs.h >>conftest.$ac_ext
5061
cat >>conftest.$ac_ext <<_ACEOF
5062
/* end confdefs.h. */
5072
rm -f conftest.$ac_objext conftest$ac_exeext
5073
if { (ac_try="$ac_link"
5075
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076
*) ac_try_echo=$ac_try;;
5078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079
(eval "$ac_link") 2>conftest.er1
5081
grep -v '^ *+' conftest.er1 >conftest.err
5083
cat conftest.err >&5
5084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085
(exit $ac_status); } && {
5086
test -z "$ac_cxx_werror_flag" ||
5087
test ! -s conftest.err
5088
} && test -s conftest$ac_exeext &&
5089
$as_test_x conftest$ac_exeext; then
5090
eval "kde_cv_prog_cxx_$kde_cache=yes"
5092
echo "$as_me: failed program was:" >&5
5093
sed 's/^/| /' conftest.$ac_ext >&5
5098
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5099
conftest$ac_exeext conftest.$ac_ext
5100
CXXFLAGS="$save_CXXFLAGS"
5102
ac_cpp='$CPP $CPPFLAGS'
5103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5111
{ echo "$as_me:$LINENO: result: yes" >&5
5112
echo "${ECHO_T}yes" >&6; }
5114
WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
5116
{ echo "$as_me:$LINENO: result: no" >&5
5117
echo "${ECHO_T}no" >&6; }
5119
WOVERLOADED_VRITUAL=""
5124
if test "$CXX" = "KCC"; then
5125
CXXFLAGS="+K3 $CXXFLAGS"
5127
CXXFLAGS="-O2 $CXXFLAGS"
5132
if test "$kde_use_debug_define" = "yes"; then
5133
CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
5136
if test "$kde_use_profiling" = "yes"; then
5138
{ echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
5139
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6; }
5140
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
5141
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5142
echo $ECHO_N "(cached) $ECHO_C" >&6
5147
ac_cpp='$CXXCPP $CPPFLAGS'
5148
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5152
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5155
save_CXXFLAGS="$CXXFLAGS"
5156
CXXFLAGS="$CXXFLAGS -pg"
5157
cat >conftest.$ac_ext <<_ACEOF
5160
cat confdefs.h >>conftest.$ac_ext
5161
cat >>conftest.$ac_ext <<_ACEOF
5162
/* end confdefs.h. */
5172
rm -f conftest.$ac_objext conftest$ac_exeext
5173
if { (ac_try="$ac_link"
5175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176
*) ac_try_echo=$ac_try;;
5178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179
(eval "$ac_link") 2>conftest.er1
5181
grep -v '^ *+' conftest.er1 >conftest.err
5183
cat conftest.err >&5
5184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185
(exit $ac_status); } && {
5186
test -z "$ac_cxx_werror_flag" ||
5187
test ! -s conftest.err
5188
} && test -s conftest$ac_exeext &&
5189
$as_test_x conftest$ac_exeext; then
5190
eval "kde_cv_prog_cxx_$kde_cache=yes"
5192
echo "$as_me: failed program was:" >&5
5193
sed 's/^/| /' conftest.$ac_ext >&5
5198
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5199
conftest$ac_exeext conftest.$ac_ext
5200
CXXFLAGS="$save_CXXFLAGS"
5202
ac_cpp='$CPP $CPPFLAGS'
5203
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5211
{ echo "$as_me:$LINENO: result: yes" >&5
5212
echo "${ECHO_T}yes" >&6; }
5215
CFLAGS="-pg $CFLAGS"
5216
CXXFLAGS="-pg $CXXFLAGS"
5219
{ echo "$as_me:$LINENO: result: no" >&5
5220
echo "${ECHO_T}no" >&6; }
5227
if test "$kde_use_warnings" = "yes"; then
5228
if test "$GCC" = "yes"; then
5229
CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
5232
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
5233
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
5235
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
5236
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5237
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5238
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5239
echo $ECHO_N "(cached) $ECHO_C" >&6
5244
ac_cpp='$CXXCPP $CPPFLAGS'
5245
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5252
save_CXXFLAGS="$CXXFLAGS"
5253
CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
5254
cat >conftest.$ac_ext <<_ACEOF
5257
cat confdefs.h >>conftest.$ac_ext
5258
cat >>conftest.$ac_ext <<_ACEOF
5259
/* end confdefs.h. */
5269
rm -f conftest.$ac_objext conftest$ac_exeext
5270
if { (ac_try="$ac_link"
5272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273
*) ac_try_echo=$ac_try;;
5275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276
(eval "$ac_link") 2>conftest.er1
5278
grep -v '^ *+' conftest.er1 >conftest.err
5280
cat conftest.err >&5
5281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282
(exit $ac_status); } && {
5283
test -z "$ac_cxx_werror_flag" ||
5284
test ! -s conftest.err
5285
} && test -s conftest$ac_exeext &&
5286
$as_test_x conftest$ac_exeext; then
5287
eval "kde_cv_prog_cxx_$kde_cache=yes"
5289
echo "$as_me: failed program was:" >&5
5290
sed 's/^/| /' conftest.$ac_ext >&5
5295
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5296
conftest$ac_exeext conftest.$ac_ext
5297
CXXFLAGS="$save_CXXFLAGS"
5299
ac_cpp='$CPP $CPPFLAGS'
5300
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5308
{ echo "$as_me:$LINENO: result: yes" >&5
5309
echo "${ECHO_T}yes" >&6; }
5311
CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
5313
{ echo "$as_me:$LINENO: result: no" >&5
5314
echo "${ECHO_T}no" >&6; }
5320
{ echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
5321
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5322
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5323
if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5324
echo $ECHO_N "(cached) $ECHO_C" >&6
5329
ac_cpp='$CPP $CPPFLAGS'
5330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334
save_CFLAGS="$CFLAGS"
5335
CFLAGS="$CFLAGS -Wmissing-format-attribute"
5336
cat >conftest.$ac_ext <<_ACEOF
5339
cat confdefs.h >>conftest.$ac_ext
5340
cat >>conftest.$ac_ext <<_ACEOF
5341
/* end confdefs.h. */
5351
rm -f conftest.$ac_objext conftest$ac_exeext
5352
if { (ac_try="$ac_link"
5354
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355
*) ac_try_echo=$ac_try;;
5357
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358
(eval "$ac_link") 2>conftest.er1
5360
grep -v '^ *+' conftest.er1 >conftest.err
5362
cat conftest.err >&5
5363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364
(exit $ac_status); } && {
5365
test -z "$ac_c_werror_flag" ||
5366
test ! -s conftest.err
5367
} && test -s conftest$ac_exeext &&
5368
$as_test_x conftest$ac_exeext; then
5369
eval "kde_cv_prog_cc_$kde_cache=yes"
5371
echo "$as_me: failed program was:" >&5
5372
sed 's/^/| /' conftest.$ac_ext >&5
5377
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5378
conftest$ac_exeext conftest.$ac_ext
5379
CFLAGS="$save_CFLAGS"
5381
ac_cpp='$CPP $CPPFLAGS'
5382
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
5390
{ echo "$as_me:$LINENO: result: yes" >&5
5391
echo "${ECHO_T}yes" >&6; }
5393
CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
5395
{ echo "$as_me:$LINENO: result: no" >&5
5396
echo "${ECHO_T}no" >&6; }
5404
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
5405
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6; }
5406
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
5407
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5408
echo $ECHO_N "(cached) $ECHO_C" >&6
5413
ac_cpp='$CXXCPP $CPPFLAGS'
5414
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5418
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5421
save_CXXFLAGS="$CXXFLAGS"
5422
CXXFLAGS="$CXXFLAGS -Wundef"
5423
cat >conftest.$ac_ext <<_ACEOF
5426
cat confdefs.h >>conftest.$ac_ext
5427
cat >>conftest.$ac_ext <<_ACEOF
5428
/* end confdefs.h. */
5438
rm -f conftest.$ac_objext conftest$ac_exeext
5439
if { (ac_try="$ac_link"
5441
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442
*) ac_try_echo=$ac_try;;
5444
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445
(eval "$ac_link") 2>conftest.er1
5447
grep -v '^ *+' conftest.er1 >conftest.err
5449
cat conftest.err >&5
5450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451
(exit $ac_status); } && {
5452
test -z "$ac_cxx_werror_flag" ||
5453
test ! -s conftest.err
5454
} && test -s conftest$ac_exeext &&
5455
$as_test_x conftest$ac_exeext; then
5456
eval "kde_cv_prog_cxx_$kde_cache=yes"
5458
echo "$as_me: failed program was:" >&5
5459
sed 's/^/| /' conftest.$ac_ext >&5
5464
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5465
conftest$ac_exeext conftest.$ac_ext
5466
CXXFLAGS="$save_CXXFLAGS"
5468
ac_cpp='$CPP $CPPFLAGS'
5469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5477
{ echo "$as_me:$LINENO: result: yes" >&5
5478
echo "${ECHO_T}yes" >&6; }
5480
CXXFLAGS="-Wundef $CXXFLAGS"
5482
{ echo "$as_me:$LINENO: result: no" >&5
5483
echo "${ECHO_T}no" >&6; }
5489
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5490
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6; }
5491
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
5492
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5493
echo $ECHO_N "(cached) $ECHO_C" >&6
5498
ac_cpp='$CXXCPP $CPPFLAGS'
5499
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5503
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5506
save_CXXFLAGS="$CXXFLAGS"
5507
CXXFLAGS="$CXXFLAGS -Wno-long-long"
5508
cat >conftest.$ac_ext <<_ACEOF
5511
cat confdefs.h >>conftest.$ac_ext
5512
cat >>conftest.$ac_ext <<_ACEOF
5513
/* end confdefs.h. */
5523
rm -f conftest.$ac_objext conftest$ac_exeext
5524
if { (ac_try="$ac_link"
5526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527
*) ac_try_echo=$ac_try;;
5529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530
(eval "$ac_link") 2>conftest.er1
5532
grep -v '^ *+' conftest.er1 >conftest.err
5534
cat conftest.err >&5
5535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536
(exit $ac_status); } && {
5537
test -z "$ac_cxx_werror_flag" ||
5538
test ! -s conftest.err
5539
} && test -s conftest$ac_exeext &&
5540
$as_test_x conftest$ac_exeext; then
5541
eval "kde_cv_prog_cxx_$kde_cache=yes"
5543
echo "$as_me: failed program was:" >&5
5544
sed 's/^/| /' conftest.$ac_ext >&5
5549
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5550
conftest$ac_exeext conftest.$ac_ext
5551
CXXFLAGS="$save_CXXFLAGS"
5553
ac_cpp='$CPP $CPPFLAGS'
5554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5562
{ echo "$as_me:$LINENO: result: yes" >&5
5563
echo "${ECHO_T}yes" >&6; }
5565
CXXFLAGS="-Wno-long-long $CXXFLAGS"
5567
{ echo "$as_me:$LINENO: result: no" >&5
5568
echo "${ECHO_T}no" >&6; }
5574
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
5575
echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6; }
5576
kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
5577
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5578
echo $ECHO_N "(cached) $ECHO_C" >&6
5583
ac_cpp='$CXXCPP $CPPFLAGS'
5584
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5588
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5591
save_CXXFLAGS="$CXXFLAGS"
5592
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5593
cat >conftest.$ac_ext <<_ACEOF
5596
cat confdefs.h >>conftest.$ac_ext
5597
cat >>conftest.$ac_ext <<_ACEOF
5598
/* end confdefs.h. */
5608
rm -f conftest.$ac_objext conftest$ac_exeext
5609
if { (ac_try="$ac_link"
5611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612
*) ac_try_echo=$ac_try;;
5614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615
(eval "$ac_link") 2>conftest.er1
5617
grep -v '^ *+' conftest.er1 >conftest.err
5619
cat conftest.err >&5
5620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621
(exit $ac_status); } && {
5622
test -z "$ac_cxx_werror_flag" ||
5623
test ! -s conftest.err
5624
} && test -s conftest$ac_exeext &&
5625
$as_test_x conftest$ac_exeext; then
5626
eval "kde_cv_prog_cxx_$kde_cache=yes"
5628
echo "$as_me: failed program was:" >&5
5629
sed 's/^/| /' conftest.$ac_ext >&5
5634
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5635
conftest$ac_exeext conftest.$ac_ext
5636
CXXFLAGS="$save_CXXFLAGS"
5638
ac_cpp='$CPP $CPPFLAGS'
5639
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5647
{ echo "$as_me:$LINENO: result: yes" >&5
5648
echo "${ECHO_T}yes" >&6; }
5650
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5652
{ echo "$as_me:$LINENO: result: no" >&5
5653
echo "${ECHO_T}no" >&6; }
5661
if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5662
CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5665
# Check whether --enable-pch was given.
5666
if test "${enable_pch+set}" = set; then
5667
enableval=$enable_pch; kde_use_pch=$enableval
5673
HAVE_GCC_VISIBILITY=0
5676
if test "$GXX" = "yes"; then
5677
gcc_no_reorder_blocks=NO
5679
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5
5680
echo $ECHO_N "checking whether $CXX supports -fno-reorder-blocks... $ECHO_C" >&6; }
5681
kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'`
5682
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5683
echo $ECHO_N "(cached) $ECHO_C" >&6
5688
ac_cpp='$CXXCPP $CPPFLAGS'
5689
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5693
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5696
save_CXXFLAGS="$CXXFLAGS"
5697
CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5698
cat >conftest.$ac_ext <<_ACEOF
5701
cat confdefs.h >>conftest.$ac_ext
5702
cat >>conftest.$ac_ext <<_ACEOF
5703
/* end confdefs.h. */
5713
rm -f conftest.$ac_objext conftest$ac_exeext
5714
if { (ac_try="$ac_link"
5716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717
*) ac_try_echo=$ac_try;;
5719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720
(eval "$ac_link") 2>conftest.er1
5722
grep -v '^ *+' conftest.er1 >conftest.err
5724
cat conftest.err >&5
5725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726
(exit $ac_status); } && {
5727
test -z "$ac_cxx_werror_flag" ||
5728
test ! -s conftest.err
5729
} && test -s conftest$ac_exeext &&
5730
$as_test_x conftest$ac_exeext; then
5731
eval "kde_cv_prog_cxx_$kde_cache=yes"
5733
echo "$as_me: failed program was:" >&5
5734
sed 's/^/| /' conftest.$ac_ext >&5
5739
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5740
conftest$ac_exeext conftest.$ac_ext
5741
CXXFLAGS="$save_CXXFLAGS"
5743
ac_cpp='$CPP $CPPFLAGS'
5744
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5752
{ echo "$as_me:$LINENO: result: yes" >&5
5753
echo "${ECHO_T}yes" >&6; }
5755
gcc_no_reorder_blocks=YES
5757
{ echo "$as_me:$LINENO: result: no" >&5
5758
echo "${ECHO_T}no" >&6; }
5763
if test $kde_use_debug_code != "no" && \
5764
test $kde_use_debug_code != "full" && \
5765
test "YES" = "$gcc_no_reorder_blocks" ; then
5766
CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5767
CFLAGS="$CFLAGS -fno-reorder-blocks"
5770
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5771
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6; }
5772
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5773
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5774
echo $ECHO_N "(cached) $ECHO_C" >&6
5779
ac_cpp='$CXXCPP $CPPFLAGS'
5780
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5784
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5787
save_CXXFLAGS="$CXXFLAGS"
5788
CXXFLAGS="$CXXFLAGS -fno-exceptions"
5789
cat >conftest.$ac_ext <<_ACEOF
5792
cat confdefs.h >>conftest.$ac_ext
5793
cat >>conftest.$ac_ext <<_ACEOF
5794
/* end confdefs.h. */
5804
rm -f conftest.$ac_objext conftest$ac_exeext
5805
if { (ac_try="$ac_link"
5807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808
*) ac_try_echo=$ac_try;;
5810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811
(eval "$ac_link") 2>conftest.er1
5813
grep -v '^ *+' conftest.er1 >conftest.err
5815
cat conftest.err >&5
5816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817
(exit $ac_status); } && {
5818
test -z "$ac_cxx_werror_flag" ||
5819
test ! -s conftest.err
5820
} && test -s conftest$ac_exeext &&
5821
$as_test_x conftest$ac_exeext; then
5822
eval "kde_cv_prog_cxx_$kde_cache=yes"
5824
echo "$as_me: failed program was:" >&5
5825
sed 's/^/| /' conftest.$ac_ext >&5
5830
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5831
conftest$ac_exeext conftest.$ac_ext
5832
CXXFLAGS="$save_CXXFLAGS"
5834
ac_cpp='$CPP $CPPFLAGS'
5835
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5843
{ echo "$as_me:$LINENO: result: yes" >&5
5844
echo "${ECHO_T}yes" >&6; }
5846
CXXFLAGS="$CXXFLAGS -fno-exceptions"
5848
{ echo "$as_me:$LINENO: result: no" >&5
5849
echo "${ECHO_T}no" >&6; }
5855
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5856
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6; }
5857
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
5858
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5859
echo $ECHO_N "(cached) $ECHO_C" >&6
5864
ac_cpp='$CXXCPP $CPPFLAGS'
5865
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5869
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5872
save_CXXFLAGS="$CXXFLAGS"
5873
CXXFLAGS="$CXXFLAGS -fno-check-new"
5874
cat >conftest.$ac_ext <<_ACEOF
5877
cat confdefs.h >>conftest.$ac_ext
5878
cat >>conftest.$ac_ext <<_ACEOF
5879
/* end confdefs.h. */
5889
rm -f conftest.$ac_objext conftest$ac_exeext
5890
if { (ac_try="$ac_link"
5892
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893
*) ac_try_echo=$ac_try;;
5895
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896
(eval "$ac_link") 2>conftest.er1
5898
grep -v '^ *+' conftest.er1 >conftest.err
5900
cat conftest.err >&5
5901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902
(exit $ac_status); } && {
5903
test -z "$ac_cxx_werror_flag" ||
5904
test ! -s conftest.err
5905
} && test -s conftest$ac_exeext &&
5906
$as_test_x conftest$ac_exeext; then
5907
eval "kde_cv_prog_cxx_$kde_cache=yes"
5909
echo "$as_me: failed program was:" >&5
5910
sed 's/^/| /' conftest.$ac_ext >&5
5915
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5916
conftest$ac_exeext conftest.$ac_ext
5917
CXXFLAGS="$save_CXXFLAGS"
5919
ac_cpp='$CPP $CPPFLAGS'
5920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5928
{ echo "$as_me:$LINENO: result: yes" >&5
5929
echo "${ECHO_T}yes" >&6; }
5931
CXXFLAGS="$CXXFLAGS -fno-check-new"
5933
{ echo "$as_me:$LINENO: result: no" >&5
5934
echo "${ECHO_T}no" >&6; }
5940
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
5941
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6; }
5942
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
5943
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5944
echo $ECHO_N "(cached) $ECHO_C" >&6
5949
ac_cpp='$CXXCPP $CPPFLAGS'
5950
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5954
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5957
save_CXXFLAGS="$CXXFLAGS"
5958
CXXFLAGS="$CXXFLAGS -fno-common"
5959
cat >conftest.$ac_ext <<_ACEOF
5962
cat confdefs.h >>conftest.$ac_ext
5963
cat >>conftest.$ac_ext <<_ACEOF
5964
/* end confdefs.h. */
5974
rm -f conftest.$ac_objext conftest$ac_exeext
5975
if { (ac_try="$ac_link"
5977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978
*) ac_try_echo=$ac_try;;
5980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981
(eval "$ac_link") 2>conftest.er1
5983
grep -v '^ *+' conftest.er1 >conftest.err
5985
cat conftest.err >&5
5986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987
(exit $ac_status); } && {
5988
test -z "$ac_cxx_werror_flag" ||
5989
test ! -s conftest.err
5990
} && test -s conftest$ac_exeext &&
5991
$as_test_x conftest$ac_exeext; then
5992
eval "kde_cv_prog_cxx_$kde_cache=yes"
5994
echo "$as_me: failed program was:" >&5
5995
sed 's/^/| /' conftest.$ac_ext >&5
6000
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6001
conftest$ac_exeext conftest.$ac_ext
6002
CXXFLAGS="$save_CXXFLAGS"
6004
ac_cpp='$CPP $CPPFLAGS'
6005
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6013
{ echo "$as_me:$LINENO: result: yes" >&5
6014
echo "${ECHO_T}yes" >&6; }
6016
CXXFLAGS="$CXXFLAGS -fno-common"
6018
{ echo "$as_me:$LINENO: result: no" >&5
6019
echo "${ECHO_T}no" >&6; }
6025
{ echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
6026
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
6027
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
6028
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6029
echo $ECHO_N "(cached) $ECHO_C" >&6
6034
ac_cpp='$CXXCPP $CPPFLAGS'
6035
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6042
save_CXXFLAGS="$CXXFLAGS"
6043
CXXFLAGS="$CXXFLAGS -fexceptions"
6044
cat >conftest.$ac_ext <<_ACEOF
6047
cat confdefs.h >>conftest.$ac_ext
6048
cat >>conftest.$ac_ext <<_ACEOF
6049
/* end confdefs.h. */
6059
rm -f conftest.$ac_objext conftest$ac_exeext
6060
if { (ac_try="$ac_link"
6062
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063
*) ac_try_echo=$ac_try;;
6065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066
(eval "$ac_link") 2>conftest.er1
6068
grep -v '^ *+' conftest.er1 >conftest.err
6070
cat conftest.err >&5
6071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072
(exit $ac_status); } && {
6073
test -z "$ac_cxx_werror_flag" ||
6074
test ! -s conftest.err
6075
} && test -s conftest$ac_exeext &&
6076
$as_test_x conftest$ac_exeext; then
6077
eval "kde_cv_prog_cxx_$kde_cache=yes"
6079
echo "$as_me: failed program was:" >&5
6080
sed 's/^/| /' conftest.$ac_ext >&5
6085
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6086
conftest$ac_exeext conftest.$ac_ext
6087
CXXFLAGS="$save_CXXFLAGS"
6089
ac_cpp='$CPP $CPPFLAGS'
6090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6098
{ echo "$as_me:$LINENO: result: yes" >&5
6099
echo "${ECHO_T}yes" >&6; }
6101
USE_EXCEPTIONS="-fexceptions"
6103
{ echo "$as_me:$LINENO: result: no" >&5
6104
echo "${ECHO_T}no" >&6; }
6109
ENABLE_PERMISSIVE_FLAG="-fpermissive"
6111
if test "$kde_use_pch" = "yes"; then
6112
{ echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
6113
echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6; }
6115
if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
6116
kde_gcc_supports_pch=yes
6117
{ echo "$as_me:$LINENO: result: yes" >&5
6118
echo "${ECHO_T}yes" >&6; }
6120
kde_gcc_supports_pch=no
6121
{ echo "$as_me:$LINENO: result: no" >&5
6122
echo "${ECHO_T}no" >&6; }
6124
if test "$kde_gcc_supports_pch" = "yes"; then
6125
{ echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
6126
echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6; }
6127
if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
6128
kde_gcc_supports_pch=yes
6129
{ echo "$as_me:$LINENO: result: yes" >&5
6130
echo "${ECHO_T}yes" >&6; }
6132
kde_gcc_supports_pch=no
6133
{ echo "$as_me:$LINENO: result: no" >&5
6134
echo "${ECHO_T}no" >&6; }
6137
rm -f conftest.h conftest.h.gch
6141
{ echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5
6142
echo $ECHO_N "checking whether system headers can cope with -O2 -fno-inline... $ECHO_C" >&6; }
6143
if test "${kde_cv_opt_noinline_match+set}" = set; then
6144
echo $ECHO_N "(cached) $ECHO_C" >&6
6147
kde_cv_opt_noinline_match=irrelevant
6148
if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \
6149
&& echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then
6151
ac_cflags_save="$CFLAGS"
6152
CFLAGS="$CFLAGS -D_USE_GNU"
6154
cat >conftest.$ac_ext <<_ACEOF
6157
cat confdefs.h >>conftest.$ac_ext
6158
cat >>conftest.$ac_ext <<_ACEOF
6159
/* end confdefs.h. */
6166
const char *pt, *et;
6167
et = __extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ( ";," ) && ((size_t)(const void *)(( ";," )+ 1) - (size_t)(const void *)( ";," ) == 1) ? ((__a0 =((__const char *) ( ";," ))[0], __a0 == '\0') ? ((void) ( pt ),((void *)0) ) : ((__a1 = ((__const char *) ( ";," ))[1], __a1== '\0') ? (__extension__ (__builtin_constant_p ( __a0 ) && ( __a0 ) == '\0' ? (char *) __rawmemchr ( pt , __a0) : strchr( pt , __a0 ))) : ((__a2 = ((__const char *) ( ";," ))[2], __a2 == '\0') ? __strpbrk_c2 ( pt , __a0, __a1) :(((__const char *) ( ";," ))[3] == '\0' ? __strpbrk_c3 ( pt ,__a0, __a1, __a2): strpbrk ( pt , ";," ))))) : strpbrk ( pt , ";," )); }) ;
6173
rm -f conftest.$ac_objext conftest$ac_exeext
6174
if { (ac_try="$ac_link"
6176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177
*) ac_try_echo=$ac_try;;
6179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180
(eval "$ac_link") 2>conftest.er1
6182
grep -v '^ *+' conftest.er1 >conftest.err
6184
cat conftest.err >&5
6185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
(exit $ac_status); } && {
6187
test -z "$ac_c_werror_flag" ||
6188
test ! -s conftest.err
6189
} && test -s conftest$ac_exeext &&
6190
$as_test_x conftest$ac_exeext; then
6191
kde_cv_opt_noinline_match=yes
6193
echo "$as_me: failed program was:" >&5
6194
sed 's/^/| /' conftest.$ac_ext >&5
6196
kde_cv_opt_noinline_match=no
6200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6201
conftest$ac_exeext conftest.$ac_ext
6203
CFLAGS="$ac_cflags_save"
6207
{ echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5
6208
echo "${ECHO_T}$kde_cv_opt_noinline_match" >&6; }
6210
if test "x$kde_cv_opt_noinline_match" = "xno" ; then
6211
CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
6216
if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
6217
unsermake_enable_pch_TRUE=
6218
unsermake_enable_pch_FALSE='#'
6220
unsermake_enable_pch_TRUE='#'
6221
unsermake_enable_pch_FALSE=
6224
if test "$CXX" = "KCC"; then
6226
if test "$kde_use_pch" = "yes"; then
6228
{ echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
6229
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6; }
6230
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
6231
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6232
echo $ECHO_N "(cached) $ECHO_C" >&6
6237
ac_cpp='$CXXCPP $CPPFLAGS'
6238
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6239
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6242
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6245
save_CXXFLAGS="$CXXFLAGS"
6246
CXXFLAGS="$CXXFLAGS --pch"
6247
cat >conftest.$ac_ext <<_ACEOF
6250
cat confdefs.h >>conftest.$ac_ext
6251
cat >>conftest.$ac_ext <<_ACEOF
6252
/* end confdefs.h. */
6262
rm -f conftest.$ac_objext conftest$ac_exeext
6263
if { (ac_try="$ac_link"
6265
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266
*) ac_try_echo=$ac_try;;
6268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269
(eval "$ac_link") 2>conftest.er1
6271
grep -v '^ *+' conftest.er1 >conftest.err
6273
cat conftest.err >&5
6274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275
(exit $ac_status); } && {
6276
test -z "$ac_cxx_werror_flag" ||
6277
test ! -s conftest.err
6278
} && test -s conftest$ac_exeext &&
6279
$as_test_x conftest$ac_exeext; then
6280
eval "kde_cv_prog_cxx_$kde_cache=yes"
6282
echo "$as_me: failed program was:" >&5
6283
sed 's/^/| /' conftest.$ac_ext >&5
6288
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6289
conftest$ac_exeext conftest.$ac_ext
6290
CXXFLAGS="$save_CXXFLAGS"
6292
ac_cpp='$CPP $CPPFLAGS'
6293
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6300
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6301
{ echo "$as_me:$LINENO: result: yes" >&5
6302
echo "${ECHO_T}yes" >&6; }
6304
CXXFLAGS="$CXXFLAGS --pch"
6306
{ echo "$as_me:$LINENO: result: no" >&5
6307
echo "${ECHO_T}no" >&6; }
6314
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
6315
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6; }
6316
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
6317
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6318
echo $ECHO_N "(cached) $ECHO_C" >&6
6323
ac_cpp='$CXXCPP $CPPFLAGS'
6324
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6328
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6331
save_CXXFLAGS="$CXXFLAGS"
6332
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6333
cat >conftest.$ac_ext <<_ACEOF
6336
cat confdefs.h >>conftest.$ac_ext
6337
cat >>conftest.$ac_ext <<_ACEOF
6338
/* end confdefs.h. */
6348
rm -f conftest.$ac_objext conftest$ac_exeext
6349
if { (ac_try="$ac_link"
6351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352
*) ac_try_echo=$ac_try;;
6354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355
(eval "$ac_link") 2>conftest.er1
6357
grep -v '^ *+' conftest.er1 >conftest.err
6359
cat conftest.err >&5
6360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361
(exit $ac_status); } && {
6362
test -z "$ac_cxx_werror_flag" ||
6363
test ! -s conftest.err
6364
} && test -s conftest$ac_exeext &&
6365
$as_test_x conftest$ac_exeext; then
6366
eval "kde_cv_prog_cxx_$kde_cache=yes"
6368
echo "$as_me: failed program was:" >&5
6369
sed 's/^/| /' conftest.$ac_ext >&5
6374
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375
conftest$ac_exeext conftest.$ac_ext
6376
CXXFLAGS="$save_CXXFLAGS"
6378
ac_cpp='$CPP $CPPFLAGS'
6379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6386
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6387
{ echo "$as_me:$LINENO: result: yes" >&5
6388
echo "${ECHO_T}yes" >&6; }
6390
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6392
{ echo "$as_me:$LINENO: result: no" >&5
6393
echo "${ECHO_T}no" >&6; }
6399
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
6400
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6; }
6401
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
6402
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6403
echo $ECHO_N "(cached) $ECHO_C" >&6
6408
ac_cpp='$CXXCPP $CPPFLAGS'
6409
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6413
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6416
save_CXXFLAGS="$CXXFLAGS"
6417
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6418
cat >conftest.$ac_ext <<_ACEOF
6421
cat confdefs.h >>conftest.$ac_ext
6422
cat >>conftest.$ac_ext <<_ACEOF
6423
/* end confdefs.h. */
6433
rm -f conftest.$ac_objext conftest$ac_exeext
6434
if { (ac_try="$ac_link"
6436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437
*) ac_try_echo=$ac_try;;
6439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440
(eval "$ac_link") 2>conftest.er1
6442
grep -v '^ *+' conftest.er1 >conftest.err
6444
cat conftest.err >&5
6445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446
(exit $ac_status); } && {
6447
test -z "$ac_cxx_werror_flag" ||
6448
test ! -s conftest.err
6449
} && test -s conftest$ac_exeext &&
6450
$as_test_x conftest$ac_exeext; then
6451
eval "kde_cv_prog_cxx_$kde_cache=yes"
6453
echo "$as_me: failed program was:" >&5
6454
sed 's/^/| /' conftest.$ac_ext >&5
6459
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6460
conftest$ac_exeext conftest.$ac_ext
6461
CXXFLAGS="$save_CXXFLAGS"
6463
ac_cpp='$CPP $CPPFLAGS'
6464
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6471
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6472
{ echo "$as_me:$LINENO: result: yes" >&5
6473
echo "${ECHO_T}yes" >&6; }
6475
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6477
{ echo "$as_me:$LINENO: result: no" >&5
6478
echo "${ECHO_T}no" >&6; }
6484
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
6485
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6; }
6486
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6487
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6488
echo $ECHO_N "(cached) $ECHO_C" >&6
6493
ac_cpp='$CXXCPP $CPPFLAGS'
6494
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6495
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6496
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6498
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6501
save_CXXFLAGS="$CXXFLAGS"
6502
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6503
cat >conftest.$ac_ext <<_ACEOF
6506
cat confdefs.h >>conftest.$ac_ext
6507
cat >>conftest.$ac_ext <<_ACEOF
6508
/* end confdefs.h. */
6518
rm -f conftest.$ac_objext conftest$ac_exeext
6519
if { (ac_try="$ac_link"
6521
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522
*) ac_try_echo=$ac_try;;
6524
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525
(eval "$ac_link") 2>conftest.er1
6527
grep -v '^ *+' conftest.er1 >conftest.err
6529
cat conftest.err >&5
6530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531
(exit $ac_status); } && {
6532
test -z "$ac_cxx_werror_flag" ||
6533
test ! -s conftest.err
6534
} && test -s conftest$ac_exeext &&
6535
$as_test_x conftest$ac_exeext; then
6536
eval "kde_cv_prog_cxx_$kde_cache=yes"
6538
echo "$as_me: failed program was:" >&5
6539
sed 's/^/| /' conftest.$ac_ext >&5
6544
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6545
conftest$ac_exeext conftest.$ac_ext
6546
CXXFLAGS="$save_CXXFLAGS"
6548
ac_cpp='$CPP $CPPFLAGS'
6549
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6557
{ echo "$as_me:$LINENO: result: yes" >&5
6558
echo "${ECHO_T}yes" >&6; }
6560
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6562
{ echo "$as_me:$LINENO: result: no" >&5
6563
echo "${ECHO_T}no" >&6; }
6569
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
6570
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6; }
6571
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6572
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6573
echo $ECHO_N "(cached) $ECHO_C" >&6
6578
ac_cpp='$CXXCPP $CPPFLAGS'
6579
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6583
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6586
save_CXXFLAGS="$CXXFLAGS"
6587
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6588
cat >conftest.$ac_ext <<_ACEOF
6591
cat confdefs.h >>conftest.$ac_ext
6592
cat >>conftest.$ac_ext <<_ACEOF
6593
/* end confdefs.h. */
6603
rm -f conftest.$ac_objext conftest$ac_exeext
6604
if { (ac_try="$ac_link"
6606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607
*) ac_try_echo=$ac_try;;
6609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610
(eval "$ac_link") 2>conftest.er1
6612
grep -v '^ *+' conftest.er1 >conftest.err
6614
cat conftest.err >&5
6615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616
(exit $ac_status); } && {
6617
test -z "$ac_cxx_werror_flag" ||
6618
test ! -s conftest.err
6619
} && test -s conftest$ac_exeext &&
6620
$as_test_x conftest$ac_exeext; then
6621
eval "kde_cv_prog_cxx_$kde_cache=yes"
6623
echo "$as_me: failed program was:" >&5
6624
sed 's/^/| /' conftest.$ac_ext >&5
6629
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6630
conftest$ac_exeext conftest.$ac_ext
6631
CXXFLAGS="$save_CXXFLAGS"
6633
ac_cpp='$CPP $CPPFLAGS'
6634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6642
{ echo "$as_me:$LINENO: result: yes" >&5
6643
echo "${ECHO_T}yes" >&6; }
6645
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6647
{ echo "$as_me:$LINENO: result: no" >&5
6648
echo "${ECHO_T}no" >&6; }
6654
{ echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6655
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6; }
6656
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6657
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6658
echo $ECHO_N "(cached) $ECHO_C" >&6
6663
ac_cpp='$CXXCPP $CPPFLAGS'
6664
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6668
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6671
save_CXXFLAGS="$CXXFLAGS"
6672
CXXFLAGS="$CXXFLAGS --one_per"
6673
cat >conftest.$ac_ext <<_ACEOF
6676
cat confdefs.h >>conftest.$ac_ext
6677
cat >>conftest.$ac_ext <<_ACEOF
6678
/* end confdefs.h. */
6688
rm -f conftest.$ac_objext conftest$ac_exeext
6689
if { (ac_try="$ac_link"
6691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692
*) ac_try_echo=$ac_try;;
6694
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695
(eval "$ac_link") 2>conftest.er1
6697
grep -v '^ *+' conftest.er1 >conftest.err
6699
cat conftest.err >&5
6700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701
(exit $ac_status); } && {
6702
test -z "$ac_cxx_werror_flag" ||
6703
test ! -s conftest.err
6704
} && test -s conftest$ac_exeext &&
6705
$as_test_x conftest$ac_exeext; then
6706
eval "kde_cv_prog_cxx_$kde_cache=yes"
6708
echo "$as_me: failed program was:" >&5
6709
sed 's/^/| /' conftest.$ac_ext >&5
6714
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6715
conftest$ac_exeext conftest.$ac_ext
6716
CXXFLAGS="$save_CXXFLAGS"
6718
ac_cpp='$CPP $CPPFLAGS'
6719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6727
{ echo "$as_me:$LINENO: result: yes" >&5
6728
echo "${ECHO_T}yes" >&6; }
6730
CXXFLAGS="$CXXFLAGS --one_per"
6732
{ echo "$as_me:$LINENO: result: no" >&5
6733
echo "${ECHO_T}no" >&6; }
6744
*-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6745
*-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6746
*-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6748
if test "$GXX" = yes; then
6749
libstdcpp=`$CXX -print-file-name=libstdc++.so`
6750
if test ! -f $libstdcpp; then
6751
{ { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
6752
echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
6753
{ (exit 1); exit 1; }; }
6759
if test "x$kde_use_qt_emb" != "xyes"; then
6761
__forbid=" -fno-rtti -rpath "
6762
if test -n "$__val"; then
6768
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6769
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6770
*) # Careful to not add spaces, where there were none, because otherwise
6771
# libtool gets confused, if we change e.g. CXX
6772
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6780
__forbid=" -fno-rtti -rpath "
6781
if test -n "$__val"; then
6787
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6788
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6789
*) # Careful to not add spaces, where there were none, because otherwise
6790
# libtool gets confused, if we change e.g. CXX
6791
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6801
if test -n "$__val"; then
6807
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6808
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6809
*) # Careful to not add spaces, where there were none, because otherwise
6810
# libtool gets confused, if we change e.g. CXX
6811
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6820
if test -n "$__val"; then
6826
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6827
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6828
*) # Careful to not add spaces, where there were none, because otherwise
6829
# libtool gets confused, if we change e.g. CXX
6830
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6841
ac_cpp='$CXXCPP $CPPFLAGS'
6842
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6845
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6846
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6847
if test -z "$CXXCPP"; then
6848
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6849
echo $ECHO_N "(cached) $ECHO_C" >&6
6851
# Double quotes because CXXCPP needs to be expanded
6852
for CXXCPP in "$CXX -E" "/lib/cpp"
6855
for ac_cxx_preproc_warn_flag in '' yes
6857
# Use a header file that comes with gcc, so configuring glibc
6858
# with a fresh cross-compiler works.
6859
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6860
# <limits.h> exists even on freestanding compilers.
6861
# On the NeXT, cc -E runs the code through the compiler's parser,
6862
# not just through cpp. "Syntax error" is here to catch this case.
6863
cat >conftest.$ac_ext <<_ACEOF
6866
cat confdefs.h >>conftest.$ac_ext
6867
cat >>conftest.$ac_ext <<_ACEOF
6868
/* end confdefs.h. */
6870
# include <limits.h>
6872
# include <assert.h>
6876
if { (ac_try="$ac_cpp conftest.$ac_ext"
6878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879
*) ac_try_echo=$ac_try;;
6881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6884
grep -v '^ *+' conftest.er1 >conftest.err
6886
cat conftest.err >&5
6887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888
(exit $ac_status); } >/dev/null && {
6889
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6890
test ! -s conftest.err
6894
echo "$as_me: failed program was:" >&5
6895
sed 's/^/| /' conftest.$ac_ext >&5
6897
# Broken: fails on valid input.
6901
rm -f conftest.err conftest.$ac_ext
6903
# OK, works on sane cases. Now check whether nonexistent headers
6904
# can be detected and how.
6905
cat >conftest.$ac_ext <<_ACEOF
6908
cat confdefs.h >>conftest.$ac_ext
6909
cat >>conftest.$ac_ext <<_ACEOF
6910
/* end confdefs.h. */
6911
#include <ac_nonexistent.h>
6913
if { (ac_try="$ac_cpp conftest.$ac_ext"
6915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916
*) ac_try_echo=$ac_try;;
6918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6921
grep -v '^ *+' conftest.er1 >conftest.err
6923
cat conftest.err >&5
6924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925
(exit $ac_status); } >/dev/null && {
6926
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6927
test ! -s conftest.err
6929
# Broken: success on invalid input.
6932
echo "$as_me: failed program was:" >&5
6933
sed 's/^/| /' conftest.$ac_ext >&5
6935
# Passes both tests.
6940
rm -f conftest.err conftest.$ac_ext
6943
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6944
rm -f conftest.err conftest.$ac_ext
6945
if $ac_preproc_ok; then
6950
ac_cv_prog_CXXCPP=$CXXCPP
6953
CXXCPP=$ac_cv_prog_CXXCPP
6955
ac_cv_prog_CXXCPP=$CXXCPP
6957
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6958
echo "${ECHO_T}$CXXCPP" >&6; }
6960
for ac_cxx_preproc_warn_flag in '' yes
6962
# Use a header file that comes with gcc, so configuring glibc
6963
# with a fresh cross-compiler works.
6964
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6965
# <limits.h> exists even on freestanding compilers.
6966
# On the NeXT, cc -E runs the code through the compiler's parser,
6967
# not just through cpp. "Syntax error" is here to catch this case.
6968
cat >conftest.$ac_ext <<_ACEOF
6971
cat confdefs.h >>conftest.$ac_ext
6972
cat >>conftest.$ac_ext <<_ACEOF
6973
/* end confdefs.h. */
6975
# include <limits.h>
6977
# include <assert.h>
6981
if { (ac_try="$ac_cpp conftest.$ac_ext"
6983
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984
*) ac_try_echo=$ac_try;;
6986
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6989
grep -v '^ *+' conftest.er1 >conftest.err
6991
cat conftest.err >&5
6992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993
(exit $ac_status); } >/dev/null && {
6994
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6995
test ! -s conftest.err
6999
echo "$as_me: failed program was:" >&5
7000
sed 's/^/| /' conftest.$ac_ext >&5
7002
# Broken: fails on valid input.
7006
rm -f conftest.err conftest.$ac_ext
7008
# OK, works on sane cases. Now check whether nonexistent headers
7009
# can be detected and how.
7010
cat >conftest.$ac_ext <<_ACEOF
7013
cat confdefs.h >>conftest.$ac_ext
7014
cat >>conftest.$ac_ext <<_ACEOF
7015
/* end confdefs.h. */
7016
#include <ac_nonexistent.h>
7018
if { (ac_try="$ac_cpp conftest.$ac_ext"
7020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021
*) ac_try_echo=$ac_try;;
7023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7026
grep -v '^ *+' conftest.er1 >conftest.err
7028
cat conftest.err >&5
7029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030
(exit $ac_status); } >/dev/null && {
7031
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7032
test ! -s conftest.err
7034
# Broken: success on invalid input.
7037
echo "$as_me: failed program was:" >&5
7038
sed 's/^/| /' conftest.$ac_ext >&5
7040
# Passes both tests.
7045
rm -f conftest.err conftest.$ac_ext
7048
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7049
rm -f conftest.err conftest.$ac_ext
7050
if $ac_preproc_ok; then
7053
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7054
See \`config.log' for more details." >&5
7055
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7056
See \`config.log' for more details." >&2;}
7057
{ (exit 1); exit 1; }; }
7061
ac_cpp='$CPP $CPPFLAGS'
7062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
if test "$GCC" = yes; then
7071
{ echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
7072
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6; }
7073
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
7074
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7075
echo $ECHO_N "(cached) $ECHO_C" >&6
7080
ac_cpp='$CXXCPP $CPPFLAGS'
7081
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7085
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7088
save_CXXFLAGS="$CXXFLAGS"
7089
CXXFLAGS="$CXXFLAGS -O0"
7090
cat >conftest.$ac_ext <<_ACEOF
7093
cat confdefs.h >>conftest.$ac_ext
7094
cat >>conftest.$ac_ext <<_ACEOF
7095
/* end confdefs.h. */
7105
rm -f conftest.$ac_objext conftest$ac_exeext
7106
if { (ac_try="$ac_link"
7108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109
*) ac_try_echo=$ac_try;;
7111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112
(eval "$ac_link") 2>conftest.er1
7114
grep -v '^ *+' conftest.er1 >conftest.err
7116
cat conftest.err >&5
7117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118
(exit $ac_status); } && {
7119
test -z "$ac_cxx_werror_flag" ||
7120
test ! -s conftest.err
7121
} && test -s conftest$ac_exeext &&
7122
$as_test_x conftest$ac_exeext; then
7123
eval "kde_cv_prog_cxx_$kde_cache=yes"
7125
echo "$as_me: failed program was:" >&5
7126
sed 's/^/| /' conftest.$ac_ext >&5
7131
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7132
conftest$ac_exeext conftest.$ac_ext
7133
CXXFLAGS="$save_CXXFLAGS"
7135
ac_cpp='$CPP $CPPFLAGS'
7136
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7137
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7138
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7144
{ echo "$as_me:$LINENO: result: yes" >&5
7145
echo "${ECHO_T}yes" >&6; }
7149
{ echo "$as_me:$LINENO: result: no" >&5
7150
echo "${ECHO_T}no" >&6; }
7156
# Check whether --enable-coverage was given.
7157
if test "${enable_coverage+set}" = set; then
7158
enableval=$enable_coverage;
7159
if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
7160
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7161
ac_coverage_linker="-lgcc"
7162
elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
7163
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7164
ac_coverage_linker=""
7166
{ { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
7167
echo "$as_me: error: coverage with your compiler is not supported" >&2;}
7168
{ (exit 1); exit 1; }; }
7170
CFLAGS="$CFLAGS $ac_coverage_compiler"
7171
CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
7172
LDFLAGS="$LDFLAGS $ac_coverage_linker"
7182
# Check whether --enable-new_ldflags was given.
7183
if test "${enable_new_ldflags+set}" = set; then
7184
enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
7186
kde_use_new_ldflags=no
7190
LDFLAGS_AS_NEEDED=""
7191
LDFLAGS_NEW_DTAGS=""
7192
if test "x$kde_use_new_ldflags" = "xyes"; then
7193
LDFLAGS_NEW_DTAGS=""
7195
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
7196
echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
7197
kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
7198
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7199
echo $ECHO_N "(cached) $ECHO_C" >&6
7204
ac_cpp='$CXXCPP $CPPFLAGS'
7205
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7209
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7212
save_CXXFLAGS="$CXXFLAGS"
7213
CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
7214
cat >conftest.$ac_ext <<_ACEOF
7217
cat confdefs.h >>conftest.$ac_ext
7218
cat >>conftest.$ac_ext <<_ACEOF
7219
/* end confdefs.h. */
7229
rm -f conftest.$ac_objext conftest$ac_exeext
7230
if { (ac_try="$ac_link"
7232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233
*) ac_try_echo=$ac_try;;
7235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236
(eval "$ac_link") 2>conftest.er1
7238
grep -v '^ *+' conftest.er1 >conftest.err
7240
cat conftest.err >&5
7241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242
(exit $ac_status); } && {
7243
test -z "$ac_cxx_werror_flag" ||
7244
test ! -s conftest.err
7245
} && test -s conftest$ac_exeext &&
7246
$as_test_x conftest$ac_exeext; then
7247
eval "kde_cv_prog_cxx_$kde_cache=yes"
7249
echo "$as_me: failed program was:" >&5
7250
sed 's/^/| /' conftest.$ac_ext >&5
7255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7256
conftest$ac_exeext conftest.$ac_ext
7257
CXXFLAGS="$save_CXXFLAGS"
7259
ac_cpp='$CPP $CPPFLAGS'
7260
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7268
{ echo "$as_me:$LINENO: result: yes" >&5
7269
echo "${ECHO_T}yes" >&6; }
7271
LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
7273
{ echo "$as_me:$LINENO: result: no" >&5
7274
echo "${ECHO_T}no" >&6; }
7281
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
7282
echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6; }
7283
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
7284
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7285
echo $ECHO_N "(cached) $ECHO_C" >&6
7290
ac_cpp='$CXXCPP $CPPFLAGS'
7291
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7295
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7298
save_CXXFLAGS="$CXXFLAGS"
7299
CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
7300
cat >conftest.$ac_ext <<_ACEOF
7303
cat confdefs.h >>conftest.$ac_ext
7304
cat >>conftest.$ac_ext <<_ACEOF
7305
/* end confdefs.h. */
7315
rm -f conftest.$ac_objext conftest$ac_exeext
7316
if { (ac_try="$ac_link"
7318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319
*) ac_try_echo=$ac_try;;
7321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322
(eval "$ac_link") 2>conftest.er1
7324
grep -v '^ *+' conftest.er1 >conftest.err
7326
cat conftest.err >&5
7327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328
(exit $ac_status); } && {
7329
test -z "$ac_cxx_werror_flag" ||
7330
test ! -s conftest.err
7331
} && test -s conftest$ac_exeext &&
7332
$as_test_x conftest$ac_exeext; then
7333
eval "kde_cv_prog_cxx_$kde_cache=yes"
7335
echo "$as_me: failed program was:" >&5
7336
sed 's/^/| /' conftest.$ac_ext >&5
7341
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7342
conftest$ac_exeext conftest.$ac_ext
7343
CXXFLAGS="$save_CXXFLAGS"
7345
ac_cpp='$CPP $CPPFLAGS'
7346
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7347
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7348
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7354
{ echo "$as_me:$LINENO: result: yes" >&5
7355
echo "${ECHO_T}yes" >&6; }
7357
LDFLAGS_AS_NEEDED="-Wl,--as-needed"
7359
{ echo "$as_me:$LINENO: result: no" >&5
7360
echo "${ECHO_T}no" >&6; }
7370
# Check whether --enable-final was given.
7371
if test "${enable_final+set}" = set; then
7372
enableval=$enable_final; kde_use_final=$enableval
7378
if test "x$kde_use_final" = "xyes"; then
7379
KDE_USE_FINAL_TRUE=""
7380
KDE_USE_FINAL_FALSE="#"
7382
KDE_USE_FINAL_TRUE="#"
7383
KDE_USE_FINAL_FALSE=""
7389
# Check whether --enable-closure was given.
7390
if test "${enable_closure+set}" = set; then
7391
enableval=$enable_closure; kde_use_closure=$enableval
7398
if test "x$kde_use_closure" = "xyes"; then
7399
KDE_USE_CLOSURE_TRUE=""
7400
KDE_USE_CLOSURE_FALSE="#"
7401
# CXXFLAGS="$CXXFLAGS $REPO"
7403
KDE_USE_CLOSURE_TRUE="#"
7404
KDE_USE_CLOSURE_FALSE=""
7409
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
7410
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6; }
7411
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
7412
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7413
echo $ECHO_N "(cached) $ECHO_C" >&6
7418
ac_cpp='$CXXCPP $CPPFLAGS'
7419
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7423
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7426
save_CXXFLAGS="$CXXFLAGS"
7427
CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
7428
cat >conftest.$ac_ext <<_ACEOF
7431
cat confdefs.h >>conftest.$ac_ext
7432
cat >>conftest.$ac_ext <<_ACEOF
7433
/* end confdefs.h. */
7443
rm -f conftest.$ac_objext conftest$ac_exeext
7444
if { (ac_try="$ac_link"
7446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447
*) ac_try_echo=$ac_try;;
7449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450
(eval "$ac_link") 2>conftest.er1
7452
grep -v '^ *+' conftest.er1 >conftest.err
7454
cat conftest.err >&5
7455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456
(exit $ac_status); } && {
7457
test -z "$ac_cxx_werror_flag" ||
7458
test ! -s conftest.err
7459
} && test -s conftest$ac_exeext &&
7460
$as_test_x conftest$ac_exeext; then
7461
eval "kde_cv_prog_cxx_$kde_cache=yes"
7463
echo "$as_me: failed program was:" >&5
7464
sed 's/^/| /' conftest.$ac_ext >&5
7469
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7470
conftest$ac_exeext conftest.$ac_ext
7471
CXXFLAGS="$save_CXXFLAGS"
7473
ac_cpp='$CPP $CPPFLAGS'
7474
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7482
{ echo "$as_me:$LINENO: result: yes" >&5
7483
echo "${ECHO_T}yes" >&6; }
7486
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
7487
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6; }
7488
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
7489
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7490
echo $ECHO_N "(cached) $ECHO_C" >&6
7495
ac_cpp='$CXXCPP $CPPFLAGS'
7496
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7500
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7503
save_CXXFLAGS="$CXXFLAGS"
7504
CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
7505
cat >conftest.$ac_ext <<_ACEOF
7508
cat confdefs.h >>conftest.$ac_ext
7509
cat >>conftest.$ac_ext <<_ACEOF
7510
/* end confdefs.h. */
7520
rm -f conftest.$ac_objext conftest$ac_exeext
7521
if { (ac_try="$ac_link"
7523
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524
*) ac_try_echo=$ac_try;;
7526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527
(eval "$ac_link") 2>conftest.er1
7529
grep -v '^ *+' conftest.er1 >conftest.err
7531
cat conftest.err >&5
7532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533
(exit $ac_status); } && {
7534
test -z "$ac_cxx_werror_flag" ||
7535
test ! -s conftest.err
7536
} && test -s conftest$ac_exeext &&
7537
$as_test_x conftest$ac_exeext; then
7538
eval "kde_cv_prog_cxx_$kde_cache=yes"
7540
echo "$as_me: failed program was:" >&5
7541
sed 's/^/| /' conftest.$ac_ext >&5
7546
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7547
conftest$ac_exeext conftest.$ac_ext
7548
CXXFLAGS="$save_CXXFLAGS"
7550
ac_cpp='$CPP $CPPFLAGS'
7551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7559
{ echo "$as_me:$LINENO: result: yes" >&5
7560
echo "${ECHO_T}yes" >&6; }
7562
KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7564
{ echo "$as_me:$LINENO: result: no" >&5
7565
echo "${ECHO_T}no" >&6; }
7571
{ echo "$as_me:$LINENO: result: no" >&5
7572
echo "${ECHO_T}no" >&6; }
7585
# Check whether --enable-nmcheck was given.
7586
if test "${enable_nmcheck+set}" = set; then
7587
enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
7593
if test "$kde_use_nmcheck" = "yes"; then
7594
KDE_USE_NMCHECK_TRUE=""
7595
KDE_USE_NMCHECK_FALSE="#"
7597
KDE_USE_NMCHECK_TRUE="#"
7598
KDE_USE_NMCHECK_FALSE=""
7606
# Check whether --enable-shared was given.
7607
if test "${enable_shared+set}" = set; then
7608
enableval=$enable_shared; p=${PACKAGE-default}
7610
yes) enable_shared=yes ;;
7611
no) enable_shared=no ;;
7614
# Look at the argument we got. We use all the common list separators.
7615
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7616
for pkg in $enableval; do
7618
if test "X$pkg" = "X$p"; then
7630
# Check whether --enable-static was given.
7631
if test "${enable_static+set}" = set; then
7632
enableval=$enable_static; p=${PACKAGE-default}
7634
yes) enable_static=yes ;;
7635
no) enable_static=no ;;
7638
# Look at the argument we got. We use all the common list separators.
7639
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7640
for pkg in $enableval; do
7642
if test "X$pkg" = "X$p"; then
7657
# Check whether --enable-libsuffix was given.
7658
if test "${enable_libsuffix+set}" = set; then
7659
enableval=$enable_libsuffix; kdelibsuff=$enableval
7665
if test "$kdelibsuff" = "auto"; then
7667
cat > conftest.c << EOF
7673
kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
7674
s,.*/lib\([^\/]*\)/.*,\1,
7680
if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
7683
if test -z "$kdelibsuff"; then
7684
{ echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7685
echo "${ECHO_T}not using lib directory suffix" >&6; }
7687
cat >>confdefs.h <<\_ACEOF
7688
#define KDELIBSUFF ""
7692
if test "$libdir" = '${exec_prefix}/lib'; then
7693
libdir="$libdir${kdelibsuff}"
7697
cat >>confdefs.h <<_ACEOF
7698
#define KDELIBSUFF "${kdelibsuff}"
7701
{ echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7702
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6; }
7705
# Check whether --enable-fast-install was given.
7706
if test "${enable_fast_install+set}" = set; then
7707
enableval=$enable_fast_install; p=${PACKAGE-default}
7709
yes) enable_fast_install=yes ;;
7710
no) enable_fast_install=no ;;
7712
enable_fast_install=no
7713
# Look at the argument we got. We use all the common list separators.
7714
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7715
for pkg in $enableval; do
7717
if test "X$pkg" = "X$p"; then
7718
enable_fast_install=yes
7725
enable_fast_install=yes
7729
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7730
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7731
if test "${lt_cv_path_SED+set}" = set; then
7732
echo $ECHO_N "(cached) $ECHO_C" >&6
7734
# Loop through the user's path and test for sed and gsed.
7735
# Then use that list of sed's as ones to test for truncation.
7736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740
test -z "$as_dir" && as_dir=.
7741
for lt_ac_prog in sed gsed; do
7742
for ac_exec_ext in '' $ac_executable_extensions; do
7743
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7744
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7751
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7752
# along with /bin/sed that truncates output.
7753
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7754
test ! -f $lt_ac_sed && continue
7755
cat /dev/null > conftest.in
7757
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7758
# Check for GNU sed and select it if it is found.
7759
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7760
lt_cv_path_SED=$lt_ac_sed
7764
cat conftest.in conftest.in >conftest.tmp
7765
mv conftest.tmp conftest.in
7766
cp conftest.in conftest.nl
7768
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7769
cmp -s conftest.out conftest.nl || break
7770
# 10000 chars as input seems more than enough
7771
test $lt_ac_count -gt 10 && break
7772
lt_ac_count=`expr $lt_ac_count + 1`
7773
if test $lt_ac_count -gt $lt_ac_max; then
7774
lt_ac_max=$lt_ac_count
7775
lt_cv_path_SED=$lt_ac_sed
7783
{ echo "$as_me:$LINENO: result: $SED" >&5
7784
echo "${ECHO_T}$SED" >&6; }
7786
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7787
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7788
if test "${ac_cv_path_GREP+set}" = set; then
7789
echo $ECHO_N "(cached) $ECHO_C" >&6
7791
# Extract the first word of "grep ggrep" to use in msg output
7792
if test -z "$GREP"; then
7793
set dummy grep ggrep; ac_prog_name=$2
7794
if test "${ac_cv_path_GREP+set}" = set; then
7795
echo $ECHO_N "(cached) $ECHO_C" >&6
7797
ac_path_GREP_found=false
7798
# Loop through the user's path and test for each of PROGNAME-LIST
7799
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7803
test -z "$as_dir" && as_dir=.
7804
for ac_prog in grep ggrep; do
7805
for ac_exec_ext in '' $ac_executable_extensions; do
7806
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7807
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7808
# Check for GNU ac_path_GREP and select it if it is found.
7809
# Check for GNU $ac_path_GREP
7810
case `"$ac_path_GREP" --version 2>&1` in
7812
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7815
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7818
cat "conftest.in" "conftest.in" >"conftest.tmp"
7819
mv "conftest.tmp" "conftest.in"
7820
cp "conftest.in" "conftest.nl"
7821
echo 'GREP' >> "conftest.nl"
7822
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7823
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7824
ac_count=`expr $ac_count + 1`
7825
if test $ac_count -gt ${ac_path_GREP_max-0}; then
7826
# Best one so far, save it but keep looking for a better one
7827
ac_cv_path_GREP="$ac_path_GREP"
7828
ac_path_GREP_max=$ac_count
7830
# 10*(2^10) chars as input seems more than enough
7831
test $ac_count -gt 10 && break
7833
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7837
$ac_path_GREP_found && break 3
7847
GREP="$ac_cv_path_GREP"
7848
if test -z "$GREP"; then
7849
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7850
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7851
{ (exit 1); exit 1; }; }
7855
ac_cv_path_GREP=$GREP
7860
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7861
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7862
GREP="$ac_cv_path_GREP"
7865
{ echo "$as_me:$LINENO: checking for egrep" >&5
7866
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7867
if test "${ac_cv_path_EGREP+set}" = set; then
7868
echo $ECHO_N "(cached) $ECHO_C" >&6
7870
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7871
then ac_cv_path_EGREP="$GREP -E"
7873
# Extract the first word of "egrep" to use in msg output
7874
if test -z "$EGREP"; then
7875
set dummy egrep; ac_prog_name=$2
7876
if test "${ac_cv_path_EGREP+set}" = set; then
7877
echo $ECHO_N "(cached) $ECHO_C" >&6
7879
ac_path_EGREP_found=false
7880
# Loop through the user's path and test for each of PROGNAME-LIST
7881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7885
test -z "$as_dir" && as_dir=.
7886
for ac_prog in egrep; do
7887
for ac_exec_ext in '' $ac_executable_extensions; do
7888
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7889
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7890
# Check for GNU ac_path_EGREP and select it if it is found.
7891
# Check for GNU $ac_path_EGREP
7892
case `"$ac_path_EGREP" --version 2>&1` in
7894
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7897
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7900
cat "conftest.in" "conftest.in" >"conftest.tmp"
7901
mv "conftest.tmp" "conftest.in"
7902
cp "conftest.in" "conftest.nl"
7903
echo 'EGREP' >> "conftest.nl"
7904
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7905
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7906
ac_count=`expr $ac_count + 1`
7907
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7908
# Best one so far, save it but keep looking for a better one
7909
ac_cv_path_EGREP="$ac_path_EGREP"
7910
ac_path_EGREP_max=$ac_count
7912
# 10*(2^10) chars as input seems more than enough
7913
test $ac_count -gt 10 && break
7915
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7919
$ac_path_EGREP_found && break 3
7929
EGREP="$ac_cv_path_EGREP"
7930
if test -z "$EGREP"; then
7931
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7932
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7933
{ (exit 1); exit 1; }; }
7937
ac_cv_path_EGREP=$EGREP
7943
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7944
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7945
EGREP="$ac_cv_path_EGREP"
7949
# Check whether --with-gnu-ld was given.
7950
if test "${with_gnu_ld+set}" = set; then
7951
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7957
if test "$GCC" = yes; then
7958
# Check if gcc -print-prog-name=ld gives a path.
7959
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7960
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7963
# gcc leaves a trailing carriage return which upsets mingw
7964
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7966
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7969
# Accept absolute paths.
7971
re_direlt='/[^/][^/]*/\.\./'
7972
# Canonicalize the pathname of ld
7973
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7974
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7975
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7977
test -z "$LD" && LD="$ac_prog"
7980
# If it fails, then pretend we aren't using GCC.
7984
# If it is relative, then search for the first ld in PATH.
7988
elif test "$with_gnu_ld" = yes; then
7989
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
7990
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7992
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7993
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7995
if test "${lt_cv_path_LD+set}" = set; then
7996
echo $ECHO_N "(cached) $ECHO_C" >&6
7998
if test -z "$LD"; then
7999
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8000
for ac_dir in $PATH; do
8002
test -z "$ac_dir" && ac_dir=.
8003
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8004
lt_cv_path_LD="$ac_dir/$ac_prog"
8005
# Check to see if the program is GNU ld. I'd rather use --version,
8006
# but apparently some variants of GNU ld only accept -v.
8007
# Break only if it was the GNU/non-GNU ld that we prefer.
8008
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8009
*GNU* | *'with BFD'*)
8010
test "$with_gnu_ld" != no && break
8013
test "$with_gnu_ld" != yes && break
8020
lt_cv_path_LD="$LD" # Let the user override the test with a path.
8025
if test -n "$LD"; then
8026
{ echo "$as_me:$LINENO: result: $LD" >&5
8027
echo "${ECHO_T}$LD" >&6; }
8029
{ echo "$as_me:$LINENO: result: no" >&5
8030
echo "${ECHO_T}no" >&6; }
8032
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8033
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8034
{ (exit 1); exit 1; }; }
8035
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8036
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8037
if test "${lt_cv_prog_gnu_ld+set}" = set; then
8038
echo $ECHO_N "(cached) $ECHO_C" >&6
8040
# I'd rather use --version here, but apparently some GNU lds only accept -v.
8041
case `$LD -v 2>&1 </dev/null` in
8042
*GNU* | *'with BFD'*)
8043
lt_cv_prog_gnu_ld=yes
8046
lt_cv_prog_gnu_ld=no
8050
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8051
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
8052
with_gnu_ld=$lt_cv_prog_gnu_ld
8055
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8056
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
8057
if test "${lt_cv_ld_reload_flag+set}" = set; then
8058
echo $ECHO_N "(cached) $ECHO_C" >&6
8060
lt_cv_ld_reload_flag='-r'
8062
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8063
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
8064
reload_flag=$lt_cv_ld_reload_flag
8065
case $reload_flag in
8067
*) reload_flag=" $reload_flag" ;;
8069
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8072
if test "$GCC" = yes; then
8073
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8075
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8080
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8081
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
8082
if test "${lt_cv_path_NM+set}" = set; then
8083
echo $ECHO_N "(cached) $ECHO_C" >&6
8085
if test -n "$NM"; then
8086
# Let the user override the test.
8089
lt_nm_to_check="${ac_tool_prefix}nm"
8090
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8091
lt_nm_to_check="$lt_nm_to_check nm"
8093
for lt_tmp_nm in $lt_nm_to_check; do
8094
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8095
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8097
test -z "$ac_dir" && ac_dir=.
8098
tmp_nm="$ac_dir/$lt_tmp_nm"
8099
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8100
# Check to see if the nm accepts a BSD-compat flag.
8101
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8102
# nm: unknown option "B" ignored
8103
# Tru64's nm complains that /dev/null is an invalid object file
8104
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8105
*/dev/null* | *'Invalid file or object type'*)
8106
lt_cv_path_NM="$tmp_nm -B"
8110
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8112
lt_cv_path_NM="$tmp_nm -p"
8116
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8117
continue # so that we can try to find one that supports BSD flags
8126
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8129
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8130
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
8133
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
8134
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8136
if test "$LN_S" = "ln -s"; then
8137
{ echo "$as_me:$LINENO: result: yes" >&5
8138
echo "${ECHO_T}yes" >&6; }
8140
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8141
echo "${ECHO_T}no, using $LN_S" >&6; }
8144
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8145
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
8146
if test "${lt_cv_deplibs_check_method+set}" = set; then
8147
echo $ECHO_N "(cached) $ECHO_C" >&6
8149
lt_cv_file_magic_cmd='$MAGIC_CMD'
8150
lt_cv_file_magic_test_file=
8151
lt_cv_deplibs_check_method='unknown'
8152
# Need to set the preceding variable on all platforms that support
8153
# interlibrary dependencies.
8154
# 'none' -- dependencies not supported.
8155
# `unknown' -- same as none, but documents that we really don't know.
8156
# 'pass_all' -- all dependencies passed with no checks.
8157
# 'test_compile' -- check by making test program.
8158
# 'file_magic [[regex]]' -- check by looking for files in library path
8159
# which responds to the $file_magic_cmd with a given extended regex.
8160
# If you have `file' or equivalent on your system and you're not sure
8161
# whether `pass_all' will *always* work, you probably want this one.
8165
lt_cv_deplibs_check_method=pass_all
8169
lt_cv_deplibs_check_method=pass_all
8173
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8174
lt_cv_file_magic_cmd='/usr/bin/file -L'
8175
lt_cv_file_magic_test_file=/shlib/libc.so
8179
# func_win32_libid is a shell function defined in ltmain.sh
8180
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8181
lt_cv_file_magic_cmd='func_win32_libid'
8185
# Base MSYS/MinGW do not provide the 'file' command needed by
8186
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
8187
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8188
lt_cv_file_magic_cmd='$OBJDUMP -f'
8191
darwin* | rhapsody*)
8192
lt_cv_deplibs_check_method=pass_all
8195
freebsd* | dragonfly*)
8196
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8199
# Not sure whether the presence of OpenBSD here was a mistake.
8200
# Let's accept both of them until this is cleared up.
8201
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8202
lt_cv_file_magic_cmd=/usr/bin/file
8203
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8207
lt_cv_deplibs_check_method=pass_all
8212
lt_cv_deplibs_check_method=pass_all
8215
hpux10.20* | hpux11*)
8216
lt_cv_file_magic_cmd=/usr/bin/file
8219
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8220
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8223
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]'
8224
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8227
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8228
lt_cv_file_magic_test_file=/usr/lib/libc.sl
8234
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8235
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8238
irix5* | irix6* | nonstopux*)
8240
*-32|*"-32 ") libmagic=32-bit;;
8241
*-n32|*"-n32 ") libmagic=N32;;
8242
*-64|*"-64 ") libmagic=64-bit;;
8243
*) libmagic=never-match;;
8245
lt_cv_deplibs_check_method=pass_all
8248
# This must be Linux ELF.
8249
linux* | k*bsd*-gnu)
8250
lt_cv_deplibs_check_method=pass_all
8253
netbsd* | netbsdelf*-gnu)
8254
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8255
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8257
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8262
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8263
lt_cv_file_magic_cmd=/usr/bin/file
8264
lt_cv_file_magic_test_file=/usr/lib/libnls.so
8268
lt_cv_deplibs_check_method=unknown
8272
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8273
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8275
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8279
osf3* | osf4* | osf5*)
8280
lt_cv_deplibs_check_method=pass_all
8284
lt_cv_deplibs_check_method=pass_all
8288
case $host_vendor in
8290
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]'
8291
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8294
lt_cv_deplibs_check_method=pass_all
8297
lt_cv_file_magic_cmd='/bin/file'
8298
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8301
lt_cv_file_magic_cmd='/bin/file'
8302
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8303
lt_cv_file_magic_test_file=/lib/libc.so
8306
lt_cv_deplibs_check_method=pass_all
8309
lt_cv_deplibs_check_method=pass_all
8314
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8315
lt_cv_deplibs_check_method=pass_all
8320
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8321
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8322
file_magic_cmd=$lt_cv_file_magic_cmd
8323
deplibs_check_method=$lt_cv_deplibs_check_method
8324
test -z "$deplibs_check_method" && deplibs_check_method=unknown
8327
# If no C compiler was specified, use CC.
8330
# If no C compiler flags were specified, use CFLAGS.
8331
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8333
# Allow CC to be a program name with arguments.
8336
# Check whether --enable-libtool-lock was given.
8337
if test "${enable_libtool_lock+set}" = set; then
8338
enableval=$enable_libtool_lock;
8341
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8343
# Some flags need to be propagated to the compiler or linker for good
8347
# Find out which ABI we are using.
8348
echo 'int i;' > conftest.$ac_ext
8349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8350
(eval $ac_compile) 2>&5
8352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353
(exit $ac_status); }; then
8354
case `/usr/bin/file conftest.$ac_objext` in
8366
# Find out which ABI we are using.
8367
echo '#line 8367 "configure"' > conftest.$ac_ext
8368
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8369
(eval $ac_compile) 2>&5
8371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372
(exit $ac_status); }; then
8373
if test "$lt_cv_prog_gnu_ld" = yes; then
8374
case `/usr/bin/file conftest.$ac_objext` in
8376
LD="${LD-ld} -melf32bsmip"
8379
LD="${LD-ld} -melf32bmipn32"
8382
LD="${LD-ld} -melf64bmip"
8386
case `/usr/bin/file conftest.$ac_objext` in
8402
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8403
# Find out which ABI we are using.
8404
echo 'int i;' > conftest.$ac_ext
8405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406
(eval $ac_compile) 2>&5
8408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409
(exit $ac_status); }; then
8410
case `/usr/bin/file conftest.o` in
8414
LD="${LD-ld} -m elf_i386"
8416
ppc64-*linux*|powerpc64-*linux*)
8417
LD="${LD-ld} -m elf32ppclinux"
8420
LD="${LD-ld} -m elf_s390"
8423
LD="${LD-ld} -m elf32_sparc"
8430
LD="${LD-ld} -m elf_x86_64"
8432
ppc*-*linux*|powerpc*-*linux*)
8433
LD="${LD-ld} -m elf64ppc"
8436
LD="${LD-ld} -m elf64_s390"
8439
LD="${LD-ld} -m elf64_sparc"
8449
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8450
SAVE_CFLAGS="$CFLAGS"
8451
CFLAGS="$CFLAGS -belf"
8452
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8453
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8454
if test "${lt_cv_cc_needs_belf+set}" = set; then
8455
echo $ECHO_N "(cached) $ECHO_C" >&6
8458
ac_cpp='$CPP $CPPFLAGS'
8459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8463
cat >conftest.$ac_ext <<_ACEOF
8466
cat confdefs.h >>conftest.$ac_ext
8467
cat >>conftest.$ac_ext <<_ACEOF
8468
/* end confdefs.h. */
8478
rm -f conftest.$ac_objext conftest$ac_exeext
8479
if { (ac_try="$ac_link"
8481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482
*) ac_try_echo=$ac_try;;
8484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485
(eval "$ac_link") 2>conftest.er1
8487
grep -v '^ *+' conftest.er1 >conftest.err
8489
cat conftest.err >&5
8490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491
(exit $ac_status); } && {
8492
test -z "$ac_c_werror_flag" ||
8493
test ! -s conftest.err
8494
} && test -s conftest$ac_exeext &&
8495
$as_test_x conftest$ac_exeext; then
8496
lt_cv_cc_needs_belf=yes
8498
echo "$as_me: failed program was:" >&5
8499
sed 's/^/| /' conftest.$ac_ext >&5
8501
lt_cv_cc_needs_belf=no
8504
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8505
conftest$ac_exeext conftest.$ac_ext
8507
ac_cpp='$CPP $CPPFLAGS'
8508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8513
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8514
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8515
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8516
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8517
CFLAGS="$SAVE_CFLAGS"
8521
# Find out which ABI we are using.
8522
echo 'int i;' > conftest.$ac_ext
8523
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524
(eval $ac_compile) 2>&5
8526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527
(exit $ac_status); }; then
8528
case `/usr/bin/file conftest.o` in
8530
case $lt_cv_prog_gnu_ld in
8531
yes*) LD="${LD-ld} -m elf64_sparc" ;;
8532
*) LD="${LD-ld} -64" ;;
8543
need_locks="$enable_libtool_lock"
8547
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8548
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8549
if test "${ac_cv_header_stdc+set}" = set; then
8550
echo $ECHO_N "(cached) $ECHO_C" >&6
8552
cat >conftest.$ac_ext <<_ACEOF
8555
cat confdefs.h >>conftest.$ac_ext
8556
cat >>conftest.$ac_ext <<_ACEOF
8557
/* end confdefs.h. */
8571
rm -f conftest.$ac_objext
8572
if { (ac_try="$ac_compile"
8574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575
*) ac_try_echo=$ac_try;;
8577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578
(eval "$ac_compile") 2>conftest.er1
8580
grep -v '^ *+' conftest.er1 >conftest.err
8582
cat conftest.err >&5
8583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584
(exit $ac_status); } && {
8585
test -z "$ac_c_werror_flag" ||
8586
test ! -s conftest.err
8587
} && test -s conftest.$ac_objext; then
8588
ac_cv_header_stdc=yes
8590
echo "$as_me: failed program was:" >&5
8591
sed 's/^/| /' conftest.$ac_ext >&5
8593
ac_cv_header_stdc=no
8596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598
if test $ac_cv_header_stdc = yes; then
8599
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8600
cat >conftest.$ac_ext <<_ACEOF
8603
cat confdefs.h >>conftest.$ac_ext
8604
cat >>conftest.$ac_ext <<_ACEOF
8605
/* end confdefs.h. */
8609
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8610
$EGREP "memchr" >/dev/null 2>&1; then
8613
ac_cv_header_stdc=no
8619
if test $ac_cv_header_stdc = yes; then
8620
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8621
cat >conftest.$ac_ext <<_ACEOF
8624
cat confdefs.h >>conftest.$ac_ext
8625
cat >>conftest.$ac_ext <<_ACEOF
8626
/* end confdefs.h. */
8630
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8631
$EGREP "free" >/dev/null 2>&1; then
8634
ac_cv_header_stdc=no
8640
if test $ac_cv_header_stdc = yes; then
8641
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8642
if test "$cross_compiling" = yes; then
8645
cat >conftest.$ac_ext <<_ACEOF
8648
cat confdefs.h >>conftest.$ac_ext
8649
cat >>conftest.$ac_ext <<_ACEOF
8650
/* end confdefs.h. */
8653
#if ((' ' & 0x0FF) == 0x020)
8654
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8655
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8657
# define ISLOWER(c) \
8658
(('a' <= (c) && (c) <= 'i') \
8659
|| ('j' <= (c) && (c) <= 'r') \
8660
|| ('s' <= (c) && (c) <= 'z'))
8661
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8664
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8669
for (i = 0; i < 256; i++)
8670
if (XOR (islower (i), ISLOWER (i))
8671
|| toupper (i) != TOUPPER (i))
8676
rm -f conftest$ac_exeext
8677
if { (ac_try="$ac_link"
8679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680
*) ac_try_echo=$ac_try;;
8682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683
(eval "$ac_link") 2>&5
8685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8687
{ (case "(($ac_try" in
8688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689
*) ac_try_echo=$ac_try;;
8691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692
(eval "$ac_try") 2>&5
8694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695
(exit $ac_status); }; }; then
8698
echo "$as_me: program exited with status $ac_status" >&5
8699
echo "$as_me: failed program was:" >&5
8700
sed 's/^/| /' conftest.$ac_ext >&5
8703
ac_cv_header_stdc=no
8705
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8711
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8712
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8713
if test $ac_cv_header_stdc = yes; then
8715
cat >>confdefs.h <<\_ACEOF
8716
#define STDC_HEADERS 1
8721
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8731
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8732
inttypes.h stdint.h unistd.h
8734
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8736
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8737
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8738
echo $ECHO_N "(cached) $ECHO_C" >&6
8740
cat >conftest.$ac_ext <<_ACEOF
8743
cat confdefs.h >>conftest.$ac_ext
8744
cat >>conftest.$ac_ext <<_ACEOF
8745
/* end confdefs.h. */
8746
$ac_includes_default
8748
#include <$ac_header>
8750
rm -f conftest.$ac_objext
8751
if { (ac_try="$ac_compile"
8753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754
*) ac_try_echo=$ac_try;;
8756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757
(eval "$ac_compile") 2>conftest.er1
8759
grep -v '^ *+' conftest.er1 >conftest.err
8761
cat conftest.err >&5
8762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763
(exit $ac_status); } && {
8764
test -z "$ac_c_werror_flag" ||
8765
test ! -s conftest.err
8766
} && test -s conftest.$ac_objext; then
8767
eval "$as_ac_Header=yes"
8769
echo "$as_me: failed program was:" >&5
8770
sed 's/^/| /' conftest.$ac_ext >&5
8772
eval "$as_ac_Header=no"
8775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777
ac_res=`eval echo '${'$as_ac_Header'}'`
8778
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8779
echo "${ECHO_T}$ac_res" >&6; }
8780
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8781
cat >>confdefs.h <<_ACEOF
8782
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8791
for ac_header in dlfcn.h
8793
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8794
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8795
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8796
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8797
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8798
echo $ECHO_N "(cached) $ECHO_C" >&6
8800
ac_res=`eval echo '${'$as_ac_Header'}'`
8801
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8802
echo "${ECHO_T}$ac_res" >&6; }
8804
# Is the header compilable?
8805
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8806
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8807
cat >conftest.$ac_ext <<_ACEOF
8810
cat confdefs.h >>conftest.$ac_ext
8811
cat >>conftest.$ac_ext <<_ACEOF
8812
/* end confdefs.h. */
8813
$ac_includes_default
8814
#include <$ac_header>
8816
rm -f conftest.$ac_objext
8817
if { (ac_try="$ac_compile"
8819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820
*) ac_try_echo=$ac_try;;
8822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823
(eval "$ac_compile") 2>conftest.er1
8825
grep -v '^ *+' conftest.er1 >conftest.err
8827
cat conftest.err >&5
8828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829
(exit $ac_status); } && {
8830
test -z "$ac_c_werror_flag" ||
8831
test ! -s conftest.err
8832
} && test -s conftest.$ac_objext; then
8833
ac_header_compiler=yes
8835
echo "$as_me: failed program was:" >&5
8836
sed 's/^/| /' conftest.$ac_ext >&5
8838
ac_header_compiler=no
8841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8843
echo "${ECHO_T}$ac_header_compiler" >&6; }
8845
# Is the header present?
8846
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8847
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8848
cat >conftest.$ac_ext <<_ACEOF
8851
cat confdefs.h >>conftest.$ac_ext
8852
cat >>conftest.$ac_ext <<_ACEOF
8853
/* end confdefs.h. */
8854
#include <$ac_header>
8856
if { (ac_try="$ac_cpp conftest.$ac_ext"
8858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859
*) ac_try_echo=$ac_try;;
8861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8864
grep -v '^ *+' conftest.er1 >conftest.err
8866
cat conftest.err >&5
8867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868
(exit $ac_status); } >/dev/null && {
8869
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8870
test ! -s conftest.err
8872
ac_header_preproc=yes
8874
echo "$as_me: failed program was:" >&5
8875
sed 's/^/| /' conftest.$ac_ext >&5
8877
ac_header_preproc=no
8880
rm -f conftest.err conftest.$ac_ext
8881
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8882
echo "${ECHO_T}$ac_header_preproc" >&6; }
8884
# So? What about this header?
8885
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8887
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8888
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8889
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8890
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8891
ac_header_preproc=yes
8894
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8895
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8896
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8897
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8898
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8899
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8900
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8901
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8902
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8903
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8904
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8905
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8909
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8910
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8911
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8912
echo $ECHO_N "(cached) $ECHO_C" >&6
8914
eval "$as_ac_Header=\$ac_header_preproc"
8916
ac_res=`eval echo '${'$as_ac_Header'}'`
8917
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8918
echo "${ECHO_T}$ac_res" >&6; }
8921
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8922
cat >>confdefs.h <<_ACEOF
8923
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8932
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8933
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8934
(test "X$CXX" != "Xg++"))) ; then
8936
ac_cpp='$CXXCPP $CPPFLAGS'
8937
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8940
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8941
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8942
if test -z "$CXXCPP"; then
8943
if test "${ac_cv_prog_CXXCPP+set}" = set; then
8944
echo $ECHO_N "(cached) $ECHO_C" >&6
8946
# Double quotes because CXXCPP needs to be expanded
8947
for CXXCPP in "$CXX -E" "/lib/cpp"
8950
for ac_cxx_preproc_warn_flag in '' yes
8952
# Use a header file that comes with gcc, so configuring glibc
8953
# with a fresh cross-compiler works.
8954
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8955
# <limits.h> exists even on freestanding compilers.
8956
# On the NeXT, cc -E runs the code through the compiler's parser,
8957
# not just through cpp. "Syntax error" is here to catch this case.
8958
cat >conftest.$ac_ext <<_ACEOF
8961
cat confdefs.h >>conftest.$ac_ext
8962
cat >>conftest.$ac_ext <<_ACEOF
8963
/* end confdefs.h. */
8965
# include <limits.h>
8967
# include <assert.h>
8971
if { (ac_try="$ac_cpp conftest.$ac_ext"
8973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974
*) ac_try_echo=$ac_try;;
8976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8979
grep -v '^ *+' conftest.er1 >conftest.err
8981
cat conftest.err >&5
8982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983
(exit $ac_status); } >/dev/null && {
8984
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8985
test ! -s conftest.err
8989
echo "$as_me: failed program was:" >&5
8990
sed 's/^/| /' conftest.$ac_ext >&5
8992
# Broken: fails on valid input.
8996
rm -f conftest.err conftest.$ac_ext
8998
# OK, works on sane cases. Now check whether nonexistent headers
8999
# can be detected and how.
9000
cat >conftest.$ac_ext <<_ACEOF
9003
cat confdefs.h >>conftest.$ac_ext
9004
cat >>conftest.$ac_ext <<_ACEOF
9005
/* end confdefs.h. */
9006
#include <ac_nonexistent.h>
9008
if { (ac_try="$ac_cpp conftest.$ac_ext"
9010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011
*) ac_try_echo=$ac_try;;
9013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9016
grep -v '^ *+' conftest.er1 >conftest.err
9018
cat conftest.err >&5
9019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020
(exit $ac_status); } >/dev/null && {
9021
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9022
test ! -s conftest.err
9024
# Broken: success on invalid input.
9027
echo "$as_me: failed program was:" >&5
9028
sed 's/^/| /' conftest.$ac_ext >&5
9030
# Passes both tests.
9035
rm -f conftest.err conftest.$ac_ext
9038
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9039
rm -f conftest.err conftest.$ac_ext
9040
if $ac_preproc_ok; then
9045
ac_cv_prog_CXXCPP=$CXXCPP
9048
CXXCPP=$ac_cv_prog_CXXCPP
9050
ac_cv_prog_CXXCPP=$CXXCPP
9052
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
9053
echo "${ECHO_T}$CXXCPP" >&6; }
9055
for ac_cxx_preproc_warn_flag in '' yes
9057
# Use a header file that comes with gcc, so configuring glibc
9058
# with a fresh cross-compiler works.
9059
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9060
# <limits.h> exists even on freestanding compilers.
9061
# On the NeXT, cc -E runs the code through the compiler's parser,
9062
# not just through cpp. "Syntax error" is here to catch this case.
9063
cat >conftest.$ac_ext <<_ACEOF
9066
cat confdefs.h >>conftest.$ac_ext
9067
cat >>conftest.$ac_ext <<_ACEOF
9068
/* end confdefs.h. */
9070
# include <limits.h>
9072
# include <assert.h>
9076
if { (ac_try="$ac_cpp conftest.$ac_ext"
9078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079
*) ac_try_echo=$ac_try;;
9081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9084
grep -v '^ *+' conftest.er1 >conftest.err
9086
cat conftest.err >&5
9087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088
(exit $ac_status); } >/dev/null && {
9089
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9090
test ! -s conftest.err
9094
echo "$as_me: failed program was:" >&5
9095
sed 's/^/| /' conftest.$ac_ext >&5
9097
# Broken: fails on valid input.
9101
rm -f conftest.err conftest.$ac_ext
9103
# OK, works on sane cases. Now check whether nonexistent headers
9104
# can be detected and how.
9105
cat >conftest.$ac_ext <<_ACEOF
9108
cat confdefs.h >>conftest.$ac_ext
9109
cat >>conftest.$ac_ext <<_ACEOF
9110
/* end confdefs.h. */
9111
#include <ac_nonexistent.h>
9113
if { (ac_try="$ac_cpp conftest.$ac_ext"
9115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116
*) ac_try_echo=$ac_try;;
9118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9121
grep -v '^ *+' conftest.er1 >conftest.err
9123
cat conftest.err >&5
9124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125
(exit $ac_status); } >/dev/null && {
9126
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9127
test ! -s conftest.err
9129
# Broken: success on invalid input.
9132
echo "$as_me: failed program was:" >&5
9133
sed 's/^/| /' conftest.$ac_ext >&5
9135
# Passes both tests.
9140
rm -f conftest.err conftest.$ac_ext
9143
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9144
rm -f conftest.err conftest.$ac_ext
9145
if $ac_preproc_ok; then
9148
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9149
See \`config.log' for more details." >&5
9150
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9151
See \`config.log' for more details." >&2;}
9152
{ (exit 1); exit 1; }; }
9156
ac_cpp='$CXXCPP $CPPFLAGS'
9157
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9158
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9159
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9164
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9165
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9166
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9167
if test -n "$ac_tool_prefix"; then
9168
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
9170
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9171
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9172
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9174
if test "${ac_cv_prog_F77+set}" = set; then
9175
echo $ECHO_N "(cached) $ECHO_C" >&6
9177
if test -n "$F77"; then
9178
ac_cv_prog_F77="$F77" # Let the user override the test.
9180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184
test -z "$as_dir" && as_dir=.
9185
for ac_exec_ext in '' $ac_executable_extensions; do
9186
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9187
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9188
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9198
if test -n "$F77"; then
9199
{ echo "$as_me:$LINENO: result: $F77" >&5
9200
echo "${ECHO_T}$F77" >&6; }
9202
{ echo "$as_me:$LINENO: result: no" >&5
9203
echo "${ECHO_T}no" >&6; }
9207
test -n "$F77" && break
9210
if test -z "$F77"; then
9212
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
9214
# Extract the first word of "$ac_prog", so it can be a program name with args.
9215
set dummy $ac_prog; ac_word=$2
9216
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9217
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9218
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9219
echo $ECHO_N "(cached) $ECHO_C" >&6
9221
if test -n "$ac_ct_F77"; then
9222
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228
test -z "$as_dir" && as_dir=.
9229
for ac_exec_ext in '' $ac_executable_extensions; do
9230
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9231
ac_cv_prog_ac_ct_F77="$ac_prog"
9232
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9241
ac_ct_F77=$ac_cv_prog_ac_ct_F77
9242
if test -n "$ac_ct_F77"; then
9243
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9244
echo "${ECHO_T}$ac_ct_F77" >&6; }
9246
{ echo "$as_me:$LINENO: result: no" >&5
9247
echo "${ECHO_T}no" >&6; }
9251
test -n "$ac_ct_F77" && break
9254
if test "x$ac_ct_F77" = x; then
9257
case $cross_compiling:$ac_tool_warned in
9259
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9260
whose name does not start with the host triplet. If you think this
9261
configuration is useful to you, please write to autoconf@gnu.org." >&5
9262
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9263
whose name does not start with the host triplet. If you think this
9264
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9265
ac_tool_warned=yes ;;
9272
# Provide some information about the compiler.
9273
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
9274
ac_compiler=`set X $ac_compile; echo $2`
9275
{ (ac_try="$ac_compiler --version >&5"
9277
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278
*) ac_try_echo=$ac_try;;
9280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281
(eval "$ac_compiler --version >&5") 2>&5
9283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284
(exit $ac_status); }
9285
{ (ac_try="$ac_compiler -v >&5"
9287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288
*) ac_try_echo=$ac_try;;
9290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291
(eval "$ac_compiler -v >&5") 2>&5
9293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294
(exit $ac_status); }
9295
{ (ac_try="$ac_compiler -V >&5"
9297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298
*) ac_try_echo=$ac_try;;
9300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301
(eval "$ac_compiler -V >&5") 2>&5
9303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304
(exit $ac_status); }
9307
# If we don't use `.F' as extension, the preprocessor is not run on the
9308
# input file. (Note that this only needs to work for GNU compilers.)
9311
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9312
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
9313
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9314
echo $ECHO_N "(cached) $ECHO_C" >&6
9316
cat >conftest.$ac_ext <<_ACEOF
9324
rm -f conftest.$ac_objext
9325
if { (ac_try="$ac_compile"
9327
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328
*) ac_try_echo=$ac_try;;
9330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331
(eval "$ac_compile") 2>conftest.er1
9333
grep -v '^ *+' conftest.er1 >conftest.err
9335
cat conftest.err >&5
9336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337
(exit $ac_status); } && {
9338
test -z "$ac_f77_werror_flag" ||
9339
test ! -s conftest.err
9340
} && test -s conftest.$ac_objext; then
9343
echo "$as_me: failed program was:" >&5
9344
sed 's/^/| /' conftest.$ac_ext >&5
9349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9353
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9354
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
9356
ac_test_FFLAGS=${FFLAGS+set}
9357
ac_save_FFLAGS=$FFLAGS
9359
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9360
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
9361
if test "${ac_cv_prog_f77_g+set}" = set; then
9362
echo $ECHO_N "(cached) $ECHO_C" >&6
9365
cat >conftest.$ac_ext <<_ACEOF
9370
rm -f conftest.$ac_objext
9371
if { (ac_try="$ac_compile"
9373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374
*) ac_try_echo=$ac_try;;
9376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377
(eval "$ac_compile") 2>conftest.er1
9379
grep -v '^ *+' conftest.er1 >conftest.err
9381
cat conftest.err >&5
9382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383
(exit $ac_status); } && {
9384
test -z "$ac_f77_werror_flag" ||
9385
test ! -s conftest.err
9386
} && test -s conftest.$ac_objext; then
9387
ac_cv_prog_f77_g=yes
9389
echo "$as_me: failed program was:" >&5
9390
sed 's/^/| /' conftest.$ac_ext >&5
9395
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9399
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
9400
if test "$ac_test_FFLAGS" = set; then
9401
FFLAGS=$ac_save_FFLAGS
9402
elif test $ac_cv_prog_f77_g = yes; then
9403
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9409
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9416
G77=`test $ac_compiler_gnu = yes && echo yes`
9418
ac_cpp='$CPP $CPPFLAGS'
9419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9425
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9427
# find the maximum length of command line arguments
9428
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9429
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9430
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9431
echo $ECHO_N "(cached) $ECHO_C" >&6
9438
# On DJGPP, this test can blow up pretty badly due to problems in libc
9439
# (any single argument exceeding 2000 bytes causes a buffer overrun
9440
# during glob expansion). Even if it were fixed, the result of this
9441
# check would be larger than it should be.
9442
lt_cv_sys_max_cmd_len=12288; # 12K is about right
9446
# Under GNU Hurd, this test is not required because there is
9447
# no limit to the length of command line arguments.
9448
# Libtool will interpret -1 as no limit whatsoever
9449
lt_cv_sys_max_cmd_len=-1;
9453
# On Win9x/ME, this test blows up -- it succeeds, but takes
9454
# about 5 minutes as the teststring grows exponentially.
9455
# Worse, since 9x/ME are not pre-emptively multitasking,
9456
# you end up with a "frozen" computer, even though with patience
9457
# the test eventually succeeds (with a max line length of 256k).
9458
# Instead, let's just punt: use the minimum linelength reported by
9459
# all of the supported platforms: 8192 (on NT/2K/XP).
9460
lt_cv_sys_max_cmd_len=8192;
9464
# On AmigaOS with pdksh, this test takes hours, literally.
9465
# So we just punt and use a minimum line length of 8192.
9466
lt_cv_sys_max_cmd_len=8192;
9469
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9470
# This has been around since 386BSD, at least. Likely further.
9471
if test -x /sbin/sysctl; then
9472
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9473
elif test -x /usr/sbin/sysctl; then
9474
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9476
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9478
# And add a safety zone
9479
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9480
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9484
# We know the value 262144 and hardcode it with a safety zone (like BSD)
9485
lt_cv_sys_max_cmd_len=196608
9489
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9490
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9491
# nice to cause kernel panics so lets avoid the loop below.
9492
# First set a reasonable default.
9493
lt_cv_sys_max_cmd_len=16384
9495
if test -x /sbin/sysconfig; then
9496
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9497
*1*) lt_cv_sys_max_cmd_len=-1 ;;
9502
lt_cv_sys_max_cmd_len=102400
9504
sysv5* | sco5v6* | sysv4.2uw2*)
9505
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9506
if test -n "$kargmax"; then
9507
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9509
lt_cv_sys_max_cmd_len=32768
9513
# If test is not a shell built-in, we'll probably end up computing a
9514
# maximum length that is only half of the actual maximum length, but
9516
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9517
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9518
= "XX$teststring") >/dev/null 2>&1 &&
9519
new_result=`expr "X$teststring" : ".*" 2>&1` &&
9520
lt_cv_sys_max_cmd_len=$new_result &&
9521
test $i != 17 # 1/2 MB should be enough
9524
teststring=$teststring$teststring
9527
# Add a significant safety factor because C++ compilers can tack on massive
9528
# amounts of additional arguments before passing them to the linker.
9529
# It appears as though 1/2 is a usable value.
9530
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9536
if test -n $lt_cv_sys_max_cmd_len ; then
9537
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9538
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9540
{ echo "$as_me:$LINENO: result: none" >&5
9541
echo "${ECHO_T}none" >&6; }
9547
# Check for command to grab the raw symbol name followed by C symbol from nm.
9548
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9549
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9550
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9551
echo $ECHO_N "(cached) $ECHO_C" >&6
9554
# These are sane defaults that work on at least a few old systems.
9555
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9557
# Character class describing NM global symbol codes.
9558
symcode='[BCDEGRST]'
9560
# Regexp to match symbols that can be accessed directly from C.
9561
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9563
# Transform an extracted symbol line into a proper C declaration
9564
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9566
# Transform an extracted symbol line into symbol name and symbol address
9567
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'"
9569
# Define system-specific variables.
9574
cygwin* | mingw* | pw32*)
9575
symcode='[ABCDGISTW]'
9577
hpux*) # Its linker distinguishes data from code symbols
9578
if test "$host_cpu" = ia64; then
9579
symcode='[ABCDEGRST]'
9581
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9582
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'"
9584
linux* | k*bsd*-gnu)
9585
if test "$host_cpu" = ia64; then
9586
symcode='[ABCDGIRSTW]'
9587
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9588
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'"
9592
symcode='[BCDEGRST]'
9595
symcode='[BCDEGQRST]'
9606
sysv5* | sco5v6* | unixware* | OpenUNIX*)
9614
# Handle CRLF in mingw tool chain
9618
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9622
# If we're using GNU nm, then use its standard symbol codes.
9623
case `$NM -V 2>&1` in
9624
*GNU* | *'with BFD'*)
9625
symcode='[ABCDGIRSTW]' ;;
9628
# Try without a prefix undercore, then with it.
9629
for ac_symprfx in "" "_"; do
9631
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9632
symxfrm="\\1 $ac_symprfx\\2 \\2"
9634
# Write the raw and C identifiers.
9635
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9637
# Check to see that the pipe works correctly.
9641
cat > conftest.$ac_ext <<EOF
9646
void nm_test_func(){}
9650
int main(){nm_test_var='a';nm_test_func();return(0);}
9653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9654
(eval $ac_compile) 2>&5
9656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657
(exit $ac_status); }; then
9658
# Now try to grab the symbols.
9660
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9661
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664
(exit $ac_status); } && test -s "$nlist"; then
9665
# Try sorting and uniquifying the output.
9666
if sort "$nlist" | uniq > "$nlist"T; then
9667
mv -f "$nlist"T "$nlist"
9672
# Make sure that we snagged all the symbols we need.
9673
if grep ' nm_test_var$' "$nlist" >/dev/null; then
9674
if grep ' nm_test_func$' "$nlist" >/dev/null; then
9675
cat <<EOF > conftest.$ac_ext
9681
# Now generate the symbol file.
9682
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9684
cat <<EOF >> conftest.$ac_ext
9685
#if defined (__STDC__) && __STDC__
9686
# define lt_ptr_t void *
9688
# define lt_ptr_t char *
9692
/* The mapping between symbol names and symbols. */
9697
lt_preloaded_symbols[] =
9700
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9701
cat <<\EOF >> conftest.$ac_ext
9709
# Now try linking the two files.
9710
mv conftest.$ac_objext conftstm.$ac_objext
9711
lt_save_LIBS="$LIBS"
9712
lt_save_CFLAGS="$CFLAGS"
9713
LIBS="conftstm.$ac_objext"
9714
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9715
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716
(eval $ac_link) 2>&5
9718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719
(exit $ac_status); } && test -s conftest${ac_exeext}; then
9722
LIBS="$lt_save_LIBS"
9723
CFLAGS="$lt_save_CFLAGS"
9725
echo "cannot find nm_test_func in $nlist" >&5
9728
echo "cannot find nm_test_var in $nlist" >&5
9731
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9734
echo "$progname: failed program was:" >&5
9735
cat conftest.$ac_ext >&5
9737
rm -f conftest* conftst*
9739
# Do not use the global_symbol_pipe unless it works.
9740
if test "$pipe_works" = yes; then
9743
lt_cv_sys_global_symbol_pipe=
9749
if test -z "$lt_cv_sys_global_symbol_pipe"; then
9750
lt_cv_sys_global_symbol_to_cdecl=
9752
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9753
{ echo "$as_me:$LINENO: result: failed" >&5
9754
echo "${ECHO_T}failed" >&6; }
9756
{ echo "$as_me:$LINENO: result: ok" >&5
9757
echo "${ECHO_T}ok" >&6; }
9760
{ echo "$as_me:$LINENO: checking for objdir" >&5
9761
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9762
if test "${lt_cv_objdir+set}" = set; then
9763
echo $ECHO_N "(cached) $ECHO_C" >&6
9765
rm -f .libs 2>/dev/null
9766
mkdir .libs 2>/dev/null
9767
if test -d .libs; then
9770
# MS-DOS does not allow filenames that begin with a dot.
9773
rmdir .libs 2>/dev/null
9775
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9776
echo "${ECHO_T}$lt_cv_objdir" >&6; }
9777
objdir=$lt_cv_objdir
9785
# AIX sometimes has problems with the GCC collect2 program. For some
9786
# reason, if we set the COLLECT_NAMES environment variable, the problems
9787
# vanish in a puff of smoke.
9788
if test "X${COLLECT_NAMES+set}" != Xset; then
9790
export COLLECT_NAMES
9795
# Sed substitution that helps us do robust quoting. It backslashifies
9796
# metacharacters that are still active within double-quoted strings.
9797
Xsed='sed -e 1s/^X//'
9798
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9800
# Same as above, but do not quote variable references.
9801
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9803
# Sed substitution to delay expansion of an escaped shell variable in a
9804
# double_quote_subst'ed string.
9805
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9807
# Sed substitution to avoid accidental globbing in evaled expressions
9808
no_glob_subst='s/\*/\\\*/g'
9814
default_ofile=libtool
9815
can_build_shared=yes
9817
# All known linkers require a `.a' archive for static linking (except MSVC,
9818
# which needs '.lib').
9820
ltmain="$ac_aux_dir/ltmain.sh"
9821
ofile="$default_ofile"
9822
with_gnu_ld="$lt_cv_prog_gnu_ld"
9824
if test -n "$ac_tool_prefix"; then
9825
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9826
set dummy ${ac_tool_prefix}ar; ac_word=$2
9827
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9829
if test "${ac_cv_prog_AR+set}" = set; then
9830
echo $ECHO_N "(cached) $ECHO_C" >&6
9832
if test -n "$AR"; then
9833
ac_cv_prog_AR="$AR" # Let the user override the test.
9835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839
test -z "$as_dir" && as_dir=.
9840
for ac_exec_ext in '' $ac_executable_extensions; do
9841
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842
ac_cv_prog_AR="${ac_tool_prefix}ar"
9843
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9853
if test -n "$AR"; then
9854
{ echo "$as_me:$LINENO: result: $AR" >&5
9855
echo "${ECHO_T}$AR" >&6; }
9857
{ echo "$as_me:$LINENO: result: no" >&5
9858
echo "${ECHO_T}no" >&6; }
9863
if test -z "$ac_cv_prog_AR"; then
9865
# Extract the first word of "ar", so it can be a program name with args.
9866
set dummy ar; ac_word=$2
9867
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9868
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9869
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9870
echo $ECHO_N "(cached) $ECHO_C" >&6
9872
if test -n "$ac_ct_AR"; then
9873
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879
test -z "$as_dir" && as_dir=.
9880
for ac_exec_ext in '' $ac_executable_extensions; do
9881
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9882
ac_cv_prog_ac_ct_AR="ar"
9883
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9893
if test -n "$ac_ct_AR"; then
9894
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9895
echo "${ECHO_T}$ac_ct_AR" >&6; }
9897
{ echo "$as_me:$LINENO: result: no" >&5
9898
echo "${ECHO_T}no" >&6; }
9901
if test "x$ac_ct_AR" = x; then
9904
case $cross_compiling:$ac_tool_warned in
9906
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9907
whose name does not start with the host triplet. If you think this
9908
configuration is useful to you, please write to autoconf@gnu.org." >&5
9909
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9910
whose name does not start with the host triplet. If you think this
9911
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9912
ac_tool_warned=yes ;;
9920
if test -n "$ac_tool_prefix"; then
9921
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9922
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9923
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9925
if test "${ac_cv_prog_RANLIB+set}" = set; then
9926
echo $ECHO_N "(cached) $ECHO_C" >&6
9928
if test -n "$RANLIB"; then
9929
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935
test -z "$as_dir" && as_dir=.
9936
for ac_exec_ext in '' $ac_executable_extensions; do
9937
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9938
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9939
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9948
RANLIB=$ac_cv_prog_RANLIB
9949
if test -n "$RANLIB"; then
9950
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
9951
echo "${ECHO_T}$RANLIB" >&6; }
9953
{ echo "$as_me:$LINENO: result: no" >&5
9954
echo "${ECHO_T}no" >&6; }
9959
if test -z "$ac_cv_prog_RANLIB"; then
9960
ac_ct_RANLIB=$RANLIB
9961
# Extract the first word of "ranlib", so it can be a program name with args.
9962
set dummy ranlib; ac_word=$2
9963
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9965
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9966
echo $ECHO_N "(cached) $ECHO_C" >&6
9968
if test -n "$ac_ct_RANLIB"; then
9969
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975
test -z "$as_dir" && as_dir=.
9976
for ac_exec_ext in '' $ac_executable_extensions; do
9977
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978
ac_cv_prog_ac_ct_RANLIB="ranlib"
9979
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9988
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9989
if test -n "$ac_ct_RANLIB"; then
9990
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9991
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9993
{ echo "$as_me:$LINENO: result: no" >&5
9994
echo "${ECHO_T}no" >&6; }
9997
if test "x$ac_ct_RANLIB" = x; then
10000
case $cross_compiling:$ac_tool_warned in
10002
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10003
whose name does not start with the host triplet. If you think this
10004
configuration is useful to you, please write to autoconf@gnu.org." >&5
10005
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10006
whose name does not start with the host triplet. If you think this
10007
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10008
ac_tool_warned=yes ;;
10010
RANLIB=$ac_ct_RANLIB
10013
RANLIB="$ac_cv_prog_RANLIB"
10016
if test -n "$ac_tool_prefix"; then
10017
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10018
set dummy ${ac_tool_prefix}strip; ac_word=$2
10019
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10021
if test "${ac_cv_prog_STRIP+set}" = set; then
10022
echo $ECHO_N "(cached) $ECHO_C" >&6
10024
if test -n "$STRIP"; then
10025
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028
for as_dir in $PATH
10031
test -z "$as_dir" && as_dir=.
10032
for ac_exec_ext in '' $ac_executable_extensions; do
10033
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10035
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10044
STRIP=$ac_cv_prog_STRIP
10045
if test -n "$STRIP"; then
10046
{ echo "$as_me:$LINENO: result: $STRIP" >&5
10047
echo "${ECHO_T}$STRIP" >&6; }
10049
{ echo "$as_me:$LINENO: result: no" >&5
10050
echo "${ECHO_T}no" >&6; }
10055
if test -z "$ac_cv_prog_STRIP"; then
10057
# Extract the first word of "strip", so it can be a program name with args.
10058
set dummy strip; ac_word=$2
10059
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10060
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10061
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10062
echo $ECHO_N "(cached) $ECHO_C" >&6
10064
if test -n "$ac_ct_STRIP"; then
10065
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10067
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068
for as_dir in $PATH
10071
test -z "$as_dir" && as_dir=.
10072
for ac_exec_ext in '' $ac_executable_extensions; do
10073
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10074
ac_cv_prog_ac_ct_STRIP="strip"
10075
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10084
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10085
if test -n "$ac_ct_STRIP"; then
10086
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10087
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
10089
{ echo "$as_me:$LINENO: result: no" >&5
10090
echo "${ECHO_T}no" >&6; }
10093
if test "x$ac_ct_STRIP" = x; then
10096
case $cross_compiling:$ac_tool_warned in
10098
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10099
whose name does not start with the host triplet. If you think this
10100
configuration is useful to you, please write to autoconf@gnu.org." >&5
10101
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10102
whose name does not start with the host triplet. If you think this
10103
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10104
ac_tool_warned=yes ;;
10109
STRIP="$ac_cv_prog_STRIP"
10114
old_CFLAGS="$CFLAGS"
10116
# Set sane defaults for various variables
10117
test -z "$AR" && AR=ar
10118
test -z "$AR_FLAGS" && AR_FLAGS=cru
10119
test -z "$AS" && AS=as
10120
test -z "$CC" && CC=cc
10121
test -z "$LTCC" && LTCC=$CC
10122
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10123
test -z "$DLLTOOL" && DLLTOOL=dlltool
10124
test -z "$LD" && LD=ld
10125
test -z "$LN_S" && LN_S="ln -s"
10126
test -z "$MAGIC_CMD" && MAGIC_CMD=file
10127
test -z "$NM" && NM=nm
10128
test -z "$SED" && SED=sed
10129
test -z "$OBJDUMP" && OBJDUMP=objdump
10130
test -z "$RANLIB" && RANLIB=:
10131
test -z "$STRIP" && STRIP=:
10132
test -z "$ac_objext" && ac_objext=o
10134
# Determine commands to create old-style static archives.
10135
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10136
old_postinstall_cmds='chmod 644 $oldlib'
10137
old_postuninstall_cmds=
10139
if test -n "$RANLIB"; then
10142
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10145
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10148
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10151
for cc_temp in $compiler""; do
10153
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10154
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10159
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10162
# Only perform the check for file, if the check method requires it
10163
case $deplibs_check_method in
10165
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10166
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10167
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
10168
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10169
echo $ECHO_N "(cached) $ECHO_C" >&6
10173
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10176
lt_save_MAGIC_CMD="$MAGIC_CMD"
10177
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10178
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10179
for ac_dir in $ac_dummy; do
10181
test -z "$ac_dir" && ac_dir=.
10182
if test -f $ac_dir/${ac_tool_prefix}file; then
10183
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10184
if test -n "$file_magic_test_file"; then
10185
case $deplibs_check_method in
10187
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10188
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10189
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10190
$EGREP "$file_magic_regex" > /dev/null; then
10195
*** Warning: the command libtool uses to detect shared libraries,
10196
*** $file_magic_cmd, produces output that libtool cannot recognize.
10197
*** The result is that libtool may fail to recognize shared libraries
10198
*** as such. This will affect the creation of libtool libraries that
10199
*** depend on shared libraries, but programs linked with such libtool
10200
*** libraries will work regardless of this problem. Nevertheless, you
10201
*** may want to report the problem to your system manager and/or to
10202
*** bug-libtool@gnu.org
10212
MAGIC_CMD="$lt_save_MAGIC_CMD"
10217
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10218
if test -n "$MAGIC_CMD"; then
10219
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10220
echo "${ECHO_T}$MAGIC_CMD" >&6; }
10222
{ echo "$as_me:$LINENO: result: no" >&5
10223
echo "${ECHO_T}no" >&6; }
10226
if test -z "$lt_cv_path_MAGIC_CMD"; then
10227
if test -n "$ac_tool_prefix"; then
10228
{ echo "$as_me:$LINENO: checking for file" >&5
10229
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
10230
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10231
echo $ECHO_N "(cached) $ECHO_C" >&6
10235
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10238
lt_save_MAGIC_CMD="$MAGIC_CMD"
10239
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10240
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10241
for ac_dir in $ac_dummy; do
10243
test -z "$ac_dir" && ac_dir=.
10244
if test -f $ac_dir/file; then
10245
lt_cv_path_MAGIC_CMD="$ac_dir/file"
10246
if test -n "$file_magic_test_file"; then
10247
case $deplibs_check_method in
10249
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10250
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10251
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10252
$EGREP "$file_magic_regex" > /dev/null; then
10257
*** Warning: the command libtool uses to detect shared libraries,
10258
*** $file_magic_cmd, produces output that libtool cannot recognize.
10259
*** The result is that libtool may fail to recognize shared libraries
10260
*** as such. This will affect the creation of libtool libraries that
10261
*** depend on shared libraries, but programs linked with such libtool
10262
*** libraries will work regardless of this problem. Nevertheless, you
10263
*** may want to report the problem to your system manager and/or to
10264
*** bug-libtool@gnu.org
10274
MAGIC_CMD="$lt_save_MAGIC_CMD"
10279
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10280
if test -n "$MAGIC_CMD"; then
10281
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10282
echo "${ECHO_T}$MAGIC_CMD" >&6; }
10284
{ echo "$as_me:$LINENO: result: no" >&5
10285
echo "${ECHO_T}no" >&6; }
10298
enable_win32_dll=no
10300
# Check whether --enable-libtool-lock was given.
10301
if test "${enable_libtool_lock+set}" = set; then
10302
enableval=$enable_libtool_lock;
10305
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10308
# Check whether --with-pic was given.
10309
if test "${with_pic+set}" = set; then
10310
withval=$with_pic; pic_mode="$withval"
10315
test -z "$pic_mode" && pic_mode=default
10317
# Use C for the default configuration in the libtool script
10321
ac_cpp='$CPP $CPPFLAGS'
10322
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10323
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10324
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10327
# Source file extension for C test sources.
10330
# Object file extension for compiled C test sources.
10334
# Code to be used in simple compile tests
10335
lt_simple_compile_test_code="int some_variable = 0;\n"
10337
# Code to be used in simple link tests
10338
lt_simple_link_test_code='int main(){return(0);}\n'
10341
# If no C compiler was specified, use CC.
10344
# If no C compiler flags were specified, use CFLAGS.
10345
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10347
# Allow CC to be a program name with arguments.
10351
# save warnings/boilerplate of simple test code
10352
ac_outfile=conftest.$ac_objext
10353
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10354
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10355
_lt_compiler_boilerplate=`cat conftest.err`
10358
ac_outfile=conftest.$ac_objext
10359
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10360
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10361
_lt_linker_boilerplate=`cat conftest.err`
10366
## There is no encapsulation within the following macros, do not change
10367
## the running order or otherwise move them around unless you know exactly
10368
## what you are doing...
10370
lt_prog_compiler_no_builtin_flag=
10372
if test "$GCC" = yes; then
10373
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10376
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10377
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10378
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10379
echo $ECHO_N "(cached) $ECHO_C" >&6
10381
lt_cv_prog_compiler_rtti_exceptions=no
10382
ac_outfile=conftest.$ac_objext
10383
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10384
lt_compiler_flag="-fno-rtti -fno-exceptions"
10385
# Insert the option either (1) after the last *FLAGS variable, or
10386
# (2) before a word containing "conftest.", or (3) at the end.
10387
# Note that $ac_compile itself does not contain backslashes and begins
10388
# with a dollar sign (not a hyphen), so the echo should work correctly.
10389
# The option is referenced via a variable to avoid confusing sed.
10390
lt_compile=`echo "$ac_compile" | $SED \
10391
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10392
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10393
-e 's:$: $lt_compiler_flag:'`
10394
(eval echo "\"\$as_me:10394: $lt_compile\"" >&5)
10395
(eval "$lt_compile" 2>conftest.err)
10397
cat conftest.err >&5
10398
echo "$as_me:10398: \$? = $ac_status" >&5
10399
if (exit $ac_status) && test -s "$ac_outfile"; then
10400
# The compiler can only warn and ignore the option if not recognized
10401
# So say no if there are warnings other than the usual output.
10402
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10403
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10404
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10405
lt_cv_prog_compiler_rtti_exceptions=yes
10411
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10412
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10414
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10415
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10422
lt_prog_compiler_wl=
10423
lt_prog_compiler_pic=
10424
lt_prog_compiler_static=
10426
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10427
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10429
if test "$GCC" = yes; then
10430
lt_prog_compiler_wl='-Wl,'
10431
lt_prog_compiler_static='-static'
10435
# All AIX code is PIC.
10436
if test "$host_cpu" = ia64; then
10437
# AIX 5 now supports IA64 processor
10438
lt_prog_compiler_static='-Bstatic'
10443
# FIXME: we need at least 68020 code to build shared libraries, but
10444
# adding the `-m68020' flag to GCC prevents building anything better,
10446
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10449
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10450
# PIC is the default for these OSes.
10453
mingw* | pw32* | os2*)
10454
# This hack is so that the source file can tell whether it is being
10455
# built for inclusion in a dll (and should export symbols for example).
10456
lt_prog_compiler_pic='-DDLL_EXPORT'
10459
darwin* | rhapsody*)
10460
# PIC is the default on this platform
10461
# Common symbols not allowed in MH_DYLIB files
10462
lt_prog_compiler_pic='-fno-common'
10466
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
10467
# Instead, we relocate shared libraries at runtime.
10471
# Just because we use GCC doesn't mean we suddenly get shared libraries
10472
# on systems that don't support them.
10473
lt_prog_compiler_can_build_shared=no
10478
if test -d /usr/nec; then
10479
lt_prog_compiler_pic=-Kconform_pic
10484
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10485
# not for PA HP-UX.
10491
lt_prog_compiler_pic='-fPIC'
10497
lt_prog_compiler_pic='-fPIC'
10501
# PORTME Check for flag to pass linker flags through the system compiler.
10504
lt_prog_compiler_wl='-Wl,'
10505
if test "$host_cpu" = ia64; then
10506
# AIX 5 now supports IA64 processor
10507
lt_prog_compiler_static='-Bstatic'
10509
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10513
# PIC is the default on this platform
10514
# Common symbols not allowed in MH_DYLIB files
10515
case $cc_basename in
10517
lt_prog_compiler_pic='-qnocommon'
10518
lt_prog_compiler_wl='-Wl,'
10523
mingw* | pw32* | os2*)
10524
# This hack is so that the source file can tell whether it is being
10525
# built for inclusion in a dll (and should export symbols for example).
10526
lt_prog_compiler_pic='-DDLL_EXPORT'
10529
hpux9* | hpux10* | hpux11*)
10530
lt_prog_compiler_wl='-Wl,'
10531
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10532
# not for PA HP-UX.
10538
lt_prog_compiler_pic='+Z'
10541
# Is there a better lt_prog_compiler_static that works with the bundled CC?
10542
lt_prog_compiler_static='${wl}-a ${wl}archive'
10545
irix5* | irix6* | nonstopux*)
10546
lt_prog_compiler_wl='-Wl,'
10547
# PIC (with -KPIC) is the default.
10548
lt_prog_compiler_static='-non_shared'
10552
lt_prog_compiler_pic='-KPIC'
10553
lt_prog_compiler_static='-Bstatic'
10556
linux* | k*bsd*-gnu)
10557
case $cc_basename in
10559
lt_prog_compiler_wl='-Wl,'
10560
lt_prog_compiler_pic='-KPIC'
10561
lt_prog_compiler_static='-static'
10563
pgcc* | pgf77* | pgf90* | pgf95*)
10564
# Portland Group compilers (*not* the Pentium gcc compiler,
10565
# which looks to be a dead project)
10566
lt_prog_compiler_wl='-Wl,'
10567
lt_prog_compiler_pic='-fpic'
10568
lt_prog_compiler_static='-Bstatic'
10571
lt_prog_compiler_wl='-Wl,'
10572
# All Alpha code is PIC.
10573
lt_prog_compiler_static='-non_shared'
10578
osf3* | osf4* | osf5*)
10579
lt_prog_compiler_wl='-Wl,'
10580
# All OSF/1 code is PIC.
10581
lt_prog_compiler_static='-non_shared'
10585
lt_prog_compiler_pic='-KPIC'
10586
lt_prog_compiler_static='-Bstatic'
10587
case $cc_basename in
10588
f77* | f90* | f95*)
10589
lt_prog_compiler_wl='-Qoption ld ';;
10591
lt_prog_compiler_wl='-Wl,';;
10596
lt_prog_compiler_wl='-Qoption ld '
10597
lt_prog_compiler_pic='-PIC'
10598
lt_prog_compiler_static='-Bstatic'
10601
sysv4 | sysv4.2uw2* | sysv4.3*)
10602
lt_prog_compiler_wl='-Wl,'
10603
lt_prog_compiler_pic='-KPIC'
10604
lt_prog_compiler_static='-Bstatic'
10608
if test -d /usr/nec ;then
10609
lt_prog_compiler_pic='-Kconform_pic'
10610
lt_prog_compiler_static='-Bstatic'
10614
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10615
lt_prog_compiler_wl='-Wl,'
10616
lt_prog_compiler_pic='-KPIC'
10617
lt_prog_compiler_static='-Bstatic'
10621
lt_prog_compiler_wl='-Wl,'
10622
lt_prog_compiler_can_build_shared=no
10626
lt_prog_compiler_pic='-pic'
10627
lt_prog_compiler_static='-Bstatic'
10631
lt_prog_compiler_can_build_shared=no
10636
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10637
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10640
# Check to make sure the PIC flag actually works.
10642
if test -n "$lt_prog_compiler_pic"; then
10644
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10645
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10646
if test "${lt_prog_compiler_pic_works+set}" = set; then
10647
echo $ECHO_N "(cached) $ECHO_C" >&6
10649
lt_prog_compiler_pic_works=no
10650
ac_outfile=conftest.$ac_objext
10651
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10652
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10653
# Insert the option either (1) after the last *FLAGS variable, or
10654
# (2) before a word containing "conftest.", or (3) at the end.
10655
# Note that $ac_compile itself does not contain backslashes and begins
10656
# with a dollar sign (not a hyphen), so the echo should work correctly.
10657
# The option is referenced via a variable to avoid confusing sed.
10658
lt_compile=`echo "$ac_compile" | $SED \
10659
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10660
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10661
-e 's:$: $lt_compiler_flag:'`
10662
(eval echo "\"\$as_me:10662: $lt_compile\"" >&5)
10663
(eval "$lt_compile" 2>conftest.err)
10665
cat conftest.err >&5
10666
echo "$as_me:10666: \$? = $ac_status" >&5
10667
if (exit $ac_status) && test -s "$ac_outfile"; then
10668
# The compiler can only warn and ignore the option if not recognized
10669
# So say no if there are warnings other than the usual output.
10670
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10671
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10672
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10673
lt_prog_compiler_pic_works=yes
10679
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10680
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
10682
if test x"$lt_prog_compiler_pic_works" = xyes; then
10683
case $lt_prog_compiler_pic in
10685
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10688
lt_prog_compiler_pic=
10689
lt_prog_compiler_can_build_shared=no
10694
# For platforms which do not support PIC, -DPIC is meaningless:
10696
lt_prog_compiler_pic=
10699
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10704
# Check to make sure the static flag actually works.
10706
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10707
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10708
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10709
if test "${lt_prog_compiler_static_works+set}" = set; then
10710
echo $ECHO_N "(cached) $ECHO_C" >&6
10712
lt_prog_compiler_static_works=no
10713
save_LDFLAGS="$LDFLAGS"
10714
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10715
printf "$lt_simple_link_test_code" > conftest.$ac_ext
10716
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10717
# The linker can only warn and ignore the option if not recognized
10718
# So say no if there are warnings
10719
if test -s conftest.err; then
10720
# Append any errors to the config.log.
10721
cat conftest.err 1>&5
10722
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10723
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10724
if diff conftest.exp conftest.er2 >/dev/null; then
10725
lt_prog_compiler_static_works=yes
10728
lt_prog_compiler_static_works=yes
10732
LDFLAGS="$save_LDFLAGS"
10735
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10736
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
10738
if test x"$lt_prog_compiler_static_works" = xyes; then
10741
lt_prog_compiler_static=
10745
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10746
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10747
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10748
echo $ECHO_N "(cached) $ECHO_C" >&6
10750
lt_cv_prog_compiler_c_o=no
10751
$rm -r conftest 2>/dev/null
10755
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10757
lt_compiler_flag="-o out/conftest2.$ac_objext"
10758
# Insert the option either (1) after the last *FLAGS variable, or
10759
# (2) before a word containing "conftest.", or (3) at the end.
10760
# Note that $ac_compile itself does not contain backslashes and begins
10761
# with a dollar sign (not a hyphen), so the echo should work correctly.
10762
lt_compile=`echo "$ac_compile" | $SED \
10763
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10764
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765
-e 's:$: $lt_compiler_flag:'`
10766
(eval echo "\"\$as_me:10766: $lt_compile\"" >&5)
10767
(eval "$lt_compile" 2>out/conftest.err)
10769
cat out/conftest.err >&5
10770
echo "$as_me:10770: \$? = $ac_status" >&5
10771
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10773
# The compiler can only warn and ignore the option if not recognized
10774
# So say no if there are warnings
10775
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10776
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10777
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10778
lt_cv_prog_compiler_c_o=yes
10783
# SGI C++ compiler will create directory out/ii_files/ for
10784
# template instantiation
10785
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10786
$rm out/* && rmdir out
10792
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10793
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10796
hard_links="nottested"
10797
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10798
# do not overwrite the value of need_locks provided by the user
10799
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10800
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10803
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10805
ln conftest.a conftest.b 2>&5 || hard_links=no
10806
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10807
{ echo "$as_me:$LINENO: result: $hard_links" >&5
10808
echo "${ECHO_T}$hard_links" >&6; }
10809
if test "$hard_links" = no; then
10810
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10811
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10818
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10819
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10822
allow_undefined_flag=
10823
enable_shared_with_static_runtimes=no
10825
archive_expsym_cmds=
10826
old_archive_From_new_cmds=
10827
old_archive_from_expsyms_cmds=
10828
export_dynamic_flag_spec=
10829
whole_archive_flag_spec=
10830
thread_safe_flag_spec=
10831
hardcode_libdir_flag_spec=
10832
hardcode_libdir_flag_spec_ld=
10833
hardcode_libdir_separator=
10835
hardcode_minus_L=no
10836
hardcode_shlibpath_var=unsupported
10837
link_all_deplibs=unknown
10838
hardcode_automatic=no
10840
module_expsym_cmds=
10841
always_export_symbols=no
10842
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10843
# include_expsyms should be a list of space-separated symbols to be *always*
10844
# included in the symbol list
10846
# exclude_expsyms can be an extended regexp of symbols to exclude
10847
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10848
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10849
# as well as any symbol that contains `d'.
10850
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10851
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10852
# platforms (ab)use it in PIC code, but their linkers get confused if
10853
# the symbol is explicitly referenced. Since portable code cannot
10854
# rely on this symbol name, it's probably fine to never include it in
10855
# preloaded symbol tables.
10856
extract_expsyms_cmds=
10857
# Just being paranoid about ensuring that cc_basename is set.
10858
for cc_temp in $compiler""; do
10860
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10861
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10866
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10869
cygwin* | mingw* | pw32*)
10870
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10871
# When not using gcc, we currently assume that we are using
10872
# Microsoft Visual C++.
10873
if test "$GCC" != yes; then
10878
# we just hope/assume this is gcc and not c89 (= MSVC++)
10887
if test "$with_gnu_ld" = yes; then
10888
# If archive_cmds runs LD, not CC, wlarc should be empty
10891
# Set some defaults for GNU ld with shared library support. These
10892
# are reset later if shared libraries are not supported. Putting them
10893
# here allows them to be overridden if necessary.
10894
runpath_var=LD_RUN_PATH
10895
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10896
export_dynamic_flag_spec='${wl}--export-dynamic'
10897
# ancient GNU ld didn't support --whole-archive et. al.
10898
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10899
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10901
whole_archive_flag_spec=
10903
supports_anon_versioning=no
10904
case `$LD -v 2>/dev/null` in
10905
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10906
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10907
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10908
*\ 2.11.*) ;; # other 2.11 versions
10909
*) supports_anon_versioning=yes ;;
10912
# See if GNU ld supports shared libraries.
10914
aix3* | aix4* | aix5*)
10915
# On AIX/PPC, the GNU linker is very broken
10916
if test "$host_cpu" != ia64; then
10920
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10921
*** to be unable to reliably create shared libraries on AIX.
10922
*** Therefore, libtool is disabling shared libraries support. If you
10923
*** really care for shared libraries, you may want to modify your PATH
10924
*** so that a non-GNU linker is found, and then restart.
10931
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)'
10932
hardcode_libdir_flag_spec='-L$libdir'
10933
hardcode_minus_L=yes
10935
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10936
# that the semantics of dynamic libraries on AmigaOS, at least up
10937
# to version 4, is to share data among multiple programs linked
10938
# with the same dynamic library. Since this doesn't match the
10939
# behavior of shared libraries on other platforms, we can't use
10945
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10946
allow_undefined_flag=unsupported
10947
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10948
# support --undefined. This deserves some investigation. FIXME
10949
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10955
cygwin* | mingw* | pw32*)
10956
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10957
# as there is no search path for DLLs.
10958
hardcode_libdir_flag_spec='-L$libdir'
10959
allow_undefined_flag=unsupported
10960
always_export_symbols=no
10961
enable_shared_with_static_runtimes=yes
10962
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10964
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10965
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10966
# If the export-symbols file already is a .def file (1st line
10967
# is EXPORTS), use it as is; otherwise, prepend...
10968
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10969
cp $export_symbols $output_objdir/$soname.def;
10971
echo EXPORTS > $output_objdir/$soname.def;
10972
cat $export_symbols >> $output_objdir/$soname.def;
10974
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10982
hardcode_shlibpath_var=no
10983
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10984
export_dynamic_flag_spec='${wl}-E'
10985
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10986
# Instead, shared libraries are loaded at an image base (0x10000000 by
10987
# default) and relocated if they conflict, which is a slow very memory
10988
# consuming and fragmenting process. To avoid this, we pick a random,
10989
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10990
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10991
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10992
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'
10995
linux* | k*bsd*-gnu)
10996
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10998
case $cc_basename,$host_cpu in
10999
pgcc*) # Portland Group C compiler
11000
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'
11001
tmp_addflag=' $pic_flag'
11003
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11004
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'
11005
tmp_addflag=' $pic_flag -Mnomain' ;;
11006
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11007
tmp_addflag=' -i_dynamic' ;;
11008
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11009
tmp_addflag=' -i_dynamic -nofor_main' ;;
11010
ifc* | ifort*) # Intel Fortran compiler
11011
tmp_addflag=' -nofor_main' ;;
11013
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11015
if test $supports_anon_versioning = yes; then
11016
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11017
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11018
$echo "local: *; };" >> $output_objdir/$libname.ver~
11019
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11021
link_all_deplibs=no
11027
netbsd* | netbsdelf*-gnu)
11028
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11029
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11032
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11033
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11038
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11042
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11043
*** create shared libraries on Solaris systems. Therefore, libtool
11044
*** is disabling shared libraries support. We urge you to upgrade GNU
11045
*** binutils to release 2.9.1 or newer. Another option is to modify
11046
*** your PATH or compiler configuration so that the native linker is
11047
*** used, and then restart.
11050
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11051
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11052
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11058
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11059
case `$LD -v 2>&1` in
11060
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11064
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11065
*** reliably create shared libraries on SCO systems. Therefore, libtool
11066
*** is disabling shared libraries support. We urge you to upgrade GNU
11067
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11068
*** your PATH or compiler configuration so that the native linker is
11069
*** used, and then restart.
11074
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11075
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11076
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11077
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11086
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11088
hardcode_direct=yes
11089
hardcode_shlibpath_var=no
11093
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11094
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11095
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11102
if test "$ld_shlibs" = no; then
11104
hardcode_libdir_flag_spec=
11105
export_dynamic_flag_spec=
11106
whole_archive_flag_spec=
11109
# PORTME fill in a description of your system's linker (not GNU ld)
11112
allow_undefined_flag=unsupported
11113
always_export_symbols=yes
11114
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'
11115
# Note: this linker hardcodes the directories in LIBPATH if there
11116
# are no directories specified by -L.
11117
hardcode_minus_L=yes
11118
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11119
# Neither direct hardcoding nor static linking is supported with a
11121
hardcode_direct=unsupported
11126
if test "$host_cpu" = ia64; then
11127
# On IA64, the linker does run time linking by default, so we don't
11128
# have to do anything special.
11129
aix_use_runtimelinking=no
11130
exp_sym_flag='-Bexport'
11133
# If we're using GNU nm, then we don't want the "-C" option.
11134
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11135
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11136
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'
11138
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'
11140
aix_use_runtimelinking=no
11142
# Test if we are trying to use run time linking or normal
11143
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11144
# need to do runtime linking.
11145
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11146
for ld_flag in $LDFLAGS; do
11147
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11148
aix_use_runtimelinking=yes
11155
exp_sym_flag='-bexport'
11156
no_entry_flag='-bnoentry'
11159
# When large executables or shared objects are built, AIX ld can
11160
# have problems creating the table of contents. If linking a library
11161
# or program results in "error TOC overflow" add -mminimal-toc to
11162
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11163
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11166
hardcode_direct=yes
11167
hardcode_libdir_separator=':'
11168
link_all_deplibs=yes
11170
if test "$GCC" = yes; then
11171
case $host_os in aix4.[012]|aix4.[012].*)
11172
# We only want to do this on AIX 4.2 and lower, the check
11173
# below for broken collect2 doesn't work under 4.3+
11174
collect2name=`${CC} -print-prog-name=collect2`
11175
if test -f "$collect2name" && \
11176
strings "$collect2name" | grep resolve_lib_name >/dev/null
11178
# We have reworked collect2
11179
hardcode_direct=yes
11181
# We have old collect2
11182
hardcode_direct=unsupported
11183
# It fails to find uninstalled libraries when the uninstalled
11184
# path is not listed in the libpath. Setting hardcode_minus_L
11185
# to unsupported forces relinking
11186
hardcode_minus_L=yes
11187
hardcode_libdir_flag_spec='-L$libdir'
11188
hardcode_libdir_separator=
11192
shared_flag='-shared'
11193
if test "$aix_use_runtimelinking" = yes; then
11194
shared_flag="$shared_flag "'${wl}-G'
11198
if test "$host_cpu" = ia64; then
11199
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11200
# chokes on -Wl,-G. The following line is correct:
11203
if test "$aix_use_runtimelinking" = yes; then
11204
shared_flag='${wl}-G'
11206
shared_flag='${wl}-bM:SRE'
11211
# It seems that -bexpall does not export symbols beginning with
11212
# underscore (_), so it is better to generate a list of symbols to export.
11213
always_export_symbols=yes
11214
if test "$aix_use_runtimelinking" = yes; then
11215
# Warning - without using the other runtime loading flags (-brtl),
11216
# -berok will link without error, but may produce a broken library.
11217
allow_undefined_flag='-berok'
11218
# Determine the default libpath from the value encoded in an empty executable.
11219
cat >conftest.$ac_ext <<_ACEOF
11222
cat confdefs.h >>conftest.$ac_ext
11223
cat >>conftest.$ac_ext <<_ACEOF
11224
/* end confdefs.h. */
11234
rm -f conftest.$ac_objext conftest$ac_exeext
11235
if { (ac_try="$ac_link"
11236
case "(($ac_try" in
11237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238
*) ac_try_echo=$ac_try;;
11240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241
(eval "$ac_link") 2>conftest.er1
11243
grep -v '^ *+' conftest.er1 >conftest.err
11245
cat conftest.err >&5
11246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247
(exit $ac_status); } && {
11248
test -z "$ac_c_werror_flag" ||
11249
test ! -s conftest.err
11250
} && test -s conftest$ac_exeext &&
11251
$as_test_x conftest$ac_exeext; then
11253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11255
# Check for a 64-bit object if we didn't find anything.
11256
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11259
echo "$as_me: failed program was:" >&5
11260
sed 's/^/| /' conftest.$ac_ext >&5
11265
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266
conftest$ac_exeext conftest.$ac_ext
11267
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11269
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11270
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"
11272
if test "$host_cpu" = ia64; then
11273
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11274
allow_undefined_flag="-z nodefs"
11275
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"
11277
# Determine the default libpath from the value encoded in an empty executable.
11278
cat >conftest.$ac_ext <<_ACEOF
11281
cat confdefs.h >>conftest.$ac_ext
11282
cat >>conftest.$ac_ext <<_ACEOF
11283
/* end confdefs.h. */
11293
rm -f conftest.$ac_objext conftest$ac_exeext
11294
if { (ac_try="$ac_link"
11295
case "(($ac_try" in
11296
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297
*) ac_try_echo=$ac_try;;
11299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300
(eval "$ac_link") 2>conftest.er1
11302
grep -v '^ *+' conftest.er1 >conftest.err
11304
cat conftest.err >&5
11305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306
(exit $ac_status); } && {
11307
test -z "$ac_c_werror_flag" ||
11308
test ! -s conftest.err
11309
} && test -s conftest$ac_exeext &&
11310
$as_test_x conftest$ac_exeext; then
11312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11314
# Check for a 64-bit object if we didn't find anything.
11315
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11318
echo "$as_me: failed program was:" >&5
11319
sed 's/^/| /' conftest.$ac_ext >&5
11324
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11325
conftest$ac_exeext conftest.$ac_ext
11326
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11328
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11329
# Warning - without using the other run time loading flags,
11330
# -berok will link without error, but may produce a broken library.
11331
no_undefined_flag=' ${wl}-bernotok'
11332
allow_undefined_flag=' ${wl}-berok'
11333
# Exported symbols can be pulled into shared objects from archives
11334
whole_archive_flag_spec='$convenience'
11335
archive_cmds_need_lc=yes
11336
# This is similar to how AIX traditionally builds its shared libraries.
11337
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'
11343
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)'
11344
hardcode_libdir_flag_spec='-L$libdir'
11345
hardcode_minus_L=yes
11346
# see comment about different semantics on the GNU ld section
11351
export_dynamic_flag_spec=-rdynamic
11354
cygwin* | mingw* | pw32*)
11355
# When not using gcc, we currently assume that we are using
11356
# Microsoft Visual C++.
11357
# hardcode_libdir_flag_spec is actually meaningless, as there is
11358
# no search path for DLLs.
11359
hardcode_libdir_flag_spec=' '
11360
allow_undefined_flag=unsupported
11361
# Tell ltmain to make .lib files, not .a files.
11363
# Tell ltmain to make .dll files, not .so files.
11365
# FIXME: Setting linknames here is a bad hack.
11366
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11367
# The linker will automatically build a .lib file if we build a DLL.
11368
old_archive_From_new_cmds='true'
11369
# FIXME: Should let the user specify the lib program.
11370
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11371
fix_srcfile_path='`cygpath -w "$srcfile"`'
11372
enable_shared_with_static_runtimes=yes
11375
darwin* | rhapsody*)
11377
rhapsody* | darwin1.[012])
11378
allow_undefined_flag='${wl}-undefined ${wl}suppress'
11381
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11382
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11384
case ${MACOSX_DEPLOYMENT_TARGET} in
11386
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11389
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11395
archive_cmds_need_lc=no
11397
hardcode_automatic=yes
11398
hardcode_shlibpath_var=unsupported
11399
whole_archive_flag_spec=''
11400
link_all_deplibs=yes
11401
if test "$GCC" = yes ; then
11402
output_verbose_link_cmd='echo'
11403
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11404
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11405
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11406
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11407
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}'
11409
case $cc_basename in
11411
output_verbose_link_cmd='echo'
11412
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11413
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11414
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11415
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11416
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}'
11426
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11427
hardcode_libdir_flag_spec='-L$libdir'
11428
hardcode_shlibpath_var=no
11435
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11436
# support. Future versions do this automatically, but an explicit c++rt0.o
11437
# does not break anything, and helps significantly (at the cost of a little
11440
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11441
hardcode_libdir_flag_spec='-R$libdir'
11442
hardcode_direct=yes
11443
hardcode_shlibpath_var=no
11446
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
11448
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11449
hardcode_direct=yes
11450
hardcode_minus_L=yes
11451
hardcode_shlibpath_var=no
11454
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11455
freebsd* | dragonfly*)
11456
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11457
hardcode_libdir_flag_spec='-R$libdir'
11458
hardcode_direct=yes
11459
hardcode_shlibpath_var=no
11463
if test "$GCC" = yes; then
11464
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'
11466
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'
11468
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11469
hardcode_libdir_separator=:
11470
hardcode_direct=yes
11472
# hardcode_minus_L: Not really in the search PATH,
11473
# but as the default location of the library.
11474
hardcode_minus_L=yes
11475
export_dynamic_flag_spec='${wl}-E'
11479
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11480
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11482
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11484
if test "$with_gnu_ld" = no; then
11485
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11486
hardcode_libdir_separator=:
11488
hardcode_direct=yes
11489
export_dynamic_flag_spec='${wl}-E'
11491
# hardcode_minus_L: Not really in the search PATH,
11492
# but as the default location of the library.
11493
hardcode_minus_L=yes
11498
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11501
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11504
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11507
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11513
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11516
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11519
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11523
if test "$with_gnu_ld" = no; then
11524
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11525
hardcode_libdir_separator=:
11529
hardcode_libdir_flag_spec_ld='+b $libdir'
11531
hardcode_shlibpath_var=no
11534
hardcode_direct=yes
11535
export_dynamic_flag_spec='${wl}-E'
11537
# hardcode_minus_L: Not really in the search PATH,
11538
# but as the default location of the library.
11539
hardcode_minus_L=yes
11545
irix5* | irix6* | nonstopux*)
11546
if test "$GCC" = yes; then
11547
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'
11549
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'
11550
hardcode_libdir_flag_spec_ld='-rpath $libdir'
11552
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11553
hardcode_libdir_separator=:
11554
link_all_deplibs=yes
11557
netbsd* | netbsdelf*-gnu)
11558
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11559
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11561
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11563
hardcode_libdir_flag_spec='-R$libdir'
11564
hardcode_direct=yes
11565
hardcode_shlibpath_var=no
11569
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570
hardcode_direct=yes
11571
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11572
hardcode_libdir_separator=:
11573
hardcode_shlibpath_var=no
11577
hardcode_direct=yes
11578
hardcode_shlibpath_var=no
11579
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11580
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11581
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11582
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11583
export_dynamic_flag_spec='${wl}-E'
11586
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11587
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11588
hardcode_libdir_flag_spec='-R$libdir'
11591
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11592
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11599
hardcode_libdir_flag_spec='-L$libdir'
11600
hardcode_minus_L=yes
11601
allow_undefined_flag=unsupported
11602
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'
11603
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11607
if test "$GCC" = yes; then
11608
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11609
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'
11611
allow_undefined_flag=' -expect_unresolved \*'
11612
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'
11614
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11615
hardcode_libdir_separator=:
11618
osf4* | osf5*) # as osf3* with the addition of -msym flag
11619
if test "$GCC" = yes; then
11620
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11621
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'
11622
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11624
allow_undefined_flag=' -expect_unresolved \*'
11625
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'
11626
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11627
$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'
11629
# Both c and cxx compiler support -rpath directly
11630
hardcode_libdir_flag_spec='-rpath $libdir'
11632
hardcode_libdir_separator=:
11636
no_undefined_flag=' -z text'
11637
if test "$GCC" = yes; then
11639
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11640
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11641
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11644
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11645
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11646
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11648
hardcode_libdir_flag_spec='-R$libdir'
11649
hardcode_shlibpath_var=no
11651
solaris2.[0-5] | solaris2.[0-5].*) ;;
11653
# The compiler driver will combine linker options so we
11654
# cannot just pass the convience library names through
11655
# without $wl, iff we do not link with $LD.
11656
# Luckily, gcc supports the same syntax we need for Sun Studio.
11657
# Supported since Solaris 2.6 (maybe 2.5.1?)
11660
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11662
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
11665
link_all_deplibs=yes
11669
if test "x$host_vendor" = xsequent; then
11670
# Use $CC to link under sequent, because it throws in some extra .o
11671
# files that make .init and .fini sections work.
11672
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11674
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11676
hardcode_libdir_flag_spec='-L$libdir'
11677
hardcode_direct=yes
11678
hardcode_minus_L=yes
11679
hardcode_shlibpath_var=no
11683
case $host_vendor in
11685
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11686
hardcode_direct=yes # is this really true???
11689
## LD is ld it makes a PLAMLIB
11690
## CC just makes a GrossModule.
11691
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11692
reload_cmds='$CC -r -o $output$reload_objs'
11696
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11697
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11700
runpath_var='LD_RUN_PATH'
11701
hardcode_shlibpath_var=no
11705
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11706
hardcode_shlibpath_var=no
11707
export_dynamic_flag_spec='-Bexport'
11711
if test -d /usr/nec; then
11712
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11713
hardcode_shlibpath_var=no
11714
runpath_var=LD_RUN_PATH
11715
hardcode_runpath_var=yes
11720
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
11721
no_undefined_flag='${wl}-z,text'
11722
archive_cmds_need_lc=no
11723
hardcode_shlibpath_var=no
11724
runpath_var='LD_RUN_PATH'
11726
if test "$GCC" = yes; then
11727
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11728
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11731
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735
sysv5* | sco3.2v5* | sco5v6*)
11736
# Note: We can NOT use -z defs as we might desire, because we do not
11737
# link with -lc, and that would cause any symbols used from libc to
11738
# always be unresolved, which means just about no library would
11739
# ever link correctly. If we're not using GNU ld we use -z text
11740
# though, which does catch some bad symbols but isn't as heavy-handed
11742
no_undefined_flag='${wl}-z,text'
11743
allow_undefined_flag='${wl}-z,nodefs'
11744
archive_cmds_need_lc=no
11745
hardcode_shlibpath_var=no
11746
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11747
hardcode_libdir_separator=':'
11748
link_all_deplibs=yes
11749
export_dynamic_flag_spec='${wl}-Bexport'
11750
runpath_var='LD_RUN_PATH'
11752
if test "$GCC" = yes; then
11753
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11754
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11756
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11757
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11762
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11763
hardcode_libdir_flag_spec='-L$libdir'
11764
hardcode_shlibpath_var=no
11773
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11774
echo "${ECHO_T}$ld_shlibs" >&6; }
11775
test "$ld_shlibs" = no && can_build_shared=no
11778
# Do we need to explicitly link libc?
11780
case "x$archive_cmds_need_lc" in
11782
# Assume -lc should be added
11783
archive_cmds_need_lc=yes
11785
if test "$enable_shared" = yes && test "$GCC" = yes; then
11786
case $archive_cmds in
11788
# FIXME: we may have to deal with multi-command sequences.
11791
# Test whether the compiler implicitly links with -lc since on some
11792
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11793
# to ld, don't add -lc before -lgcc.
11794
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11795
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11797
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11799
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800
(eval $ac_compile) 2>&5
11802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803
(exit $ac_status); } 2>conftest.err; then
11806
libobjs=conftest.$ac_objext
11808
wl=$lt_prog_compiler_wl
11809
pic_flag=$lt_prog_compiler_pic
11815
lt_save_allow_undefined_flag=$allow_undefined_flag
11816
allow_undefined_flag=
11817
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11818
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821
(exit $ac_status); }
11823
archive_cmds_need_lc=no
11825
archive_cmds_need_lc=yes
11827
allow_undefined_flag=$lt_save_allow_undefined_flag
11829
cat conftest.err 1>&5
11832
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11833
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11840
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11841
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11842
library_names_spec=
11843
libname_spec='lib$name'
11847
postuninstall_cmds=
11851
shlibpath_overrides_runpath=unknown
11853
dynamic_linker="$host_os ld.so"
11854
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11855
if test "$GCC" = yes; then
11856
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11857
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11858
# if the path contains ";" then we assume it to be the separator
11859
# otherwise default to the standard path separator (i.e. ":") - it is
11860
# assumed that no part of a normal pathname contains ";" but that should
11861
# okay in the real world where ";" in dirpaths is itself problematic.
11862
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11864
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11867
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11869
need_lib_prefix=unknown
11870
hardcode_into_libs=no
11872
# when you set need_version to no, make sure it does not cause -set_version
11873
# flags to be left without arguments
11874
need_version=unknown
11879
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11880
shlibpath_var=LIBPATH
11882
# AIX 3 has no versioning support, so we append a major version to the name.
11883
soname_spec='${libname}${release}${shared_ext}$major'
11890
hardcode_into_libs=yes
11891
if test "$host_cpu" = ia64; then
11892
# AIX 5 supports IA64
11893
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11894
shlibpath_var=LD_LIBRARY_PATH
11896
# With GCC up to 2.95.x, collect2 would create an import file
11897
# for dependence libraries. The import file would start with
11898
# the line `#! .'. This would cause the generated library to
11899
# depend on `.', always an invalid library. This was fixed in
11900
# development snapshots of GCC prior to 3.0.
11902
aix4 | aix4.[01] | aix4.[01].*)
11903
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11905
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11908
can_build_shared=no
11912
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11913
# soname into executable. Probably we can add versioning support to
11914
# collect2, so additional links can be useful in future.
11915
if test "$aix_use_runtimelinking" = yes; then
11916
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11917
# instead of lib<name>.a to let people know that these are not
11918
# typical AIX shared libraries.
11919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921
# We preserve .a as extension for shared libraries through AIX4.2
11922
# and later when we are not doing run time linking.
11923
library_names_spec='${libname}${release}.a $libname.a'
11924
soname_spec='${libname}${release}${shared_ext}$major'
11926
shlibpath_var=LIBPATH
11931
library_names_spec='$libname.ixlibrary $libname.a'
11932
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11933
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'
11937
library_names_spec='${libname}${shared_ext}'
11938
dynamic_linker="$host_os ld.so"
11939
shlibpath_var=LIBRARY_PATH
11945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946
soname_spec='${libname}${release}${shared_ext}$major'
11947
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11948
shlibpath_var=LD_LIBRARY_PATH
11949
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11950
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11951
# the default ld.so.conf also contains /usr/contrib/lib and
11952
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11953
# libtool to hard-code these into programs
11956
cygwin* | mingw* | pw32*)
11957
version_type=windows
11962
case $GCC,$host_os in
11963
yes,cygwin* | yes,mingw* | yes,pw32*)
11964
library_names_spec='$libname.dll.a'
11965
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11966
postinstall_cmds='base_file=`basename \${file}`~
11967
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11968
dldir=$destdir/`dirname \$dlpath`~
11969
test -d \$dldir || mkdir -p \$dldir~
11970
$install_prog $dir/$dlname \$dldir/$dlname~
11971
chmod a+x \$dldir/$dlname'
11972
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11973
dlpath=$dir/\$dldll~
11975
shlibpath_overrides_runpath=yes
11979
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11980
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11981
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11984
# MinGW DLLs use traditional 'lib' prefix
11985
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11986
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11987
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11988
# It is most probably a Windows format PATH printed by
11989
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11990
# path with ; separators, and with drive letters. We can handle the
11991
# drive letters (cygwin fileutils understands them), so leave them,
11992
# especially as we might pass files found there to a mingw objdump,
11993
# which wouldn't understand a cygwinified path. Ahh.
11994
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11996
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12000
# pw32 DLLs use 'pw' prefix rather than 'lib'
12001
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12007
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12010
dynamic_linker='Win32 ld.exe'
12011
# FIXME: first we should search . and the directory the executable is in
12015
darwin* | rhapsody*)
12016
dynamic_linker="$host_os dyld"
12017
version_type=darwin
12020
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12021
soname_spec='${libname}${release}${major}$shared_ext'
12022
shlibpath_overrides_runpath=yes
12023
shlibpath_var=DYLD_LIBRARY_PATH
12024
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12025
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12026
if test "$GCC" = yes; then
12027
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12029
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12031
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12039
soname_spec='${libname}${release}${shared_ext}$major'
12040
shlibpath_var=LD_LIBRARY_PATH
12047
freebsd* | dragonfly*)
12048
# DragonFly does not have aout. When/if they implement a new
12049
# versioning mechanism, adjust this.
12050
if test -x /usr/bin/objformat; then
12051
objformat=`/usr/bin/objformat`
12054
freebsd[123]*) objformat=aout ;;
12055
*) objformat=elf ;;
12058
version_type=freebsd-$objformat
12059
case $version_type in
12061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12066
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12070
shlibpath_var=LD_LIBRARY_PATH
12073
shlibpath_overrides_runpath=yes
12075
freebsd3.[01]* | freebsdelf3.[01]*)
12076
shlibpath_overrides_runpath=yes
12077
hardcode_into_libs=yes
12079
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12080
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12081
shlibpath_overrides_runpath=no
12082
hardcode_into_libs=yes
12084
freebsd*) # from 4.6 on
12085
shlibpath_overrides_runpath=yes
12086
hardcode_into_libs=yes
12095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12096
soname_spec='${libname}${release}${shared_ext}$major'
12097
shlibpath_var=LD_LIBRARY_PATH
12098
hardcode_into_libs=yes
12101
hpux9* | hpux10* | hpux11*)
12102
# Give a soname corresponding to the major version so that dld.sl refuses to
12103
# link against other versions.
12110
hardcode_into_libs=yes
12111
dynamic_linker="$host_os dld.so"
12112
shlibpath_var=LD_LIBRARY_PATH
12113
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12114
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115
soname_spec='${libname}${release}${shared_ext}$major'
12116
if test "X$HPUX_IA64_MODE" = X32; then
12117
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12119
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12121
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12125
hardcode_into_libs=yes
12126
dynamic_linker="$host_os dld.sl"
12127
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12128
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12129
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130
soname_spec='${libname}${release}${shared_ext}$major'
12131
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12132
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12136
dynamic_linker="$host_os dld.sl"
12137
shlibpath_var=SHLIB_PATH
12138
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140
soname_spec='${libname}${release}${shared_ext}$major'
12143
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12144
postinstall_cmds='chmod 555 $lib'
12151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12152
soname_spec='${libname}${release}${shared_ext}$major'
12153
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12154
shlibpath_var=LD_LIBRARY_PATH
12155
shlibpath_overrides_runpath=no
12156
hardcode_into_libs=yes
12159
irix5* | irix6* | nonstopux*)
12161
nonstopux*) version_type=nonstopux ;;
12163
if test "$lt_cv_prog_gnu_ld" = yes; then
12171
soname_spec='${libname}${release}${shared_ext}$major'
12172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12174
irix5* | nonstopux*)
12175
libsuff= shlibsuff=
12178
case $LD in # libtool.m4 will add one of these switches to LD
12179
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12180
libsuff= shlibsuff= libmagic=32-bit;;
12181
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12182
libsuff=32 shlibsuff=N32 libmagic=N32;;
12183
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12184
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12185
*) libsuff= shlibsuff= libmagic=never-match;;
12189
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12190
shlibpath_overrides_runpath=no
12191
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12192
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12193
hardcode_into_libs=yes
12196
# No shared lib support for Linux oldld, aout, or coff.
12197
linux*oldld* | linux*aout* | linux*coff*)
12201
# This must be Linux ELF.
12202
linux* | k*bsd*-gnu)
12206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12207
soname_spec='${libname}${release}${shared_ext}$major'
12208
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12209
shlibpath_var=LD_LIBRARY_PATH
12210
shlibpath_overrides_runpath=no
12211
# This implies no fast_install, which is unacceptable.
12212
# Some rework will be needed to allow for fast_install
12213
# before this can be enabled.
12214
hardcode_into_libs=yes
12216
# Append ld.so.conf contents to the search path
12217
if test -f /etc/ld.so.conf; then
12218
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12219
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12222
# We used to test for /lib/ld.so.1 and disable shared libraries on
12223
# powerpc, because MkLinux only supported shared libraries with the
12224
# GNU dynamic linker. Since this was broken with cross compilers,
12225
# most powerpc-linux boxes support dynamic linking these days and
12226
# people can always --disable-shared, the test was removed, and we
12227
# assume the GNU/Linux dynamic linker is in use.
12228
dynamic_linker='GNU/Linux ld.so'
12235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12236
soname_spec='${libname}${release}${shared_ext}$major'
12237
shlibpath_var=LD_LIBRARY_PATH
12238
shlibpath_overrides_runpath=no
12239
hardcode_into_libs=yes
12240
dynamic_linker='NetBSD ld.elf_so'
12247
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12249
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12250
dynamic_linker='NetBSD (a.out) ld.so'
12252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12253
soname_spec='${libname}${release}${shared_ext}$major'
12254
dynamic_linker='NetBSD ld.elf_so'
12256
shlibpath_var=LD_LIBRARY_PATH
12257
shlibpath_overrides_runpath=yes
12258
hardcode_into_libs=yes
12263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264
shlibpath_var=LD_LIBRARY_PATH
12265
shlibpath_overrides_runpath=yes
12272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273
soname_spec='${libname}${release}${shared_ext}$major'
12274
shlibpath_var=LD_LIBRARY_PATH
12275
shlibpath_overrides_runpath=yes
12280
sys_lib_dlsearch_path_spec="/usr/lib"
12282
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12284
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12285
*) need_version=no ;;
12287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12288
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12289
shlibpath_var=LD_LIBRARY_PATH
12290
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12292
openbsd2.[89] | openbsd2.[89].*)
12293
shlibpath_overrides_runpath=no
12296
shlibpath_overrides_runpath=yes
12300
shlibpath_overrides_runpath=yes
12305
libname_spec='$name'
12308
library_names_spec='$libname${shared_ext} $libname.a'
12309
dynamic_linker='OS/2 ld.exe'
12310
shlibpath_var=LIBPATH
12313
osf3* | osf4* | osf5*)
12317
soname_spec='${libname}${release}${shared_ext}$major'
12318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319
shlibpath_var=LD_LIBRARY_PATH
12320
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12321
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329
soname_spec='${libname}${release}${shared_ext}$major'
12330
shlibpath_var=LD_LIBRARY_PATH
12331
shlibpath_overrides_runpath=yes
12332
hardcode_into_libs=yes
12333
# ldd complains unless libraries are executable
12334
postinstall_cmds='chmod +x $lib'
12339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12340
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12341
shlibpath_var=LD_LIBRARY_PATH
12342
shlibpath_overrides_runpath=yes
12343
if test "$with_gnu_ld" = yes; then
12351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352
soname_spec='${libname}${release}${shared_ext}$major'
12353
shlibpath_var=LD_LIBRARY_PATH
12354
case $host_vendor in
12356
shlibpath_overrides_runpath=no
12358
export_dynamic_flag_spec='${wl}-Blargedynsym'
12359
runpath_var=LD_RUN_PATH
12367
shlibpath_overrides_runpath=no
12368
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12374
if test -d /usr/nec ;then
12376
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12377
soname_spec='$libname${shared_ext}.$major'
12378
shlibpath_var=LD_LIBRARY_PATH
12382
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12383
version_type=freebsd-elf
12386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12387
soname_spec='${libname}${release}${shared_ext}$major'
12388
shlibpath_var=LD_LIBRARY_PATH
12389
hardcode_into_libs=yes
12390
if test "$with_gnu_ld" = yes; then
12391
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12392
shlibpath_overrides_runpath=no
12394
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12395
shlibpath_overrides_runpath=yes
12398
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12402
sys_lib_dlsearch_path_spec='/usr/lib'
12407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12408
soname_spec='${libname}${release}${shared_ext}$major'
12409
shlibpath_var=LD_LIBRARY_PATH
12416
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12417
echo "${ECHO_T}$dynamic_linker" >&6; }
12418
test "$dynamic_linker" = no && can_build_shared=no
12420
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12421
if test "$GCC" = yes; then
12422
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12425
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12426
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12428
if test -n "$hardcode_libdir_flag_spec" || \
12429
test -n "$runpath_var" || \
12430
test "X$hardcode_automatic" = "Xyes" ; then
12432
# We can hardcode non-existant directories.
12433
if test "$hardcode_direct" != no &&
12434
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12435
# have to relink, otherwise we might link with an installed library
12436
# when we should be linking with a yet-to-be-installed one
12437
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12438
test "$hardcode_minus_L" != no; then
12439
# Linking always hardcodes the temporary library directory.
12440
hardcode_action=relink
12442
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12443
hardcode_action=immediate
12446
# We cannot hardcode anything, or else we can only hardcode existing
12448
hardcode_action=unsupported
12450
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
12451
echo "${ECHO_T}$hardcode_action" >&6; }
12453
if test "$hardcode_action" = relink; then
12454
# Fast installation is not supported
12455
enable_fast_install=no
12456
elif test "$shlibpath_overrides_runpath" = yes ||
12457
test "$enable_shared" = no; then
12458
# Fast installation is not necessary
12459
enable_fast_install=needless
12464
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12465
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12466
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12467
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12468
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12469
{ echo "$as_me:$LINENO: result: yes" >&5
12470
echo "${ECHO_T}yes" >&6; }
12472
# FIXME - insert some real tests, host_os isn't really good enough
12475
if test -n "$STRIP" ; then
12476
striplib="$STRIP -x"
12477
{ echo "$as_me:$LINENO: result: yes" >&5
12478
echo "${ECHO_T}yes" >&6; }
12480
{ echo "$as_me:$LINENO: result: no" >&5
12481
echo "${ECHO_T}no" >&6; }
12485
{ echo "$as_me:$LINENO: result: no" >&5
12486
echo "${ECHO_T}no" >&6; }
12491
if test "x$enable_dlopen" != xyes; then
12492
enable_dlopen=unknown
12493
enable_dlopen_self=unknown
12494
enable_dlopen_self_static=unknown
12501
lt_cv_dlopen="load_add_on"
12503
lt_cv_dlopen_self=yes
12507
lt_cv_dlopen="LoadLibrary"
12512
lt_cv_dlopen="dlopen"
12517
# if libdl is installed we need to link against it
12518
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12519
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12520
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12521
echo $ECHO_N "(cached) $ECHO_C" >&6
12523
ac_check_lib_save_LIBS=$LIBS
12525
cat >conftest.$ac_ext <<_ACEOF
12528
cat confdefs.h >>conftest.$ac_ext
12529
cat >>conftest.$ac_ext <<_ACEOF
12530
/* end confdefs.h. */
12532
/* Override any GCC internal prototype to avoid an error.
12533
Use char because int might match the return type of a GCC
12534
builtin and then its argument prototype would still apply. */
12547
rm -f conftest.$ac_objext conftest$ac_exeext
12548
if { (ac_try="$ac_link"
12549
case "(($ac_try" in
12550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551
*) ac_try_echo=$ac_try;;
12553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554
(eval "$ac_link") 2>conftest.er1
12556
grep -v '^ *+' conftest.er1 >conftest.err
12558
cat conftest.err >&5
12559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560
(exit $ac_status); } && {
12561
test -z "$ac_c_werror_flag" ||
12562
test ! -s conftest.err
12563
} && test -s conftest$ac_exeext &&
12564
$as_test_x conftest$ac_exeext; then
12565
ac_cv_lib_dl_dlopen=yes
12567
echo "$as_me: failed program was:" >&5
12568
sed 's/^/| /' conftest.$ac_ext >&5
12570
ac_cv_lib_dl_dlopen=no
12573
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12574
conftest$ac_exeext conftest.$ac_ext
12575
LIBS=$ac_check_lib_save_LIBS
12577
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12578
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12579
if test $ac_cv_lib_dl_dlopen = yes; then
12580
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12583
lt_cv_dlopen="dyld"
12585
lt_cv_dlopen_self=yes
12592
{ echo "$as_me:$LINENO: checking for shl_load" >&5
12593
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12594
if test "${ac_cv_func_shl_load+set}" = set; then
12595
echo $ECHO_N "(cached) $ECHO_C" >&6
12597
cat >conftest.$ac_ext <<_ACEOF
12600
cat confdefs.h >>conftest.$ac_ext
12601
cat >>conftest.$ac_ext <<_ACEOF
12602
/* end confdefs.h. */
12603
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12604
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12605
#define shl_load innocuous_shl_load
12607
/* System header to define __stub macros and hopefully few prototypes,
12608
which can conflict with char shl_load (); below.
12609
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12610
<limits.h> exists even on freestanding compilers. */
12613
# include <limits.h>
12615
# include <assert.h>
12620
/* Override any GCC internal prototype to avoid an error.
12621
Use char because int might match the return type of a GCC
12622
builtin and then its argument prototype would still apply. */
12627
/* The GNU C library defines this for functions which it implements
12628
to always fail with ENOSYS. Some functions are actually named
12629
something starting with __ and the normal name is an alias. */
12630
#if defined __stub_shl_load || defined __stub___shl_load
12637
return shl_load ();
12642
rm -f conftest.$ac_objext conftest$ac_exeext
12643
if { (ac_try="$ac_link"
12644
case "(($ac_try" in
12645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646
*) ac_try_echo=$ac_try;;
12648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649
(eval "$ac_link") 2>conftest.er1
12651
grep -v '^ *+' conftest.er1 >conftest.err
12653
cat conftest.err >&5
12654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655
(exit $ac_status); } && {
12656
test -z "$ac_c_werror_flag" ||
12657
test ! -s conftest.err
12658
} && test -s conftest$ac_exeext &&
12659
$as_test_x conftest$ac_exeext; then
12660
ac_cv_func_shl_load=yes
12662
echo "$as_me: failed program was:" >&5
12663
sed 's/^/| /' conftest.$ac_ext >&5
12665
ac_cv_func_shl_load=no
12668
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12669
conftest$ac_exeext conftest.$ac_ext
12671
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12672
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12673
if test $ac_cv_func_shl_load = yes; then
12674
lt_cv_dlopen="shl_load"
12676
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12677
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12678
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12679
echo $ECHO_N "(cached) $ECHO_C" >&6
12681
ac_check_lib_save_LIBS=$LIBS
12683
cat >conftest.$ac_ext <<_ACEOF
12686
cat confdefs.h >>conftest.$ac_ext
12687
cat >>conftest.$ac_ext <<_ACEOF
12688
/* end confdefs.h. */
12690
/* Override any GCC internal prototype to avoid an error.
12691
Use char because int might match the return type of a GCC
12692
builtin and then its argument prototype would still apply. */
12700
return shl_load ();
12705
rm -f conftest.$ac_objext conftest$ac_exeext
12706
if { (ac_try="$ac_link"
12707
case "(($ac_try" in
12708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709
*) ac_try_echo=$ac_try;;
12711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712
(eval "$ac_link") 2>conftest.er1
12714
grep -v '^ *+' conftest.er1 >conftest.err
12716
cat conftest.err >&5
12717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718
(exit $ac_status); } && {
12719
test -z "$ac_c_werror_flag" ||
12720
test ! -s conftest.err
12721
} && test -s conftest$ac_exeext &&
12722
$as_test_x conftest$ac_exeext; then
12723
ac_cv_lib_dld_shl_load=yes
12725
echo "$as_me: failed program was:" >&5
12726
sed 's/^/| /' conftest.$ac_ext >&5
12728
ac_cv_lib_dld_shl_load=no
12731
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12732
conftest$ac_exeext conftest.$ac_ext
12733
LIBS=$ac_check_lib_save_LIBS
12735
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12736
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12737
if test $ac_cv_lib_dld_shl_load = yes; then
12738
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12740
{ echo "$as_me:$LINENO: checking for dlopen" >&5
12741
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12742
if test "${ac_cv_func_dlopen+set}" = set; then
12743
echo $ECHO_N "(cached) $ECHO_C" >&6
12745
cat >conftest.$ac_ext <<_ACEOF
12748
cat confdefs.h >>conftest.$ac_ext
12749
cat >>conftest.$ac_ext <<_ACEOF
12750
/* end confdefs.h. */
12751
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12752
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12753
#define dlopen innocuous_dlopen
12755
/* System header to define __stub macros and hopefully few prototypes,
12756
which can conflict with char dlopen (); below.
12757
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12758
<limits.h> exists even on freestanding compilers. */
12761
# include <limits.h>
12763
# include <assert.h>
12768
/* Override any GCC internal prototype to avoid an error.
12769
Use char because int might match the return type of a GCC
12770
builtin and then its argument prototype would still apply. */
12775
/* The GNU C library defines this for functions which it implements
12776
to always fail with ENOSYS. Some functions are actually named
12777
something starting with __ and the normal name is an alias. */
12778
#if defined __stub_dlopen || defined __stub___dlopen
12790
rm -f conftest.$ac_objext conftest$ac_exeext
12791
if { (ac_try="$ac_link"
12792
case "(($ac_try" in
12793
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794
*) ac_try_echo=$ac_try;;
12796
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797
(eval "$ac_link") 2>conftest.er1
12799
grep -v '^ *+' conftest.er1 >conftest.err
12801
cat conftest.err >&5
12802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803
(exit $ac_status); } && {
12804
test -z "$ac_c_werror_flag" ||
12805
test ! -s conftest.err
12806
} && test -s conftest$ac_exeext &&
12807
$as_test_x conftest$ac_exeext; then
12808
ac_cv_func_dlopen=yes
12810
echo "$as_me: failed program was:" >&5
12811
sed 's/^/| /' conftest.$ac_ext >&5
12813
ac_cv_func_dlopen=no
12816
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12817
conftest$ac_exeext conftest.$ac_ext
12819
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12820
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12821
if test $ac_cv_func_dlopen = yes; then
12822
lt_cv_dlopen="dlopen"
12824
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12825
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12826
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12827
echo $ECHO_N "(cached) $ECHO_C" >&6
12829
ac_check_lib_save_LIBS=$LIBS
12831
cat >conftest.$ac_ext <<_ACEOF
12834
cat confdefs.h >>conftest.$ac_ext
12835
cat >>conftest.$ac_ext <<_ACEOF
12836
/* end confdefs.h. */
12838
/* Override any GCC internal prototype to avoid an error.
12839
Use char because int might match the return type of a GCC
12840
builtin and then its argument prototype would still apply. */
12853
rm -f conftest.$ac_objext conftest$ac_exeext
12854
if { (ac_try="$ac_link"
12855
case "(($ac_try" in
12856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857
*) ac_try_echo=$ac_try;;
12859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860
(eval "$ac_link") 2>conftest.er1
12862
grep -v '^ *+' conftest.er1 >conftest.err
12864
cat conftest.err >&5
12865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866
(exit $ac_status); } && {
12867
test -z "$ac_c_werror_flag" ||
12868
test ! -s conftest.err
12869
} && test -s conftest$ac_exeext &&
12870
$as_test_x conftest$ac_exeext; then
12871
ac_cv_lib_dl_dlopen=yes
12873
echo "$as_me: failed program was:" >&5
12874
sed 's/^/| /' conftest.$ac_ext >&5
12876
ac_cv_lib_dl_dlopen=no
12879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12880
conftest$ac_exeext conftest.$ac_ext
12881
LIBS=$ac_check_lib_save_LIBS
12883
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12884
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12885
if test $ac_cv_lib_dl_dlopen = yes; then
12886
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12888
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12889
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12890
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12891
echo $ECHO_N "(cached) $ECHO_C" >&6
12893
ac_check_lib_save_LIBS=$LIBS
12894
LIBS="-lsvld $LIBS"
12895
cat >conftest.$ac_ext <<_ACEOF
12898
cat confdefs.h >>conftest.$ac_ext
12899
cat >>conftest.$ac_ext <<_ACEOF
12900
/* end confdefs.h. */
12902
/* Override any GCC internal prototype to avoid an error.
12903
Use char because int might match the return type of a GCC
12904
builtin and then its argument prototype would still apply. */
12917
rm -f conftest.$ac_objext conftest$ac_exeext
12918
if { (ac_try="$ac_link"
12919
case "(($ac_try" in
12920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921
*) ac_try_echo=$ac_try;;
12923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924
(eval "$ac_link") 2>conftest.er1
12926
grep -v '^ *+' conftest.er1 >conftest.err
12928
cat conftest.err >&5
12929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930
(exit $ac_status); } && {
12931
test -z "$ac_c_werror_flag" ||
12932
test ! -s conftest.err
12933
} && test -s conftest$ac_exeext &&
12934
$as_test_x conftest$ac_exeext; then
12935
ac_cv_lib_svld_dlopen=yes
12937
echo "$as_me: failed program was:" >&5
12938
sed 's/^/| /' conftest.$ac_ext >&5
12940
ac_cv_lib_svld_dlopen=no
12943
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12944
conftest$ac_exeext conftest.$ac_ext
12945
LIBS=$ac_check_lib_save_LIBS
12947
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12948
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12949
if test $ac_cv_lib_svld_dlopen = yes; then
12950
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12952
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12953
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12954
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12955
echo $ECHO_N "(cached) $ECHO_C" >&6
12957
ac_check_lib_save_LIBS=$LIBS
12959
cat >conftest.$ac_ext <<_ACEOF
12962
cat confdefs.h >>conftest.$ac_ext
12963
cat >>conftest.$ac_ext <<_ACEOF
12964
/* end confdefs.h. */
12966
/* Override any GCC internal prototype to avoid an error.
12967
Use char because int might match the return type of a GCC
12968
builtin and then its argument prototype would still apply. */
12976
return dld_link ();
12981
rm -f conftest.$ac_objext conftest$ac_exeext
12982
if { (ac_try="$ac_link"
12983
case "(($ac_try" in
12984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985
*) ac_try_echo=$ac_try;;
12987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988
(eval "$ac_link") 2>conftest.er1
12990
grep -v '^ *+' conftest.er1 >conftest.err
12992
cat conftest.err >&5
12993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994
(exit $ac_status); } && {
12995
test -z "$ac_c_werror_flag" ||
12996
test ! -s conftest.err
12997
} && test -s conftest$ac_exeext &&
12998
$as_test_x conftest$ac_exeext; then
12999
ac_cv_lib_dld_dld_link=yes
13001
echo "$as_me: failed program was:" >&5
13002
sed 's/^/| /' conftest.$ac_ext >&5
13004
ac_cv_lib_dld_dld_link=no
13007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13008
conftest$ac_exeext conftest.$ac_ext
13009
LIBS=$ac_check_lib_save_LIBS
13011
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13012
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13013
if test $ac_cv_lib_dld_dld_link = yes; then
13014
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13035
if test "x$lt_cv_dlopen" != xno; then
13041
case $lt_cv_dlopen in
13043
save_CPPFLAGS="$CPPFLAGS"
13044
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13046
save_LDFLAGS="$LDFLAGS"
13047
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13050
LIBS="$lt_cv_dlopen_libs $LIBS"
13052
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13053
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13054
if test "${lt_cv_dlopen_self+set}" = set; then
13055
echo $ECHO_N "(cached) $ECHO_C" >&6
13057
if test "$cross_compiling" = yes; then :
13058
lt_cv_dlopen_self=cross
13060
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13061
lt_status=$lt_dlunknown
13062
cat > conftest.$ac_ext <<EOF
13063
#line 13063 "configure"
13064
#include "confdefs.h"
13073
# define LT_DLGLOBAL RTLD_GLOBAL
13076
# define LT_DLGLOBAL DL_GLOBAL
13078
# define LT_DLGLOBAL 0
13082
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13083
find out it does not work in some platform. */
13084
#ifndef LT_DLLAZY_OR_NOW
13086
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13089
# define LT_DLLAZY_OR_NOW DL_LAZY
13092
# define LT_DLLAZY_OR_NOW RTLD_NOW
13095
# define LT_DLLAZY_OR_NOW DL_NOW
13097
# define LT_DLLAZY_OR_NOW 0
13105
extern "C" void exit (int);
13108
void fnord() { int i=42;}
13111
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13112
int status = $lt_dlunknown;
13116
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13117
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13118
/* dlclose (self); */
13126
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13127
(eval $ac_link) 2>&5
13129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13131
(./conftest; exit; ) >&5 2>/dev/null
13133
case x$lt_status in
13134
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13135
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13136
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13139
# compilation failed
13140
lt_cv_dlopen_self=no
13147
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13148
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13150
if test "x$lt_cv_dlopen_self" = xyes; then
13151
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13152
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13153
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13154
if test "${lt_cv_dlopen_self_static+set}" = set; then
13155
echo $ECHO_N "(cached) $ECHO_C" >&6
13157
if test "$cross_compiling" = yes; then :
13158
lt_cv_dlopen_self_static=cross
13160
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13161
lt_status=$lt_dlunknown
13162
cat > conftest.$ac_ext <<EOF
13163
#line 13163 "configure"
13164
#include "confdefs.h"
13173
# define LT_DLGLOBAL RTLD_GLOBAL
13176
# define LT_DLGLOBAL DL_GLOBAL
13178
# define LT_DLGLOBAL 0
13182
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13183
find out it does not work in some platform. */
13184
#ifndef LT_DLLAZY_OR_NOW
13186
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13189
# define LT_DLLAZY_OR_NOW DL_LAZY
13192
# define LT_DLLAZY_OR_NOW RTLD_NOW
13195
# define LT_DLLAZY_OR_NOW DL_NOW
13197
# define LT_DLLAZY_OR_NOW 0
13205
extern "C" void exit (int);
13208
void fnord() { int i=42;}
13211
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13212
int status = $lt_dlunknown;
13216
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13217
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13218
/* dlclose (self); */
13226
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13227
(eval $ac_link) 2>&5
13229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13231
(./conftest; exit; ) >&5 2>/dev/null
13233
case x$lt_status in
13234
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13235
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13236
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13239
# compilation failed
13240
lt_cv_dlopen_self_static=no
13247
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13248
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13251
CPPFLAGS="$save_CPPFLAGS"
13252
LDFLAGS="$save_LDFLAGS"
13257
case $lt_cv_dlopen_self in
13258
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13259
*) enable_dlopen_self=unknown ;;
13262
case $lt_cv_dlopen_self_static in
13263
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13264
*) enable_dlopen_self_static=unknown ;;
13269
# Report which library types will actually be built
13270
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13271
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13272
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13273
echo "${ECHO_T}$can_build_shared" >&6; }
13275
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13276
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13277
test "$can_build_shared" = "no" && enable_shared=no
13279
# On AIX, shared libraries and static libraries use the same namespace, and
13280
# are all built from PIC.
13283
test "$enable_shared" = yes && enable_static=no
13284
if test -n "$RANLIB"; then
13285
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13286
postinstall_cmds='$RANLIB $lib'
13291
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13292
test "$enable_shared" = yes && enable_static=no
13296
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13297
echo "${ECHO_T}$enable_shared" >&6; }
13299
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13300
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13301
# Make sure either enable_shared or enable_static is yes.
13302
test "$enable_shared" = yes || enable_static=yes
13303
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13304
echo "${ECHO_T}$enable_static" >&6; }
13306
# The else clause should only fire when bootstrapping the
13307
# libtool distribution, otherwise you forgot to ship ltmain.sh
13308
# with your package, and you will get complaints that there are
13309
# no rules to generate ltmain.sh.
13310
if test -f "$ltmain"; then
13311
# See if we are running on zsh, and set the options which allow our commands through
13312
# without removal of \ escapes.
13313
if test -n "${ZSH_VERSION+set}" ; then
13314
setopt NO_GLOB_SUBST
13316
# Now quote all the things that may contain metacharacters while being
13317
# careful not to overquote the AC_SUBSTed values. We take copies of the
13318
# variables and quote the copies for generation of the libtool script.
13319
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13321
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13322
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13323
deplibs_check_method reload_flag reload_cmds need_locks \
13324
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13325
lt_cv_sys_global_symbol_to_c_name_address \
13326
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13327
old_postinstall_cmds old_postuninstall_cmds \
13331
lt_prog_compiler_wl \
13332
lt_prog_compiler_pic \
13333
lt_prog_compiler_static \
13334
lt_prog_compiler_no_builtin_flag \
13335
export_dynamic_flag_spec \
13336
thread_safe_flag_spec \
13337
whole_archive_flag_spec \
13338
enable_shared_with_static_runtimes \
13340
old_archive_from_new_cmds \
13345
compiler_lib_search_path \
13347
archive_expsym_cmds \
13349
postuninstall_cmds \
13350
old_archive_from_expsyms_cmds \
13351
allow_undefined_flag \
13352
no_undefined_flag \
13353
export_symbols_cmds \
13354
hardcode_libdir_flag_spec \
13355
hardcode_libdir_flag_spec_ld \
13356
hardcode_libdir_separator \
13357
hardcode_automatic \
13359
module_expsym_cmds \
13360
lt_cv_prog_compiler_c_o \
13362
include_expsyms; do
13365
old_archive_cmds | \
13366
old_archive_from_new_cmds | \
13368
archive_expsym_cmds | \
13370
module_expsym_cmds | \
13371
old_archive_from_expsyms_cmds | \
13372
export_symbols_cmds | \
13373
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13374
postinstall_cmds | postuninstall_cmds | \
13375
old_postinstall_cmds | old_postuninstall_cmds | \
13376
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13377
# Double-quote double-evaled strings.
13378
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13381
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13387
*'\$0 --fallback-echo"')
13388
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13392
cfgfile="${ofile}T"
13393
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13395
{ echo "$as_me:$LINENO: creating $ofile" >&5
13396
echo "$as_me: creating $ofile" >&6;}
13398
cat <<__EOF__ >> "$cfgfile"
13401
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13402
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13403
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13405
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13406
# Free Software Foundation, Inc.
13408
# This file is part of GNU Libtool:
13409
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13411
# This program is free software; you can redistribute it and/or modify
13412
# it under the terms of the GNU General Public License as published by
13413
# the Free Software Foundation; either version 2 of the License, or
13414
# (at your option) any later version.
13416
# This program is distributed in the hope that it will be useful, but
13417
# WITHOUT ANY WARRANTY; without even the implied warranty of
13418
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13419
# General Public License for more details.
13421
# You should have received a copy of the GNU General Public License
13422
# along with this program; if not, write to the Free Software
13423
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13425
# As a special exception to the GNU General Public License, if you
13426
# distribute this file as part of a program that contains a
13427
# configuration script generated by Autoconf, you may include it under
13428
# the same distribution terms that you use for the rest of that program.
13430
# A sed program that does not truncate output.
13433
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13434
Xsed="$SED -e 1s/^X//"
13436
# The HP-UX ksh and POSIX shell print the target directory to stdout
13437
# if CDPATH is set.
13438
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13440
# The names of the tagged configurations supported by this script.
13443
# ### BEGIN LIBTOOL CONFIG
13445
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13447
# Shell to use when invoking shell scripts.
13450
# Whether or not to build shared libraries.
13451
build_libtool_libs=$enable_shared
13453
# Whether or not to build static libraries.
13454
build_old_libs=$enable_static
13456
# Whether or not to add -lc for building shared libraries.
13457
build_libtool_need_lc=$archive_cmds_need_lc
13459
# Whether or not to disallow shared libs when runtime libs are static
13460
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13462
# Whether or not to optimize for fast installation.
13463
fast_install=$enable_fast_install
13466
host_alias=$host_alias
13470
# The build system.
13471
build_alias=$build_alias
13475
# An echo program that does not interpret backslashes.
13480
AR_FLAGS=$lt_AR_FLAGS
13485
# LTCC compiler flags.
13486
LTCFLAGS=$lt_LTCFLAGS
13488
# A language-specific compiler.
13491
# Is the compiler the GNU C compiler?
13497
# The linker used to build libraries.
13500
# Whether we need hard or soft links.
13503
# A BSD-compatible nm program.
13506
# A symbol stripping program
13509
# Used to examine libraries when file_magic_cmd begins "file"
13510
MAGIC_CMD=$MAGIC_CMD
13512
# Used on cygwin: DLL creation program.
13515
# Used on cygwin: object dumper.
13518
# Used on cygwin: assembler.
13521
# The name of the directory that contains temporary libtool files.
13524
# How to create reloadable object files.
13525
reload_flag=$lt_reload_flag
13526
reload_cmds=$lt_reload_cmds
13528
# How to pass a linker flag through the compiler.
13529
wl=$lt_lt_prog_compiler_wl
13531
# Object file suffix (normally "o").
13532
objext="$ac_objext"
13534
# Old archive suffix (normally "a").
13537
# Shared library suffix (normally ".so").
13538
shrext_cmds='$shrext_cmds'
13540
# Executable file suffix (normally "").
13543
# Additional compiler flags for building library objects.
13544
pic_flag=$lt_lt_prog_compiler_pic
13547
# What is the maximum length of a command?
13548
max_cmd_len=$lt_cv_sys_max_cmd_len
13550
# Does compiler simultaneously support -c and -o options?
13551
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13553
# Must we lock files when doing compilation?
13554
need_locks=$lt_need_locks
13556
# Do we need the lib prefix for modules?
13557
need_lib_prefix=$need_lib_prefix
13559
# Do we need a version for libraries?
13560
need_version=$need_version
13562
# Whether dlopen is supported.
13563
dlopen_support=$enable_dlopen
13565
# Whether dlopen of programs is supported.
13566
dlopen_self=$enable_dlopen_self
13568
# Whether dlopen of statically linked programs is supported.
13569
dlopen_self_static=$enable_dlopen_self_static
13571
# Compiler flag to prevent dynamic linking.
13572
link_static_flag=$lt_lt_prog_compiler_static
13574
# Compiler flag to turn off builtin functions.
13575
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13577
# Compiler flag to allow reflexive dlopens.
13578
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13580
# Compiler flag to generate shared objects directly from archives.
13581
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13583
# Compiler flag to generate thread-safe objects.
13584
thread_safe_flag_spec=$lt_thread_safe_flag_spec
13586
# Library versioning type.
13587
version_type=$version_type
13589
# Format of library name prefix.
13590
libname_spec=$lt_libname_spec
13592
# List of archive names. First name is the real one, the rest are links.
13593
# The last name is the one that the linker finds with -lNAME.
13594
library_names_spec=$lt_library_names_spec
13596
# The coded name of the library, if different from the real name.
13597
soname_spec=$lt_soname_spec
13599
# Commands used to build and install an old-style archive.
13601
old_archive_cmds=$lt_old_archive_cmds
13602
old_postinstall_cmds=$lt_old_postinstall_cmds
13603
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13605
# Create an old-style archive from a shared archive.
13606
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13608
# Create a temporary old-style archive to link instead of a shared archive.
13609
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13611
# Commands used to build and install a shared archive.
13612
archive_cmds=$lt_archive_cmds
13613
archive_expsym_cmds=$lt_archive_expsym_cmds
13614
postinstall_cmds=$lt_postinstall_cmds
13615
postuninstall_cmds=$lt_postuninstall_cmds
13617
# Commands used to build a loadable module (assumed same as above if empty)
13618
module_cmds=$lt_module_cmds
13619
module_expsym_cmds=$lt_module_expsym_cmds
13621
# Commands to strip libraries.
13622
old_striplib=$lt_old_striplib
13623
striplib=$lt_striplib
13625
# Dependencies to place before the objects being linked to create a
13627
predep_objects=$lt_predep_objects
13629
# Dependencies to place after the objects being linked to create a
13631
postdep_objects=$lt_postdep_objects
13633
# Dependencies to place before the objects being linked to create a
13635
predeps=$lt_predeps
13637
# Dependencies to place after the objects being linked to create a
13639
postdeps=$lt_postdeps
13641
# The library search path used internally by the compiler when linking
13642
# a shared library.
13643
compiler_lib_search_path=$lt_compiler_lib_search_path
13645
# Method to check whether dependent libraries are shared objects.
13646
deplibs_check_method=$lt_deplibs_check_method
13648
# Command to use when deplibs_check_method == file_magic.
13649
file_magic_cmd=$lt_file_magic_cmd
13651
# Flag that allows shared libraries with undefined symbols to be built.
13652
allow_undefined_flag=$lt_allow_undefined_flag
13654
# Flag that forces no undefined symbols.
13655
no_undefined_flag=$lt_no_undefined_flag
13657
# Commands used to finish a libtool library installation in a directory.
13658
finish_cmds=$lt_finish_cmds
13660
# Same as above, but a single script fragment to be evaled but not shown.
13661
finish_eval=$lt_finish_eval
13663
# Take the output of nm and produce a listing of raw symbols and C names.
13664
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13666
# Transform the output of nm in a proper C declaration
13667
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13669
# Transform the output of nm in a C name address pair
13670
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13672
# This is the shared library runtime path variable.
13673
runpath_var=$runpath_var
13675
# This is the shared library path variable.
13676
shlibpath_var=$shlibpath_var
13678
# Is shlibpath searched before the hard-coded library search path?
13679
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13681
# How to hardcode a shared library path into an executable.
13682
hardcode_action=$hardcode_action
13684
# Whether we should hardcode library paths into libraries.
13685
hardcode_into_libs=$hardcode_into_libs
13687
# Flag to hardcode \$libdir into a binary during linking.
13688
# This must work even if \$libdir does not exist.
13689
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13691
# If ld is used when linking, flag to hardcode \$libdir into
13692
# a binary during linking. This must work even if \$libdir does
13694
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13696
# Whether we need a single -rpath flag with a separated argument.
13697
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13699
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13700
# resulting binary.
13701
hardcode_direct=$hardcode_direct
13703
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13704
# resulting binary.
13705
hardcode_minus_L=$hardcode_minus_L
13707
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13708
# the resulting binary.
13709
hardcode_shlibpath_var=$hardcode_shlibpath_var
13711
# Set to yes if building a shared library automatically hardcodes DIR into the library
13712
# and all subsequent libraries and executables linked against it.
13713
hardcode_automatic=$hardcode_automatic
13715
# Variables whose values should be saved in libtool wrapper scripts and
13716
# restored at relink time.
13717
variables_saved_for_relink="$variables_saved_for_relink"
13719
# Whether libtool must link a program against all its dependency libraries.
13720
link_all_deplibs=$link_all_deplibs
13722
# Compile-time system search path for libraries
13723
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13725
# Run-time system search path for libraries
13726
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13728
# Fix the shell variable \$srcfile for the compiler.
13729
fix_srcfile_path="$fix_srcfile_path"
13731
# Set to yes if exported symbols are required.
13732
always_export_symbols=$always_export_symbols
13734
# The commands to list exported symbols.
13735
export_symbols_cmds=$lt_export_symbols_cmds
13737
# The commands to extract the exported symbol list from a shared archive.
13738
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13740
# Symbols that should not be listed in the preloaded symbols.
13741
exclude_expsyms=$lt_exclude_expsyms
13743
# Symbols that must always be exported.
13744
include_expsyms=$lt_include_expsyms
13746
# ### END LIBTOOL CONFIG
13753
cat <<\EOF >> "$cfgfile"
13755
# AIX sometimes has problems with the GCC collect2 program. For some
13756
# reason, if we set the COLLECT_NAMES environment variable, the problems
13757
# vanish in a puff of smoke.
13758
if test "X${COLLECT_NAMES+set}" != Xset; then
13760
export COLLECT_NAMES
13766
# We use sed instead of cat because bash on DJGPP gets confused if
13767
# if finds mixed CR/LF and LF-only lines. Since sed operates in
13768
# text mode, it properly converts lines to CR/LF. This bash problem
13769
# is reportedly fixed, but why not run on old versions too?
13770
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13772
mv -f "$cfgfile" "$ofile" || \
13773
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13777
# If there is no Makefile yet, we rely on a make rule to execute
13778
# `config.status --recheck' to rerun these tests and create the
13779
# libtool script then.
13780
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13781
if test -f "$ltmain_in"; then
13782
test -f Makefile && make "$ltmain"
13788
ac_cpp='$CPP $CPPFLAGS'
13789
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13790
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13791
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13796
# Check whether --with-tags was given.
13797
if test "${with_tags+set}" = set; then
13798
withval=$with_tags; tagnames="$withval"
13802
if test -f "$ltmain" && test -n "$tagnames"; then
13803
if test ! -f "${ofile}"; then
13804
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13805
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13808
if test -z "$LTCC"; then
13809
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13810
if test -z "$LTCC"; then
13811
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13812
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13814
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13815
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13818
if test -z "$LTCFLAGS"; then
13819
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13822
# Extract list of available tagged configurations in $ofile.
13823
# Note that this assumes the entire list is on one line.
13824
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13826
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13827
for tagname in $tagnames; do
13829
# Check whether tagname contains only valid characters
13830
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13832
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13833
echo "$as_me: error: invalid tag name: $tagname" >&2;}
13834
{ (exit 1); exit 1; }; }
13838
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13840
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13841
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13842
{ (exit 1); exit 1; }; }
13845
# Update the list of available tags.
13846
if test -n "$tagname"; then
13847
echo appending configuration tag \"$tagname\" to $ofile
13851
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13852
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13853
(test "X$CXX" != "Xg++"))) ; then
13855
ac_cpp='$CXXCPP $CPPFLAGS'
13856
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13857
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13858
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13863
archive_cmds_need_lc_CXX=no
13864
allow_undefined_flag_CXX=
13865
always_export_symbols_CXX=no
13866
archive_expsym_cmds_CXX=
13867
export_dynamic_flag_spec_CXX=
13868
hardcode_direct_CXX=no
13869
hardcode_libdir_flag_spec_CXX=
13870
hardcode_libdir_flag_spec_ld_CXX=
13871
hardcode_libdir_separator_CXX=
13872
hardcode_minus_L_CXX=no
13873
hardcode_shlibpath_var_CXX=unsupported
13874
hardcode_automatic_CXX=no
13876
module_expsym_cmds_CXX=
13877
link_all_deplibs_CXX=unknown
13878
old_archive_cmds_CXX=$old_archive_cmds
13879
no_undefined_flag_CXX=
13880
whole_archive_flag_spec_CXX=
13881
enable_shared_with_static_runtimes_CXX=no
13883
# Dependencies to place before and after the object being linked:
13884
predep_objects_CXX=
13885
postdep_objects_CXX=
13888
compiler_lib_search_path_CXX=
13890
# Source file extension for C++ test sources.
13893
# Object file extension for compiled C++ test sources.
13897
# Code to be used in simple compile tests
13898
lt_simple_compile_test_code="int some_variable = 0;\n"
13900
# Code to be used in simple link tests
13901
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
13903
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13905
# If no C compiler was specified, use CC.
13908
# If no C compiler flags were specified, use CFLAGS.
13909
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13911
# Allow CC to be a program name with arguments.
13915
# save warnings/boilerplate of simple test code
13916
ac_outfile=conftest.$ac_objext
13917
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13918
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13919
_lt_compiler_boilerplate=`cat conftest.err`
13922
ac_outfile=conftest.$ac_objext
13923
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13924
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13925
_lt_linker_boilerplate=`cat conftest.err`
13929
# Allow CC to be a program name with arguments.
13934
lt_save_with_gnu_ld=$with_gnu_ld
13935
lt_save_path_LD=$lt_cv_path_LD
13936
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13937
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13939
$as_unset lt_cv_prog_gnu_ld
13941
if test -n "${lt_cv_path_LDCXX+set}"; then
13942
lt_cv_path_LD=$lt_cv_path_LDCXX
13944
$as_unset lt_cv_path_LD
13946
test -z "${LDCXX+set}" || LD=$LDCXX
13950
for cc_temp in $compiler""; do
13952
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13953
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13958
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13961
# We don't want -fno-exception wen compiling C++ code, so set the
13962
# no_builtin_flag separately
13963
if test "$GXX" = yes; then
13964
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13966
lt_prog_compiler_no_builtin_flag_CXX=
13969
if test "$GXX" = yes; then
13970
# Set up default GNU C++ configuration
13973
# Check whether --with-gnu-ld was given.
13974
if test "${with_gnu_ld+set}" = set; then
13975
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13981
if test "$GCC" = yes; then
13982
# Check if gcc -print-prog-name=ld gives a path.
13983
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13984
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13987
# gcc leaves a trailing carriage return which upsets mingw
13988
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13990
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13993
# Accept absolute paths.
13995
re_direlt='/[^/][^/]*/\.\./'
13996
# Canonicalize the pathname of ld
13997
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13998
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13999
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14001
test -z "$LD" && LD="$ac_prog"
14004
# If it fails, then pretend we aren't using GCC.
14008
# If it is relative, then search for the first ld in PATH.
14009
with_gnu_ld=unknown
14012
elif test "$with_gnu_ld" = yes; then
14013
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
14014
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14016
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14017
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14019
if test "${lt_cv_path_LD+set}" = set; then
14020
echo $ECHO_N "(cached) $ECHO_C" >&6
14022
if test -z "$LD"; then
14023
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14024
for ac_dir in $PATH; do
14026
test -z "$ac_dir" && ac_dir=.
14027
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14028
lt_cv_path_LD="$ac_dir/$ac_prog"
14029
# Check to see if the program is GNU ld. I'd rather use --version,
14030
# but apparently some variants of GNU ld only accept -v.
14031
# Break only if it was the GNU/non-GNU ld that we prefer.
14032
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14033
*GNU* | *'with BFD'*)
14034
test "$with_gnu_ld" != no && break
14037
test "$with_gnu_ld" != yes && break
14044
lt_cv_path_LD="$LD" # Let the user override the test with a path.
14048
LD="$lt_cv_path_LD"
14049
if test -n "$LD"; then
14050
{ echo "$as_me:$LINENO: result: $LD" >&5
14051
echo "${ECHO_T}$LD" >&6; }
14053
{ echo "$as_me:$LINENO: result: no" >&5
14054
echo "${ECHO_T}no" >&6; }
14056
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14057
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14058
{ (exit 1); exit 1; }; }
14059
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14060
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14061
if test "${lt_cv_prog_gnu_ld+set}" = set; then
14062
echo $ECHO_N "(cached) $ECHO_C" >&6
14064
# I'd rather use --version here, but apparently some GNU lds only accept -v.
14065
case `$LD -v 2>&1 </dev/null` in
14066
*GNU* | *'with BFD'*)
14067
lt_cv_prog_gnu_ld=yes
14070
lt_cv_prog_gnu_ld=no
14074
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14075
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14076
with_gnu_ld=$lt_cv_prog_gnu_ld
14080
# Check if GNU C++ uses GNU ld as the underlying linker, since the
14081
# archiving commands below assume that GNU ld is being used.
14082
if test "$with_gnu_ld" = yes; then
14083
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14084
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'
14086
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14087
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14089
# If archive_cmds runs LD, not CC, wlarc should be empty
14090
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14091
# investigate it a little bit more. (MM)
14094
# ancient GNU ld didn't support --whole-archive et. al.
14095
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14096
grep 'no-whole-archive' > /dev/null; then
14097
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14099
whole_archive_flag_spec_CXX=
14105
# A generic and very simple default shared library creation
14106
# command for GNU C++ for the case where it uses the native
14107
# linker, instead of GNU ld. If possible, this setting should
14108
# overridden to take advantage of the native linker features on
14109
# the platform it is being used on.
14110
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14113
# Commands to make compiler produce verbose output that lists
14114
# what "hidden" libraries, object files and flags are used when
14115
# linking a shared library.
14116
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14124
# PORTME: fill in a description of your system's C++ link characteristics
14125
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14126
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14130
# FIXME: insert proper C++ library support
14134
if test "$host_cpu" = ia64; then
14135
# On IA64, the linker does run time linking by default, so we don't
14136
# have to do anything special.
14137
aix_use_runtimelinking=no
14138
exp_sym_flag='-Bexport'
14141
aix_use_runtimelinking=no
14143
# Test if we are trying to use run time linking or normal
14144
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14145
# need to do runtime linking.
14146
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14147
for ld_flag in $LDFLAGS; do
14150
aix_use_runtimelinking=yes
14158
exp_sym_flag='-bexport'
14159
no_entry_flag='-bnoentry'
14162
# When large executables or shared objects are built, AIX ld can
14163
# have problems creating the table of contents. If linking a library
14164
# or program results in "error TOC overflow" add -mminimal-toc to
14165
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14166
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14168
archive_cmds_CXX=''
14169
hardcode_direct_CXX=yes
14170
hardcode_libdir_separator_CXX=':'
14171
link_all_deplibs_CXX=yes
14173
if test "$GXX" = yes; then
14174
case $host_os in aix4.[012]|aix4.[012].*)
14175
# We only want to do this on AIX 4.2 and lower, the check
14176
# below for broken collect2 doesn't work under 4.3+
14177
collect2name=`${CC} -print-prog-name=collect2`
14178
if test -f "$collect2name" && \
14179
strings "$collect2name" | grep resolve_lib_name >/dev/null
14181
# We have reworked collect2
14182
hardcode_direct_CXX=yes
14184
# We have old collect2
14185
hardcode_direct_CXX=unsupported
14186
# It fails to find uninstalled libraries when the uninstalled
14187
# path is not listed in the libpath. Setting hardcode_minus_L
14188
# to unsupported forces relinking
14189
hardcode_minus_L_CXX=yes
14190
hardcode_libdir_flag_spec_CXX='-L$libdir'
14191
hardcode_libdir_separator_CXX=
14195
shared_flag='-shared'
14196
if test "$aix_use_runtimelinking" = yes; then
14197
shared_flag="$shared_flag "'${wl}-G'
14201
if test "$host_cpu" = ia64; then
14202
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14203
# chokes on -Wl,-G. The following line is correct:
14206
if test "$aix_use_runtimelinking" = yes; then
14207
shared_flag='${wl}-G'
14209
shared_flag='${wl}-bM:SRE'
14214
# It seems that -bexpall does not export symbols beginning with
14215
# underscore (_), so it is better to generate a list of symbols to export.
14216
always_export_symbols_CXX=yes
14217
if test "$aix_use_runtimelinking" = yes; then
14218
# Warning - without using the other runtime loading flags (-brtl),
14219
# -berok will link without error, but may produce a broken library.
14220
allow_undefined_flag_CXX='-berok'
14221
# Determine the default libpath from the value encoded in an empty executable.
14222
cat >conftest.$ac_ext <<_ACEOF
14225
cat confdefs.h >>conftest.$ac_ext
14226
cat >>conftest.$ac_ext <<_ACEOF
14227
/* end confdefs.h. */
14237
rm -f conftest.$ac_objext conftest$ac_exeext
14238
if { (ac_try="$ac_link"
14239
case "(($ac_try" in
14240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241
*) ac_try_echo=$ac_try;;
14243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244
(eval "$ac_link") 2>conftest.er1
14246
grep -v '^ *+' conftest.er1 >conftest.err
14248
cat conftest.err >&5
14249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250
(exit $ac_status); } && {
14251
test -z "$ac_cxx_werror_flag" ||
14252
test ! -s conftest.err
14253
} && test -s conftest$ac_exeext &&
14254
$as_test_x conftest$ac_exeext; then
14256
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14258
# Check for a 64-bit object if we didn't find anything.
14259
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14262
echo "$as_me: failed program was:" >&5
14263
sed 's/^/| /' conftest.$ac_ext >&5
14268
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14269
conftest$ac_exeext conftest.$ac_ext
14270
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14272
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14274
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"
14276
if test "$host_cpu" = ia64; then
14277
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14278
allow_undefined_flag_CXX="-z nodefs"
14279
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"
14281
# Determine the default libpath from the value encoded in an empty executable.
14282
cat >conftest.$ac_ext <<_ACEOF
14285
cat confdefs.h >>conftest.$ac_ext
14286
cat >>conftest.$ac_ext <<_ACEOF
14287
/* end confdefs.h. */
14297
rm -f conftest.$ac_objext conftest$ac_exeext
14298
if { (ac_try="$ac_link"
14299
case "(($ac_try" in
14300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301
*) ac_try_echo=$ac_try;;
14303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304
(eval "$ac_link") 2>conftest.er1
14306
grep -v '^ *+' conftest.er1 >conftest.err
14308
cat conftest.err >&5
14309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310
(exit $ac_status); } && {
14311
test -z "$ac_cxx_werror_flag" ||
14312
test ! -s conftest.err
14313
} && test -s conftest$ac_exeext &&
14314
$as_test_x conftest$ac_exeext; then
14316
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14318
# Check for a 64-bit object if we didn't find anything.
14319
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14322
echo "$as_me: failed program was:" >&5
14323
sed 's/^/| /' conftest.$ac_ext >&5
14328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14329
conftest$ac_exeext conftest.$ac_ext
14330
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14332
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14333
# Warning - without using the other run time loading flags,
14334
# -berok will link without error, but may produce a broken library.
14335
no_undefined_flag_CXX=' ${wl}-bernotok'
14336
allow_undefined_flag_CXX=' ${wl}-berok'
14337
# Exported symbols can be pulled into shared objects from archives
14338
whole_archive_flag_spec_CXX='$convenience'
14339
archive_cmds_need_lc_CXX=yes
14340
# This is similar to how AIX traditionally builds its shared libraries.
14341
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'
14347
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14348
allow_undefined_flag_CXX=unsupported
14349
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14350
# support --undefined. This deserves some investigation. FIXME
14351
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14358
case $cc_basename in
14360
# FIXME: insert proper C++ library support
14366
cygwin* | mingw* | pw32*)
14367
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14368
# as there is no search path for DLLs.
14369
hardcode_libdir_flag_spec_CXX='-L$libdir'
14370
allow_undefined_flag_CXX=unsupported
14371
always_export_symbols_CXX=no
14372
enable_shared_with_static_runtimes_CXX=yes
14374
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14375
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'
14376
# If the export-symbols file already is a .def file (1st line
14377
# is EXPORTS), use it as is; otherwise, prepend...
14378
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14379
cp $export_symbols $output_objdir/$soname.def;
14381
echo EXPORTS > $output_objdir/$soname.def;
14382
cat $export_symbols >> $output_objdir/$soname.def;
14384
$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'
14389
darwin* | rhapsody*)
14391
rhapsody* | darwin1.[012])
14392
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14395
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14396
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14398
case ${MACOSX_DEPLOYMENT_TARGET} in
14400
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14403
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
14409
archive_cmds_need_lc_CXX=no
14410
hardcode_direct_CXX=no
14411
hardcode_automatic_CXX=yes
14412
hardcode_shlibpath_var_CXX=unsupported
14413
whole_archive_flag_spec_CXX=''
14414
link_all_deplibs_CXX=yes
14416
if test "$GXX" = yes ; then
14417
lt_int_apple_cc_single_mod=no
14418
output_verbose_link_cmd='echo'
14419
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
14420
lt_int_apple_cc_single_mod=yes
14422
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14423
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14425
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'
14427
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14428
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14429
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14430
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14432
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14434
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}'
14436
case $cc_basename in
14438
output_verbose_link_cmd='echo'
14439
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14440
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14441
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14442
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14443
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}'
14453
case $cc_basename in
14455
# FIXME: insert proper C++ library support
14459
# Green Hills C++ Compiler
14460
# FIXME: insert proper C++ library support
14464
# FIXME: insert proper C++ library support
14470
# C++ shared libraries reported to be fairly broken before switch to ELF
14474
archive_cmds_need_lc_CXX=no
14476
freebsd* | dragonfly*)
14477
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14484
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14485
hardcode_libdir_separator_CXX=:
14486
export_dynamic_flag_spec_CXX='${wl}-E'
14487
hardcode_direct_CXX=yes
14488
hardcode_minus_L_CXX=yes # Not in the search PATH,
14489
# but as the default
14490
# location of the library.
14492
case $cc_basename in
14494
# FIXME: insert proper C++ library support
14498
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'
14499
# Commands to make compiler produce verbose output that lists
14500
# what "hidden" libraries, object files and flags are used when
14501
# linking a shared library.
14503
# There doesn't appear to be a way to prevent this compiler from
14504
# explicitly linking system object files so we need to strip them
14505
# from the output so that they don't get included in the library
14507
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'
14510
if test "$GXX" = yes; then
14511
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'
14513
# FIXME: insert proper C++ library support
14520
if test $with_gnu_ld = no; then
14521
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14522
hardcode_libdir_separator_CXX=:
14526
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14529
export_dynamic_flag_spec_CXX='${wl}-E'
14535
hardcode_direct_CXX=no
14536
hardcode_shlibpath_var_CXX=no
14539
hardcode_direct_CXX=yes
14540
hardcode_minus_L_CXX=yes # Not in the search PATH,
14541
# but as the default
14542
# location of the library.
14546
case $cc_basename in
14548
# FIXME: insert proper C++ library support
14554
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14557
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14560
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14563
# Commands to make compiler produce verbose output that lists
14564
# what "hidden" libraries, object files and flags are used when
14565
# linking a shared library.
14567
# There doesn't appear to be a way to prevent this compiler from
14568
# explicitly linking system object files so we need to strip them
14569
# from the output so that they don't get included in the library
14571
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'
14574
if test "$GXX" = yes; then
14575
if test $with_gnu_ld = no; then
14578
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14581
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14584
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'
14589
# FIXME: insert proper C++ library support
14596
hardcode_direct_CXX=no
14597
hardcode_shlibpath_var_CXX=no
14598
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14599
export_dynamic_flag_spec_CXX='${wl}-E'
14600
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14601
# Instead, shared libraries are loaded at an image base (0x10000000 by
14602
# default) and relocated if they conflict, which is a slow very memory
14603
# consuming and fragmenting process. To avoid this, we pick a random,
14604
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14605
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14606
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'
14607
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'
14610
case $cc_basename in
14613
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'
14615
# Archives containing C++ object files must be created using
14616
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
14617
# necessary to make sure instantiated templates are included
14619
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14622
if test "$GXX" = yes; then
14623
if test "$with_gnu_ld" = no; then
14624
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'
14626
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'
14629
link_all_deplibs_CXX=yes
14632
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14633
hardcode_libdir_separator_CXX=:
14635
linux* | k*bsd*-gnu)
14636
case $cc_basename in
14638
# Kuck and Associates, Inc. (KAI) C++ Compiler
14640
# KCC will only create a shared library if the output file
14641
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14642
# to its proper name (with version) after linking.
14643
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'
14644
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'
14645
# Commands to make compiler produce verbose output that lists
14646
# what "hidden" libraries, object files and flags are used when
14647
# linking a shared library.
14649
# There doesn't appear to be a way to prevent this compiler from
14650
# explicitly linking system object files so we need to strip them
14651
# from the output so that they don't get included in the library
14653
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'
14655
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14656
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14658
# Archives containing C++ object files must be created using
14659
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14660
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14665
# version 8.0 and above of icpc choke on multiply defined symbols
14666
# if we add $predep_objects and $postdep_objects, however 7.1 and
14667
# earlier do not add the objects themselves.
14668
case `$CC -V 2>&1` in
14670
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14671
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'
14673
*) # Version 8.0 or newer
14676
ia64*) tmp_idyn=' -i_dynamic';;
14678
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14679
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'
14682
archive_cmds_need_lc_CXX=no
14683
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14684
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14685
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14688
# Portland Group C++ compiler
14689
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14690
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'
14692
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14693
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14694
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'
14698
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14699
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'
14701
runpath_var=LD_RUN_PATH
14702
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14703
hardcode_libdir_separator_CXX=:
14705
# Commands to make compiler produce verbose output that lists
14706
# what "hidden" libraries, object files and flags are used when
14707
# linking a shared library.
14709
# There doesn't appear to be a way to prevent this compiler from
14710
# explicitly linking system object files so we need to strip them
14711
# from the output so that they don't get included in the library
14713
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'
14718
# FIXME: insert proper C++ library support
14722
# FIXME: insert proper C++ library support
14726
case $cc_basename in
14728
# FIXME: insert proper C++ library support
14732
# FIXME: insert proper C++ library support
14737
netbsd* | netbsdelf*-gnu)
14738
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14739
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14741
hardcode_libdir_flag_spec_CXX='-R$libdir'
14742
hardcode_direct_CXX=yes
14743
hardcode_shlibpath_var_CXX=no
14745
# Workaround some broken pre-1.5 toolchains
14746
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14749
# C++ shared libraries are fairly broken
14753
hardcode_direct_CXX=yes
14754
hardcode_shlibpath_var_CXX=no
14755
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14756
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14757
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14758
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14759
export_dynamic_flag_spec_CXX='${wl}-E'
14760
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14762
output_verbose_link_cmd='echo'
14765
case $cc_basename in
14767
# Kuck and Associates, Inc. (KAI) C++ Compiler
14769
# KCC will only create a shared library if the output file
14770
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14771
# to its proper name (with version) after linking.
14772
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'
14774
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14775
hardcode_libdir_separator_CXX=:
14777
# Archives containing C++ object files must be created using
14778
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14779
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14783
# Rational C++ 2.4.1
14784
# FIXME: insert proper C++ library support
14788
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14789
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'
14791
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14792
hardcode_libdir_separator_CXX=:
14794
# Commands to make compiler produce verbose output that lists
14795
# what "hidden" libraries, object files and flags are used when
14796
# linking a shared library.
14798
# There doesn't appear to be a way to prevent this compiler from
14799
# explicitly linking system object files so we need to strip them
14800
# from the output so that they don't get included in the library
14802
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'
14805
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14806
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14807
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'
14809
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14810
hardcode_libdir_separator_CXX=:
14812
# Commands to make compiler produce verbose output that lists
14813
# what "hidden" libraries, object files and flags are used when
14814
# linking a shared library.
14815
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14818
# FIXME: insert proper C++ library support
14825
case $cc_basename in
14827
# Kuck and Associates, Inc. (KAI) C++ Compiler
14829
# KCC will only create a shared library if the output file
14830
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14831
# to its proper name (with version) after linking.
14832
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'
14834
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14835
hardcode_libdir_separator_CXX=:
14837
# Archives containing C++ object files must be created using
14838
# the KAI C++ compiler.
14839
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14842
# Rational C++ 2.4.1
14843
# FIXME: insert proper C++ library support
14847
allow_undefined_flag_CXX=' -expect_unresolved \*'
14848
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'
14849
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14850
echo "-hidden">> $lib.exp~
14851
$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~
14854
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14855
hardcode_libdir_separator_CXX=:
14857
# Commands to make compiler produce verbose output that lists
14858
# what "hidden" libraries, object files and flags are used when
14859
# linking a shared library.
14861
# There doesn't appear to be a way to prevent this compiler from
14862
# explicitly linking system object files so we need to strip them
14863
# from the output so that they don't get included in the library
14865
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'
14868
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14869
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14870
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'
14872
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14873
hardcode_libdir_separator_CXX=:
14875
# Commands to make compiler produce verbose output that lists
14876
# what "hidden" libraries, object files and flags are used when
14877
# linking a shared library.
14878
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14881
# FIXME: insert proper C++ library support
14888
# FIXME: insert proper C++ library support
14892
case $cc_basename in
14895
# FIXME: insert proper C++ library support
14900
# FIXME: insert proper C++ library support
14904
# FIXME: insert proper C++ library support
14910
case $cc_basename in
14912
# Sun C++ 4.2, 5.x and Centerline C++
14913
archive_cmds_need_lc_CXX=yes
14914
no_undefined_flag_CXX=' -zdefs'
14915
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14916
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14917
$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'
14919
hardcode_libdir_flag_spec_CXX='-R$libdir'
14920
hardcode_shlibpath_var_CXX=no
14922
solaris2.[0-5] | solaris2.[0-5].*) ;;
14924
# The C++ compiler is used as linker so we must use $wl
14925
# flag to pass the commands to the underlying system
14926
# linker. We must also pass each convience library through
14927
# to the system linker between allextract/defaultextract.
14928
# The C++ compiler will combine linker options so we
14929
# cannot just pass the convience library names through
14931
# Supported since Solaris 2.6 (maybe 2.5.1?)
14932
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
14935
link_all_deplibs_CXX=yes
14937
output_verbose_link_cmd='echo'
14939
# Archives containing C++ object files must be created using
14940
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14941
# necessary to make sure instantiated templates are included
14943
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14946
# Green Hills C++ Compiler
14947
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14949
# The C++ compiler must be used to create the archive.
14950
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14953
# GNU C++ compiler with Solaris linker
14954
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14955
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14956
if $CC --version | grep -v '^2\.7' > /dev/null; then
14957
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14958
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14959
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14961
# Commands to make compiler produce verbose output that lists
14962
# what "hidden" libraries, object files and flags are used when
14963
# linking a shared library.
14964
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14966
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14968
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14969
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14970
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14972
# Commands to make compiler produce verbose output that lists
14973
# what "hidden" libraries, object files and flags are used when
14974
# linking a shared library.
14975
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14978
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14983
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14984
no_undefined_flag_CXX='${wl}-z,text'
14985
archive_cmds_need_lc_CXX=no
14986
hardcode_shlibpath_var_CXX=no
14987
runpath_var='LD_RUN_PATH'
14989
case $cc_basename in
14991
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000
sysv5* | sco3.2v5* | sco5v6*)
15001
# Note: We can NOT use -z defs as we might desire, because we do not
15002
# link with -lc, and that would cause any symbols used from libc to
15003
# always be unresolved, which means just about no library would
15004
# ever link correctly. If we're not using GNU ld we use -z text
15005
# though, which does catch some bad symbols but isn't as heavy-handed
15007
# For security reasons, it is highly recommended that you always
15008
# use absolute paths for naming shared libraries, and exclude the
15009
# DT_RUNPATH tag from executables and libraries. But doing so
15010
# requires that you compile everything twice, which is a pain.
15011
# So that behaviour is only enabled if SCOABSPATH is set to a
15012
# non-empty value in the environment. Most likely only useful for
15013
# creating official distributions of packages.
15014
# This is a hack until libtool officially supports absolute path
15015
# names for shared libraries.
15016
no_undefined_flag_CXX='${wl}-z,text'
15017
allow_undefined_flag_CXX='${wl}-z,nodefs'
15018
archive_cmds_need_lc_CXX=no
15019
hardcode_shlibpath_var_CXX=no
15020
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15021
hardcode_libdir_separator_CXX=':'
15022
link_all_deplibs_CXX=yes
15023
export_dynamic_flag_spec_CXX='${wl}-Bexport'
15024
runpath_var='LD_RUN_PATH'
15026
case $cc_basename in
15028
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15029
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15032
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15033
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038
case $cc_basename in
15040
# NonStop-UX NCC 3.20
15041
# FIXME: insert proper C++ library support
15045
# FIXME: insert proper C++ library support
15051
# FIXME: insert proper C++ library support
15055
# FIXME: insert proper C++ library support
15059
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15060
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15061
test "$ld_shlibs_CXX" = no && can_build_shared=no
15067
## There is no encapsulation within the following macros, do not change
15068
## the running order or otherwise move them around unless you know exactly
15069
## what you are doing...
15071
cat > conftest.$ac_ext <<EOF
15075
Foo (void) { a = 0; }
15081
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082
(eval $ac_compile) 2>&5
15084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085
(exit $ac_status); }; then
15086
# Parse the compiler output and extract the necessary
15087
# objects, libraries and library flags.
15089
# Sentinel used to keep track of whether or not we are before
15090
# the conftest object file.
15091
pre_test_object_deps_done=no
15093
# The `*' in the case matches for architectures that use `case' in
15094
# $output_verbose_cmd can trigger glob expansion during the loop
15095
# eval without this substitution.
15096
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15098
for p in `eval $output_verbose_link_cmd`; do
15102
# Some compilers place space between "-{L,R}" and the path.
15103
# Remove the space.
15104
if test $p = "-L" \
15105
|| test $p = "-R"; then
15112
if test "$pre_test_object_deps_done" = no; then
15115
# Internal compiler library paths should come after those
15116
# provided the user. The postdeps already come after the
15117
# user supplied libs so there is no need to process them.
15118
if test -z "$compiler_lib_search_path_CXX"; then
15119
compiler_lib_search_path_CXX="${prev}${p}"
15121
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15124
# The "-l" case would never come before the object being
15125
# linked, so don't bother handling this case.
15128
if test -z "$postdeps_CXX"; then
15129
postdeps_CXX="${prev}${p}"
15131
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15137
# This assumes that the test object file only shows up
15138
# once in the compiler output.
15139
if test "$p" = "conftest.$objext"; then
15140
pre_test_object_deps_done=yes
15144
if test "$pre_test_object_deps_done" = no; then
15145
if test -z "$predep_objects_CXX"; then
15146
predep_objects_CXX="$p"
15148
predep_objects_CXX="$predep_objects_CXX $p"
15151
if test -z "$postdep_objects_CXX"; then
15152
postdep_objects_CXX="$p"
15154
postdep_objects_CXX="$postdep_objects_CXX $p"
15159
*) ;; # Ignore the rest.
15167
echo "libtool.m4: error: problem compiling CXX test program"
15170
$rm -f confest.$objext
15172
# PORTME: override above test on systems where it is broken
15175
# Interix 3.5 installs completely hosed .la files for C++, so rather than
15176
# hack all around it, let's just trust "g++" to DTRT.
15177
predep_objects_CXX=
15178
postdep_objects_CXX=
15183
case $cc_basename in
15185
# Adding this requires a known-good setup of shared libraries for
15186
# Sun compiler versions before 5.6, else PIC objects from an old
15187
# archive will be linked into the output, leading to subtle bugs.
15188
postdeps_CXX='-lCstd -lCrun'
15195
case " $postdeps_CXX " in
15196
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15199
lt_prog_compiler_wl_CXX=
15200
lt_prog_compiler_pic_CXX=
15201
lt_prog_compiler_static_CXX=
15203
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15204
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15206
# C++ specific cases for pic, static, wl, etc.
15207
if test "$GXX" = yes; then
15208
lt_prog_compiler_wl_CXX='-Wl,'
15209
lt_prog_compiler_static_CXX='-static'
15213
# All AIX code is PIC.
15214
if test "$host_cpu" = ia64; then
15215
# AIX 5 now supports IA64 processor
15216
lt_prog_compiler_static_CXX='-Bstatic'
15220
# FIXME: we need at least 68020 code to build shared libraries, but
15221
# adding the `-m68020' flag to GCC prevents building anything better,
15223
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15225
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15226
# PIC is the default for these OSes.
15228
mingw* | os2* | pw32*)
15229
# This hack is so that the source file can tell whether it is being
15230
# built for inclusion in a dll (and should export symbols for example).
15231
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15233
darwin* | rhapsody*)
15234
# PIC is the default on this platform
15235
# Common symbols not allowed in MH_DYLIB files
15236
lt_prog_compiler_pic_CXX='-fno-common'
15239
# DJGPP does not support shared libraries at all
15240
lt_prog_compiler_pic_CXX=
15243
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15244
# Instead, we relocate shared libraries at runtime.
15247
if test -d /usr/nec; then
15248
lt_prog_compiler_pic_CXX=-Kconform_pic
15252
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15253
# not for PA HP-UX.
15258
lt_prog_compiler_pic_CXX='-fPIC'
15263
lt_prog_compiler_pic_CXX='-fPIC'
15269
# All AIX code is PIC.
15270
if test "$host_cpu" = ia64; then
15271
# AIX 5 now supports IA64 processor
15272
lt_prog_compiler_static_CXX='-Bstatic'
15274
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15278
case $cc_basename in
15280
# Green Hills C++ Compiler
15281
# _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"
15286
# PIC is the default on this platform
15287
# Common symbols not allowed in MH_DYLIB files
15288
case $cc_basename in
15290
lt_prog_compiler_pic_CXX='-qnocommon'
15291
lt_prog_compiler_wl_CXX='-Wl,'
15296
case $cc_basename in
15298
lt_prog_compiler_pic_CXX='-KPIC'
15301
# Green Hills C++ Compiler
15302
lt_prog_compiler_pic_CXX='-pic'
15308
freebsd* | dragonfly*)
15309
# FreeBSD uses GNU C++
15311
hpux9* | hpux10* | hpux11*)
15312
case $cc_basename in
15314
lt_prog_compiler_wl_CXX='-Wl,'
15315
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15316
if test "$host_cpu" != ia64; then
15317
lt_prog_compiler_pic_CXX='+Z'
15321
lt_prog_compiler_wl_CXX='-Wl,'
15322
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15328
lt_prog_compiler_pic_CXX='+Z'
15337
# This is c89, which is MS Visual C++ (no shared libs)
15338
# Anyone wants to do a port?
15340
irix5* | irix6* | nonstopux*)
15341
case $cc_basename in
15343
lt_prog_compiler_wl_CXX='-Wl,'
15344
lt_prog_compiler_static_CXX='-non_shared'
15345
# CC pic flag -KPIC is the default.
15351
linux* | k*bsd*-gnu)
15352
case $cc_basename in
15355
lt_prog_compiler_wl_CXX='--backend -Wl,'
15356
lt_prog_compiler_pic_CXX='-fPIC'
15360
lt_prog_compiler_wl_CXX='-Wl,'
15361
lt_prog_compiler_pic_CXX='-KPIC'
15362
lt_prog_compiler_static_CXX='-static'
15365
# Portland Group C++ compiler.
15366
lt_prog_compiler_wl_CXX='-Wl,'
15367
lt_prog_compiler_pic_CXX='-fpic'
15368
lt_prog_compiler_static_CXX='-Bstatic'
15372
# Make sure the PIC flag is empty. It appears that all Alpha
15373
# Linux and Compaq Tru64 Unix objects are PIC.
15374
lt_prog_compiler_pic_CXX=
15375
lt_prog_compiler_static_CXX='-non_shared'
15386
case $cc_basename in
15388
lt_prog_compiler_pic_CXX='-W c,exportall'
15394
netbsd* | netbsdelf*-gnu)
15396
osf3* | osf4* | osf5*)
15397
case $cc_basename in
15399
lt_prog_compiler_wl_CXX='--backend -Wl,'
15402
# Rational C++ 2.4.1
15403
lt_prog_compiler_pic_CXX='-pic'
15406
# Digital/Compaq C++
15407
lt_prog_compiler_wl_CXX='-Wl,'
15408
# Make sure the PIC flag is empty. It appears that all Alpha
15409
# Linux and Compaq Tru64 Unix objects are PIC.
15410
lt_prog_compiler_pic_CXX=
15411
lt_prog_compiler_static_CXX='-non_shared'
15420
case $cc_basename in
15422
# Sun C++ 4.2, 5.x and Centerline C++
15423
lt_prog_compiler_pic_CXX='-KPIC'
15424
lt_prog_compiler_static_CXX='-Bstatic'
15425
lt_prog_compiler_wl_CXX='-Qoption ld '
15428
# Green Hills C++ Compiler
15429
lt_prog_compiler_pic_CXX='-PIC'
15436
case $cc_basename in
15439
lt_prog_compiler_pic_CXX='-pic'
15440
lt_prog_compiler_static_CXX='-Bstatic'
15444
lt_prog_compiler_pic_CXX='-pic'
15451
case $cc_basename in
15453
# NonStop-UX NCC 3.20
15454
lt_prog_compiler_pic_CXX='-KPIC'
15460
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15461
case $cc_basename in
15463
lt_prog_compiler_wl_CXX='-Wl,'
15464
lt_prog_compiler_pic_CXX='-KPIC'
15465
lt_prog_compiler_static_CXX='-Bstatic'
15472
lt_prog_compiler_can_build_shared_CXX=no
15477
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15478
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15481
# Check to make sure the PIC flag actually works.
15483
if test -n "$lt_prog_compiler_pic_CXX"; then
15485
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15486
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15487
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15488
echo $ECHO_N "(cached) $ECHO_C" >&6
15490
lt_prog_compiler_pic_works_CXX=no
15491
ac_outfile=conftest.$ac_objext
15492
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15493
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15494
# Insert the option either (1) after the last *FLAGS variable, or
15495
# (2) before a word containing "conftest.", or (3) at the end.
15496
# Note that $ac_compile itself does not contain backslashes and begins
15497
# with a dollar sign (not a hyphen), so the echo should work correctly.
15498
# The option is referenced via a variable to avoid confusing sed.
15499
lt_compile=`echo "$ac_compile" | $SED \
15500
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15501
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15502
-e 's:$: $lt_compiler_flag:'`
15503
(eval echo "\"\$as_me:15503: $lt_compile\"" >&5)
15504
(eval "$lt_compile" 2>conftest.err)
15506
cat conftest.err >&5
15507
echo "$as_me:15507: \$? = $ac_status" >&5
15508
if (exit $ac_status) && test -s "$ac_outfile"; then
15509
# The compiler can only warn and ignore the option if not recognized
15510
# So say no if there are warnings other than the usual output.
15511
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15512
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15513
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15514
lt_prog_compiler_pic_works_CXX=yes
15520
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15521
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
15523
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15524
case $lt_prog_compiler_pic_CXX in
15526
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15529
lt_prog_compiler_pic_CXX=
15530
lt_prog_compiler_can_build_shared_CXX=no
15535
# For platforms which do not support PIC, -DPIC is meaningless:
15537
lt_prog_compiler_pic_CXX=
15540
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15545
# Check to make sure the static flag actually works.
15547
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15548
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15549
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15550
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
15551
echo $ECHO_N "(cached) $ECHO_C" >&6
15553
lt_prog_compiler_static_works_CXX=no
15554
save_LDFLAGS="$LDFLAGS"
15555
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15556
printf "$lt_simple_link_test_code" > conftest.$ac_ext
15557
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15558
# The linker can only warn and ignore the option if not recognized
15559
# So say no if there are warnings
15560
if test -s conftest.err; then
15561
# Append any errors to the config.log.
15562
cat conftest.err 1>&5
15563
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15564
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15565
if diff conftest.exp conftest.er2 >/dev/null; then
15566
lt_prog_compiler_static_works_CXX=yes
15569
lt_prog_compiler_static_works_CXX=yes
15573
LDFLAGS="$save_LDFLAGS"
15576
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
15577
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
15579
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
15582
lt_prog_compiler_static_CXX=
15586
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15587
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15588
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15589
echo $ECHO_N "(cached) $ECHO_C" >&6
15591
lt_cv_prog_compiler_c_o_CXX=no
15592
$rm -r conftest 2>/dev/null
15596
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15598
lt_compiler_flag="-o out/conftest2.$ac_objext"
15599
# Insert the option either (1) after the last *FLAGS variable, or
15600
# (2) before a word containing "conftest.", or (3) at the end.
15601
# Note that $ac_compile itself does not contain backslashes and begins
15602
# with a dollar sign (not a hyphen), so the echo should work correctly.
15603
lt_compile=`echo "$ac_compile" | $SED \
15604
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15605
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15606
-e 's:$: $lt_compiler_flag:'`
15607
(eval echo "\"\$as_me:15607: $lt_compile\"" >&5)
15608
(eval "$lt_compile" 2>out/conftest.err)
15610
cat out/conftest.err >&5
15611
echo "$as_me:15611: \$? = $ac_status" >&5
15612
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15614
# The compiler can only warn and ignore the option if not recognized
15615
# So say no if there are warnings
15616
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15617
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15618
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15619
lt_cv_prog_compiler_c_o_CXX=yes
15624
# SGI C++ compiler will create directory out/ii_files/ for
15625
# template instantiation
15626
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15627
$rm out/* && rmdir out
15633
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15634
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15637
hard_links="nottested"
15638
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15639
# do not overwrite the value of need_locks provided by the user
15640
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15641
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15644
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15646
ln conftest.a conftest.b 2>&5 || hard_links=no
15647
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15648
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15649
echo "${ECHO_T}$hard_links" >&6; }
15650
if test "$hard_links" = no; then
15651
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15652
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15659
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15660
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15662
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15665
# If we're using GNU nm, then we don't want the "-C" option.
15666
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15667
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15668
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'
15670
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'
15674
export_symbols_cmds_CXX="$ltdll_cmds"
15677
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'
15679
linux* | k*bsd*-gnu)
15680
link_all_deplibs_CXX=no
15683
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15687
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15688
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15689
test "$ld_shlibs_CXX" = no && can_build_shared=no
15692
# Do we need to explicitly link libc?
15694
case "x$archive_cmds_need_lc_CXX" in
15696
# Assume -lc should be added
15697
archive_cmds_need_lc_CXX=yes
15699
if test "$enable_shared" = yes && test "$GCC" = yes; then
15700
case $archive_cmds_CXX in
15702
# FIXME: we may have to deal with multi-command sequences.
15705
# Test whether the compiler implicitly links with -lc since on some
15706
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15707
# to ld, don't add -lc before -lgcc.
15708
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15709
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15711
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15714
(eval $ac_compile) 2>&5
15716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717
(exit $ac_status); } 2>conftest.err; then
15720
libobjs=conftest.$ac_objext
15722
wl=$lt_prog_compiler_wl_CXX
15723
pic_flag=$lt_prog_compiler_pic_CXX
15729
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15730
allow_undefined_flag_CXX=
15731
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15732
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735
(exit $ac_status); }
15737
archive_cmds_need_lc_CXX=no
15739
archive_cmds_need_lc_CXX=yes
15741
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15743
cat conftest.err 1>&5
15746
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15747
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15754
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15755
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15756
library_names_spec=
15757
libname_spec='lib$name'
15761
postuninstall_cmds=
15765
shlibpath_overrides_runpath=unknown
15767
dynamic_linker="$host_os ld.so"
15768
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15769
if test "$GCC" = yes; then
15770
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15771
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15772
# if the path contains ";" then we assume it to be the separator
15773
# otherwise default to the standard path separator (i.e. ":") - it is
15774
# assumed that no part of a normal pathname contains ";" but that should
15775
# okay in the real world where ";" in dirpaths is itself problematic.
15776
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15778
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15781
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15783
need_lib_prefix=unknown
15784
hardcode_into_libs=no
15786
# when you set need_version to no, make sure it does not cause -set_version
15787
# flags to be left without arguments
15788
need_version=unknown
15793
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15794
shlibpath_var=LIBPATH
15796
# AIX 3 has no versioning support, so we append a major version to the name.
15797
soname_spec='${libname}${release}${shared_ext}$major'
15804
hardcode_into_libs=yes
15805
if test "$host_cpu" = ia64; then
15806
# AIX 5 supports IA64
15807
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15808
shlibpath_var=LD_LIBRARY_PATH
15810
# With GCC up to 2.95.x, collect2 would create an import file
15811
# for dependence libraries. The import file would start with
15812
# the line `#! .'. This would cause the generated library to
15813
# depend on `.', always an invalid library. This was fixed in
15814
# development snapshots of GCC prior to 3.0.
15816
aix4 | aix4.[01] | aix4.[01].*)
15817
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15819
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15822
can_build_shared=no
15826
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15827
# soname into executable. Probably we can add versioning support to
15828
# collect2, so additional links can be useful in future.
15829
if test "$aix_use_runtimelinking" = yes; then
15830
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15831
# instead of lib<name>.a to let people know that these are not
15832
# typical AIX shared libraries.
15833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835
# We preserve .a as extension for shared libraries through AIX4.2
15836
# and later when we are not doing run time linking.
15837
library_names_spec='${libname}${release}.a $libname.a'
15838
soname_spec='${libname}${release}${shared_ext}$major'
15840
shlibpath_var=LIBPATH
15845
library_names_spec='$libname.ixlibrary $libname.a'
15846
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15847
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'
15851
library_names_spec='${libname}${shared_ext}'
15852
dynamic_linker="$host_os ld.so"
15853
shlibpath_var=LIBRARY_PATH
15859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860
soname_spec='${libname}${release}${shared_ext}$major'
15861
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15862
shlibpath_var=LD_LIBRARY_PATH
15863
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15864
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15865
# the default ld.so.conf also contains /usr/contrib/lib and
15866
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15867
# libtool to hard-code these into programs
15870
cygwin* | mingw* | pw32*)
15871
version_type=windows
15876
case $GCC,$host_os in
15877
yes,cygwin* | yes,mingw* | yes,pw32*)
15878
library_names_spec='$libname.dll.a'
15879
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15880
postinstall_cmds='base_file=`basename \${file}`~
15881
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15882
dldir=$destdir/`dirname \$dlpath`~
15883
test -d \$dldir || mkdir -p \$dldir~
15884
$install_prog $dir/$dlname \$dldir/$dlname~
15885
chmod a+x \$dldir/$dlname'
15886
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15887
dlpath=$dir/\$dldll~
15889
shlibpath_overrides_runpath=yes
15893
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15894
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15895
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15898
# MinGW DLLs use traditional 'lib' prefix
15899
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15900
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15901
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15902
# It is most probably a Windows format PATH printed by
15903
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15904
# path with ; separators, and with drive letters. We can handle the
15905
# drive letters (cygwin fileutils understands them), so leave them,
15906
# especially as we might pass files found there to a mingw objdump,
15907
# which wouldn't understand a cygwinified path. Ahh.
15908
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15910
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15914
# pw32 DLLs use 'pw' prefix rather than 'lib'
15915
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15921
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15924
dynamic_linker='Win32 ld.exe'
15925
# FIXME: first we should search . and the directory the executable is in
15929
darwin* | rhapsody*)
15930
dynamic_linker="$host_os dyld"
15931
version_type=darwin
15934
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15935
soname_spec='${libname}${release}${major}$shared_ext'
15936
shlibpath_overrides_runpath=yes
15937
shlibpath_var=DYLD_LIBRARY_PATH
15938
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15939
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15940
if test "$GCC" = yes; then
15941
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15943
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15945
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15953
soname_spec='${libname}${release}${shared_ext}$major'
15954
shlibpath_var=LD_LIBRARY_PATH
15961
freebsd* | dragonfly*)
15962
# DragonFly does not have aout. When/if they implement a new
15963
# versioning mechanism, adjust this.
15964
if test -x /usr/bin/objformat; then
15965
objformat=`/usr/bin/objformat`
15968
freebsd[123]*) objformat=aout ;;
15969
*) objformat=elf ;;
15972
version_type=freebsd-$objformat
15973
case $version_type in
15975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15980
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15984
shlibpath_var=LD_LIBRARY_PATH
15987
shlibpath_overrides_runpath=yes
15989
freebsd3.[01]* | freebsdelf3.[01]*)
15990
shlibpath_overrides_runpath=yes
15991
hardcode_into_libs=yes
15993
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15994
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15995
shlibpath_overrides_runpath=no
15996
hardcode_into_libs=yes
15998
freebsd*) # from 4.6 on
15999
shlibpath_overrides_runpath=yes
16000
hardcode_into_libs=yes
16009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16010
soname_spec='${libname}${release}${shared_ext}$major'
16011
shlibpath_var=LD_LIBRARY_PATH
16012
hardcode_into_libs=yes
16015
hpux9* | hpux10* | hpux11*)
16016
# Give a soname corresponding to the major version so that dld.sl refuses to
16017
# link against other versions.
16024
hardcode_into_libs=yes
16025
dynamic_linker="$host_os dld.so"
16026
shlibpath_var=LD_LIBRARY_PATH
16027
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029
soname_spec='${libname}${release}${shared_ext}$major'
16030
if test "X$HPUX_IA64_MODE" = X32; then
16031
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16033
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16035
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16039
hardcode_into_libs=yes
16040
dynamic_linker="$host_os dld.sl"
16041
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16042
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044
soname_spec='${libname}${release}${shared_ext}$major'
16045
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16046
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16050
dynamic_linker="$host_os dld.sl"
16051
shlibpath_var=SHLIB_PATH
16052
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054
soname_spec='${libname}${release}${shared_ext}$major'
16057
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16058
postinstall_cmds='chmod 555 $lib'
16065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16066
soname_spec='${libname}${release}${shared_ext}$major'
16067
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16068
shlibpath_var=LD_LIBRARY_PATH
16069
shlibpath_overrides_runpath=no
16070
hardcode_into_libs=yes
16073
irix5* | irix6* | nonstopux*)
16075
nonstopux*) version_type=nonstopux ;;
16077
if test "$lt_cv_prog_gnu_ld" = yes; then
16085
soname_spec='${libname}${release}${shared_ext}$major'
16086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16088
irix5* | nonstopux*)
16089
libsuff= shlibsuff=
16092
case $LD in # libtool.m4 will add one of these switches to LD
16093
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16094
libsuff= shlibsuff= libmagic=32-bit;;
16095
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16096
libsuff=32 shlibsuff=N32 libmagic=N32;;
16097
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16098
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16099
*) libsuff= shlibsuff= libmagic=never-match;;
16103
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16104
shlibpath_overrides_runpath=no
16105
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16106
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16107
hardcode_into_libs=yes
16110
# No shared lib support for Linux oldld, aout, or coff.
16111
linux*oldld* | linux*aout* | linux*coff*)
16115
# This must be Linux ELF.
16116
linux* | k*bsd*-gnu)
16120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121
soname_spec='${libname}${release}${shared_ext}$major'
16122
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16123
shlibpath_var=LD_LIBRARY_PATH
16124
shlibpath_overrides_runpath=no
16125
# This implies no fast_install, which is unacceptable.
16126
# Some rework will be needed to allow for fast_install
16127
# before this can be enabled.
16128
hardcode_into_libs=yes
16130
# Append ld.so.conf contents to the search path
16131
if test -f /etc/ld.so.conf; then
16132
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16133
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16136
# We used to test for /lib/ld.so.1 and disable shared libraries on
16137
# powerpc, because MkLinux only supported shared libraries with the
16138
# GNU dynamic linker. Since this was broken with cross compilers,
16139
# most powerpc-linux boxes support dynamic linking these days and
16140
# people can always --disable-shared, the test was removed, and we
16141
# assume the GNU/Linux dynamic linker is in use.
16142
dynamic_linker='GNU/Linux ld.so'
16149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16150
soname_spec='${libname}${release}${shared_ext}$major'
16151
shlibpath_var=LD_LIBRARY_PATH
16152
shlibpath_overrides_runpath=no
16153
hardcode_into_libs=yes
16154
dynamic_linker='NetBSD ld.elf_so'
16161
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16163
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16164
dynamic_linker='NetBSD (a.out) ld.so'
16166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16167
soname_spec='${libname}${release}${shared_ext}$major'
16168
dynamic_linker='NetBSD ld.elf_so'
16170
shlibpath_var=LD_LIBRARY_PATH
16171
shlibpath_overrides_runpath=yes
16172
hardcode_into_libs=yes
16177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178
shlibpath_var=LD_LIBRARY_PATH
16179
shlibpath_overrides_runpath=yes
16186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187
soname_spec='${libname}${release}${shared_ext}$major'
16188
shlibpath_var=LD_LIBRARY_PATH
16189
shlibpath_overrides_runpath=yes
16194
sys_lib_dlsearch_path_spec="/usr/lib"
16196
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16198
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16199
*) need_version=no ;;
16201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16202
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16203
shlibpath_var=LD_LIBRARY_PATH
16204
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16206
openbsd2.[89] | openbsd2.[89].*)
16207
shlibpath_overrides_runpath=no
16210
shlibpath_overrides_runpath=yes
16214
shlibpath_overrides_runpath=yes
16219
libname_spec='$name'
16222
library_names_spec='$libname${shared_ext} $libname.a'
16223
dynamic_linker='OS/2 ld.exe'
16224
shlibpath_var=LIBPATH
16227
osf3* | osf4* | osf5*)
16231
soname_spec='${libname}${release}${shared_ext}$major'
16232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233
shlibpath_var=LD_LIBRARY_PATH
16234
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16235
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243
soname_spec='${libname}${release}${shared_ext}$major'
16244
shlibpath_var=LD_LIBRARY_PATH
16245
shlibpath_overrides_runpath=yes
16246
hardcode_into_libs=yes
16247
# ldd complains unless libraries are executable
16248
postinstall_cmds='chmod +x $lib'
16253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16254
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16255
shlibpath_var=LD_LIBRARY_PATH
16256
shlibpath_overrides_runpath=yes
16257
if test "$with_gnu_ld" = yes; then
16265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266
soname_spec='${libname}${release}${shared_ext}$major'
16267
shlibpath_var=LD_LIBRARY_PATH
16268
case $host_vendor in
16270
shlibpath_overrides_runpath=no
16272
export_dynamic_flag_spec='${wl}-Blargedynsym'
16273
runpath_var=LD_RUN_PATH
16281
shlibpath_overrides_runpath=no
16282
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16288
if test -d /usr/nec ;then
16290
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16291
soname_spec='$libname${shared_ext}.$major'
16292
shlibpath_var=LD_LIBRARY_PATH
16296
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16297
version_type=freebsd-elf
16300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16301
soname_spec='${libname}${release}${shared_ext}$major'
16302
shlibpath_var=LD_LIBRARY_PATH
16303
hardcode_into_libs=yes
16304
if test "$with_gnu_ld" = yes; then
16305
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16306
shlibpath_overrides_runpath=no
16308
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16309
shlibpath_overrides_runpath=yes
16312
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16316
sys_lib_dlsearch_path_spec='/usr/lib'
16321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322
soname_spec='${libname}${release}${shared_ext}$major'
16323
shlibpath_var=LD_LIBRARY_PATH
16330
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16331
echo "${ECHO_T}$dynamic_linker" >&6; }
16332
test "$dynamic_linker" = no && can_build_shared=no
16334
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16335
if test "$GCC" = yes; then
16336
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16339
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16340
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16341
hardcode_action_CXX=
16342
if test -n "$hardcode_libdir_flag_spec_CXX" || \
16343
test -n "$runpath_var_CXX" || \
16344
test "X$hardcode_automatic_CXX" = "Xyes" ; then
16346
# We can hardcode non-existant directories.
16347
if test "$hardcode_direct_CXX" != no &&
16348
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16349
# have to relink, otherwise we might link with an installed library
16350
# when we should be linking with a yet-to-be-installed one
16351
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16352
test "$hardcode_minus_L_CXX" != no; then
16353
# Linking always hardcodes the temporary library directory.
16354
hardcode_action_CXX=relink
16356
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16357
hardcode_action_CXX=immediate
16360
# We cannot hardcode anything, or else we can only hardcode existing
16362
hardcode_action_CXX=unsupported
16364
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16365
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16367
if test "$hardcode_action_CXX" = relink; then
16368
# Fast installation is not supported
16369
enable_fast_install=no
16370
elif test "$shlibpath_overrides_runpath" = yes ||
16371
test "$enable_shared" = no; then
16372
# Fast installation is not necessary
16373
enable_fast_install=needless
16377
# The else clause should only fire when bootstrapping the
16378
# libtool distribution, otherwise you forgot to ship ltmain.sh
16379
# with your package, and you will get complaints that there are
16380
# no rules to generate ltmain.sh.
16381
if test -f "$ltmain"; then
16382
# See if we are running on zsh, and set the options which allow our commands through
16383
# without removal of \ escapes.
16384
if test -n "${ZSH_VERSION+set}" ; then
16385
setopt NO_GLOB_SUBST
16387
# Now quote all the things that may contain metacharacters while being
16388
# careful not to overquote the AC_SUBSTed values. We take copies of the
16389
# variables and quote the copies for generation of the libtool script.
16390
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16392
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16393
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16394
deplibs_check_method reload_flag reload_cmds need_locks \
16395
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16396
lt_cv_sys_global_symbol_to_c_name_address \
16397
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16398
old_postinstall_cmds old_postuninstall_cmds \
16402
lt_prog_compiler_wl_CXX \
16403
lt_prog_compiler_pic_CXX \
16404
lt_prog_compiler_static_CXX \
16405
lt_prog_compiler_no_builtin_flag_CXX \
16406
export_dynamic_flag_spec_CXX \
16407
thread_safe_flag_spec_CXX \
16408
whole_archive_flag_spec_CXX \
16409
enable_shared_with_static_runtimes_CXX \
16410
old_archive_cmds_CXX \
16411
old_archive_from_new_cmds_CXX \
16412
predep_objects_CXX \
16413
postdep_objects_CXX \
16416
compiler_lib_search_path_CXX \
16418
archive_expsym_cmds_CXX \
16419
postinstall_cmds_CXX \
16420
postuninstall_cmds_CXX \
16421
old_archive_from_expsyms_cmds_CXX \
16422
allow_undefined_flag_CXX \
16423
no_undefined_flag_CXX \
16424
export_symbols_cmds_CXX \
16425
hardcode_libdir_flag_spec_CXX \
16426
hardcode_libdir_flag_spec_ld_CXX \
16427
hardcode_libdir_separator_CXX \
16428
hardcode_automatic_CXX \
16430
module_expsym_cmds_CXX \
16431
lt_cv_prog_compiler_c_o_CXX \
16432
exclude_expsyms_CXX \
16433
include_expsyms_CXX; do
16436
old_archive_cmds_CXX | \
16437
old_archive_from_new_cmds_CXX | \
16438
archive_cmds_CXX | \
16439
archive_expsym_cmds_CXX | \
16440
module_cmds_CXX | \
16441
module_expsym_cmds_CXX | \
16442
old_archive_from_expsyms_cmds_CXX | \
16443
export_symbols_cmds_CXX | \
16444
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16445
postinstall_cmds | postuninstall_cmds | \
16446
old_postinstall_cmds | old_postuninstall_cmds | \
16447
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16448
# Double-quote double-evaled strings.
16449
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16452
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16458
*'\$0 --fallback-echo"')
16459
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16465
cat <<__EOF__ >> "$cfgfile"
16466
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16468
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16470
# Shell to use when invoking shell scripts.
16473
# Whether or not to build shared libraries.
16474
build_libtool_libs=$enable_shared
16476
# Whether or not to build static libraries.
16477
build_old_libs=$enable_static
16479
# Whether or not to add -lc for building shared libraries.
16480
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16482
# Whether or not to disallow shared libs when runtime libs are static
16483
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16485
# Whether or not to optimize for fast installation.
16486
fast_install=$enable_fast_install
16489
host_alias=$host_alias
16493
# The build system.
16494
build_alias=$build_alias
16498
# An echo program that does not interpret backslashes.
16503
AR_FLAGS=$lt_AR_FLAGS
16508
# LTCC compiler flags.
16509
LTCFLAGS=$lt_LTCFLAGS
16511
# A language-specific compiler.
16512
CC=$lt_compiler_CXX
16514
# Is the compiler the GNU C compiler?
16520
# The linker used to build libraries.
16523
# Whether we need hard or soft links.
16526
# A BSD-compatible nm program.
16529
# A symbol stripping program
16532
# Used to examine libraries when file_magic_cmd begins "file"
16533
MAGIC_CMD=$MAGIC_CMD
16535
# Used on cygwin: DLL creation program.
16538
# Used on cygwin: object dumper.
16541
# Used on cygwin: assembler.
16544
# The name of the directory that contains temporary libtool files.
16547
# How to create reloadable object files.
16548
reload_flag=$lt_reload_flag
16549
reload_cmds=$lt_reload_cmds
16551
# How to pass a linker flag through the compiler.
16552
wl=$lt_lt_prog_compiler_wl_CXX
16554
# Object file suffix (normally "o").
16555
objext="$ac_objext"
16557
# Old archive suffix (normally "a").
16560
# Shared library suffix (normally ".so").
16561
shrext_cmds='$shrext_cmds'
16563
# Executable file suffix (normally "").
16566
# Additional compiler flags for building library objects.
16567
pic_flag=$lt_lt_prog_compiler_pic_CXX
16570
# What is the maximum length of a command?
16571
max_cmd_len=$lt_cv_sys_max_cmd_len
16573
# Does compiler simultaneously support -c and -o options?
16574
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16576
# Must we lock files when doing compilation?
16577
need_locks=$lt_need_locks
16579
# Do we need the lib prefix for modules?
16580
need_lib_prefix=$need_lib_prefix
16582
# Do we need a version for libraries?
16583
need_version=$need_version
16585
# Whether dlopen is supported.
16586
dlopen_support=$enable_dlopen
16588
# Whether dlopen of programs is supported.
16589
dlopen_self=$enable_dlopen_self
16591
# Whether dlopen of statically linked programs is supported.
16592
dlopen_self_static=$enable_dlopen_self_static
16594
# Compiler flag to prevent dynamic linking.
16595
link_static_flag=$lt_lt_prog_compiler_static_CXX
16597
# Compiler flag to turn off builtin functions.
16598
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16600
# Compiler flag to allow reflexive dlopens.
16601
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16603
# Compiler flag to generate shared objects directly from archives.
16604
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16606
# Compiler flag to generate thread-safe objects.
16607
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16609
# Library versioning type.
16610
version_type=$version_type
16612
# Format of library name prefix.
16613
libname_spec=$lt_libname_spec
16615
# List of archive names. First name is the real one, the rest are links.
16616
# The last name is the one that the linker finds with -lNAME.
16617
library_names_spec=$lt_library_names_spec
16619
# The coded name of the library, if different from the real name.
16620
soname_spec=$lt_soname_spec
16622
# Commands used to build and install an old-style archive.
16624
old_archive_cmds=$lt_old_archive_cmds_CXX
16625
old_postinstall_cmds=$lt_old_postinstall_cmds
16626
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16628
# Create an old-style archive from a shared archive.
16629
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16631
# Create a temporary old-style archive to link instead of a shared archive.
16632
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16634
# Commands used to build and install a shared archive.
16635
archive_cmds=$lt_archive_cmds_CXX
16636
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16637
postinstall_cmds=$lt_postinstall_cmds
16638
postuninstall_cmds=$lt_postuninstall_cmds
16640
# Commands used to build a loadable module (assumed same as above if empty)
16641
module_cmds=$lt_module_cmds_CXX
16642
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16644
# Commands to strip libraries.
16645
old_striplib=$lt_old_striplib
16646
striplib=$lt_striplib
16648
# Dependencies to place before the objects being linked to create a
16650
predep_objects=$lt_predep_objects_CXX
16652
# Dependencies to place after the objects being linked to create a
16654
postdep_objects=$lt_postdep_objects_CXX
16656
# Dependencies to place before the objects being linked to create a
16658
predeps=$lt_predeps_CXX
16660
# Dependencies to place after the objects being linked to create a
16662
postdeps=$lt_postdeps_CXX
16664
# The library search path used internally by the compiler when linking
16665
# a shared library.
16666
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16668
# Method to check whether dependent libraries are shared objects.
16669
deplibs_check_method=$lt_deplibs_check_method
16671
# Command to use when deplibs_check_method == file_magic.
16672
file_magic_cmd=$lt_file_magic_cmd
16674
# Flag that allows shared libraries with undefined symbols to be built.
16675
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16677
# Flag that forces no undefined symbols.
16678
no_undefined_flag=$lt_no_undefined_flag_CXX
16680
# Commands used to finish a libtool library installation in a directory.
16681
finish_cmds=$lt_finish_cmds
16683
# Same as above, but a single script fragment to be evaled but not shown.
16684
finish_eval=$lt_finish_eval
16686
# Take the output of nm and produce a listing of raw symbols and C names.
16687
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16689
# Transform the output of nm in a proper C declaration
16690
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16692
# Transform the output of nm in a C name address pair
16693
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16695
# This is the shared library runtime path variable.
16696
runpath_var=$runpath_var
16698
# This is the shared library path variable.
16699
shlibpath_var=$shlibpath_var
16701
# Is shlibpath searched before the hard-coded library search path?
16702
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16704
# How to hardcode a shared library path into an executable.
16705
hardcode_action=$hardcode_action_CXX
16707
# Whether we should hardcode library paths into libraries.
16708
hardcode_into_libs=$hardcode_into_libs
16710
# Flag to hardcode \$libdir into a binary during linking.
16711
# This must work even if \$libdir does not exist.
16712
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16714
# If ld is used when linking, flag to hardcode \$libdir into
16715
# a binary during linking. This must work even if \$libdir does
16717
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16719
# Whether we need a single -rpath flag with a separated argument.
16720
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16722
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16723
# resulting binary.
16724
hardcode_direct=$hardcode_direct_CXX
16726
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16727
# resulting binary.
16728
hardcode_minus_L=$hardcode_minus_L_CXX
16730
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16731
# the resulting binary.
16732
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16734
# Set to yes if building a shared library automatically hardcodes DIR into the library
16735
# and all subsequent libraries and executables linked against it.
16736
hardcode_automatic=$hardcode_automatic_CXX
16738
# Variables whose values should be saved in libtool wrapper scripts and
16739
# restored at relink time.
16740
variables_saved_for_relink="$variables_saved_for_relink"
16742
# Whether libtool must link a program against all its dependency libraries.
16743
link_all_deplibs=$link_all_deplibs_CXX
16745
# Compile-time system search path for libraries
16746
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16748
# Run-time system search path for libraries
16749
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16751
# Fix the shell variable \$srcfile for the compiler.
16752
fix_srcfile_path="$fix_srcfile_path_CXX"
16754
# Set to yes if exported symbols are required.
16755
always_export_symbols=$always_export_symbols_CXX
16757
# The commands to list exported symbols.
16758
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16760
# The commands to extract the exported symbol list from a shared archive.
16761
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16763
# Symbols that should not be listed in the preloaded symbols.
16764
exclude_expsyms=$lt_exclude_expsyms_CXX
16766
# Symbols that must always be exported.
16767
include_expsyms=$lt_include_expsyms_CXX
16769
# ### END LIBTOOL TAG CONFIG: $tagname
16775
# If there is no Makefile yet, we rely on a make rule to execute
16776
# `config.status --recheck' to rerun these tests and create the
16777
# libtool script then.
16778
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16779
if test -f "$ltmain_in"; then
16780
test -f Makefile && make "$ltmain"
16786
ac_cpp='$CPP $CPPFLAGS'
16787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16795
with_gnu_ldcxx=$with_gnu_ld
16796
with_gnu_ld=$lt_save_with_gnu_ld
16797
lt_cv_path_LDCXX=$lt_cv_path_LD
16798
lt_cv_path_LD=$lt_save_path_LD
16799
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16800
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16808
if test -n "$F77" && test "X$F77" != "Xno"; then
16811
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16812
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16813
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16816
archive_cmds_need_lc_F77=no
16817
allow_undefined_flag_F77=
16818
always_export_symbols_F77=no
16819
archive_expsym_cmds_F77=
16820
export_dynamic_flag_spec_F77=
16821
hardcode_direct_F77=no
16822
hardcode_libdir_flag_spec_F77=
16823
hardcode_libdir_flag_spec_ld_F77=
16824
hardcode_libdir_separator_F77=
16825
hardcode_minus_L_F77=no
16826
hardcode_automatic_F77=no
16828
module_expsym_cmds_F77=
16829
link_all_deplibs_F77=unknown
16830
old_archive_cmds_F77=$old_archive_cmds
16831
no_undefined_flag_F77=
16832
whole_archive_flag_spec_F77=
16833
enable_shared_with_static_runtimes_F77=no
16835
# Source file extension for f77 test sources.
16838
# Object file extension for compiled f77 test sources.
16842
# Code to be used in simple compile tests
16843
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
16845
# Code to be used in simple link tests
16846
lt_simple_link_test_code=" program t\n end\n"
16848
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16850
# If no C compiler was specified, use CC.
16853
# If no C compiler flags were specified, use CFLAGS.
16854
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16856
# Allow CC to be a program name with arguments.
16860
# save warnings/boilerplate of simple test code
16861
ac_outfile=conftest.$ac_objext
16862
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16863
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16864
_lt_compiler_boilerplate=`cat conftest.err`
16867
ac_outfile=conftest.$ac_objext
16868
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16869
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16870
_lt_linker_boilerplate=`cat conftest.err`
16874
# Allow CC to be a program name with arguments.
16879
for cc_temp in $compiler""; do
16881
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16882
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16887
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16890
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16891
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16892
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16893
echo "${ECHO_T}$can_build_shared" >&6; }
16895
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16896
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16897
test "$can_build_shared" = "no" && enable_shared=no
16899
# On AIX, shared libraries and static libraries use the same namespace, and
16900
# are all built from PIC.
16903
test "$enable_shared" = yes && enable_static=no
16904
if test -n "$RANLIB"; then
16905
archive_cmds="$archive_cmds~\$RANLIB \$lib"
16906
postinstall_cmds='$RANLIB $lib'
16910
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16911
test "$enable_shared" = yes && enable_static=no
16915
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16916
echo "${ECHO_T}$enable_shared" >&6; }
16918
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16919
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16920
# Make sure either enable_shared or enable_static is yes.
16921
test "$enable_shared" = yes || enable_static=yes
16922
{ echo "$as_me:$LINENO: result: $enable_static" >&5
16923
echo "${ECHO_T}$enable_static" >&6; }
16928
lt_prog_compiler_wl_F77=
16929
lt_prog_compiler_pic_F77=
16930
lt_prog_compiler_static_F77=
16932
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16933
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16935
if test "$GCC" = yes; then
16936
lt_prog_compiler_wl_F77='-Wl,'
16937
lt_prog_compiler_static_F77='-static'
16941
# All AIX code is PIC.
16942
if test "$host_cpu" = ia64; then
16943
# AIX 5 now supports IA64 processor
16944
lt_prog_compiler_static_F77='-Bstatic'
16949
# FIXME: we need at least 68020 code to build shared libraries, but
16950
# adding the `-m68020' flag to GCC prevents building anything better,
16952
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16955
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16956
# PIC is the default for these OSes.
16959
mingw* | pw32* | os2*)
16960
# This hack is so that the source file can tell whether it is being
16961
# built for inclusion in a dll (and should export symbols for example).
16962
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16965
darwin* | rhapsody*)
16966
# PIC is the default on this platform
16967
# Common symbols not allowed in MH_DYLIB files
16968
lt_prog_compiler_pic_F77='-fno-common'
16972
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16973
# Instead, we relocate shared libraries at runtime.
16977
# Just because we use GCC doesn't mean we suddenly get shared libraries
16978
# on systems that don't support them.
16979
lt_prog_compiler_can_build_shared_F77=no
16984
if test -d /usr/nec; then
16985
lt_prog_compiler_pic_F77=-Kconform_pic
16990
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16991
# not for PA HP-UX.
16997
lt_prog_compiler_pic_F77='-fPIC'
17003
lt_prog_compiler_pic_F77='-fPIC'
17007
# PORTME Check for flag to pass linker flags through the system compiler.
17010
lt_prog_compiler_wl_F77='-Wl,'
17011
if test "$host_cpu" = ia64; then
17012
# AIX 5 now supports IA64 processor
17013
lt_prog_compiler_static_F77='-Bstatic'
17015
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17019
# PIC is the default on this platform
17020
# Common symbols not allowed in MH_DYLIB files
17021
case $cc_basename in
17023
lt_prog_compiler_pic_F77='-qnocommon'
17024
lt_prog_compiler_wl_F77='-Wl,'
17029
mingw* | pw32* | os2*)
17030
# This hack is so that the source file can tell whether it is being
17031
# built for inclusion in a dll (and should export symbols for example).
17032
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17035
hpux9* | hpux10* | hpux11*)
17036
lt_prog_compiler_wl_F77='-Wl,'
17037
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17038
# not for PA HP-UX.
17044
lt_prog_compiler_pic_F77='+Z'
17047
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17048
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17051
irix5* | irix6* | nonstopux*)
17052
lt_prog_compiler_wl_F77='-Wl,'
17053
# PIC (with -KPIC) is the default.
17054
lt_prog_compiler_static_F77='-non_shared'
17058
lt_prog_compiler_pic_F77='-KPIC'
17059
lt_prog_compiler_static_F77='-Bstatic'
17062
linux* | k*bsd*-gnu)
17063
case $cc_basename in
17065
lt_prog_compiler_wl_F77='-Wl,'
17066
lt_prog_compiler_pic_F77='-KPIC'
17067
lt_prog_compiler_static_F77='-static'
17069
pgcc* | pgf77* | pgf90* | pgf95*)
17070
# Portland Group compilers (*not* the Pentium gcc compiler,
17071
# which looks to be a dead project)
17072
lt_prog_compiler_wl_F77='-Wl,'
17073
lt_prog_compiler_pic_F77='-fpic'
17074
lt_prog_compiler_static_F77='-Bstatic'
17077
lt_prog_compiler_wl_F77='-Wl,'
17078
# All Alpha code is PIC.
17079
lt_prog_compiler_static_F77='-non_shared'
17084
osf3* | osf4* | osf5*)
17085
lt_prog_compiler_wl_F77='-Wl,'
17086
# All OSF/1 code is PIC.
17087
lt_prog_compiler_static_F77='-non_shared'
17091
lt_prog_compiler_pic_F77='-KPIC'
17092
lt_prog_compiler_static_F77='-Bstatic'
17093
case $cc_basename in
17094
f77* | f90* | f95*)
17095
lt_prog_compiler_wl_F77='-Qoption ld ';;
17097
lt_prog_compiler_wl_F77='-Wl,';;
17102
lt_prog_compiler_wl_F77='-Qoption ld '
17103
lt_prog_compiler_pic_F77='-PIC'
17104
lt_prog_compiler_static_F77='-Bstatic'
17107
sysv4 | sysv4.2uw2* | sysv4.3*)
17108
lt_prog_compiler_wl_F77='-Wl,'
17109
lt_prog_compiler_pic_F77='-KPIC'
17110
lt_prog_compiler_static_F77='-Bstatic'
17114
if test -d /usr/nec ;then
17115
lt_prog_compiler_pic_F77='-Kconform_pic'
17116
lt_prog_compiler_static_F77='-Bstatic'
17120
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17121
lt_prog_compiler_wl_F77='-Wl,'
17122
lt_prog_compiler_pic_F77='-KPIC'
17123
lt_prog_compiler_static_F77='-Bstatic'
17127
lt_prog_compiler_wl_F77='-Wl,'
17128
lt_prog_compiler_can_build_shared_F77=no
17132
lt_prog_compiler_pic_F77='-pic'
17133
lt_prog_compiler_static_F77='-Bstatic'
17137
lt_prog_compiler_can_build_shared_F77=no
17142
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17143
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17146
# Check to make sure the PIC flag actually works.
17148
if test -n "$lt_prog_compiler_pic_F77"; then
17150
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17151
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17152
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17153
echo $ECHO_N "(cached) $ECHO_C" >&6
17155
lt_prog_compiler_pic_works_F77=no
17156
ac_outfile=conftest.$ac_objext
17157
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17158
lt_compiler_flag="$lt_prog_compiler_pic_F77"
17159
# Insert the option either (1) after the last *FLAGS variable, or
17160
# (2) before a word containing "conftest.", or (3) at the end.
17161
# Note that $ac_compile itself does not contain backslashes and begins
17162
# with a dollar sign (not a hyphen), so the echo should work correctly.
17163
# The option is referenced via a variable to avoid confusing sed.
17164
lt_compile=`echo "$ac_compile" | $SED \
17165
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17166
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17167
-e 's:$: $lt_compiler_flag:'`
17168
(eval echo "\"\$as_me:17168: $lt_compile\"" >&5)
17169
(eval "$lt_compile" 2>conftest.err)
17171
cat conftest.err >&5
17172
echo "$as_me:17172: \$? = $ac_status" >&5
17173
if (exit $ac_status) && test -s "$ac_outfile"; then
17174
# The compiler can only warn and ignore the option if not recognized
17175
# So say no if there are warnings other than the usual output.
17176
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17177
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17178
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17179
lt_prog_compiler_pic_works_F77=yes
17185
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17186
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
17188
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17189
case $lt_prog_compiler_pic_F77 in
17191
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17194
lt_prog_compiler_pic_F77=
17195
lt_prog_compiler_can_build_shared_F77=no
17200
# For platforms which do not support PIC, -DPIC is meaningless:
17202
lt_prog_compiler_pic_F77=
17205
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17210
# Check to make sure the static flag actually works.
17212
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17213
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17214
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17215
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
17216
echo $ECHO_N "(cached) $ECHO_C" >&6
17218
lt_prog_compiler_static_works_F77=no
17219
save_LDFLAGS="$LDFLAGS"
17220
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17221
printf "$lt_simple_link_test_code" > conftest.$ac_ext
17222
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17223
# The linker can only warn and ignore the option if not recognized
17224
# So say no if there are warnings
17225
if test -s conftest.err; then
17226
# Append any errors to the config.log.
17227
cat conftest.err 1>&5
17228
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17229
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17230
if diff conftest.exp conftest.er2 >/dev/null; then
17231
lt_prog_compiler_static_works_F77=yes
17234
lt_prog_compiler_static_works_F77=yes
17238
LDFLAGS="$save_LDFLAGS"
17241
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
17242
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
17244
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
17247
lt_prog_compiler_static_F77=
17251
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17252
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17253
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17254
echo $ECHO_N "(cached) $ECHO_C" >&6
17256
lt_cv_prog_compiler_c_o_F77=no
17257
$rm -r conftest 2>/dev/null
17261
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17263
lt_compiler_flag="-o out/conftest2.$ac_objext"
17264
# Insert the option either (1) after the last *FLAGS variable, or
17265
# (2) before a word containing "conftest.", or (3) at the end.
17266
# Note that $ac_compile itself does not contain backslashes and begins
17267
# with a dollar sign (not a hyphen), so the echo should work correctly.
17268
lt_compile=`echo "$ac_compile" | $SED \
17269
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17270
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17271
-e 's:$: $lt_compiler_flag:'`
17272
(eval echo "\"\$as_me:17272: $lt_compile\"" >&5)
17273
(eval "$lt_compile" 2>out/conftest.err)
17275
cat out/conftest.err >&5
17276
echo "$as_me:17276: \$? = $ac_status" >&5
17277
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17279
# The compiler can only warn and ignore the option if not recognized
17280
# So say no if there are warnings
17281
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17282
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17283
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17284
lt_cv_prog_compiler_c_o_F77=yes
17289
# SGI C++ compiler will create directory out/ii_files/ for
17290
# template instantiation
17291
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17292
$rm out/* && rmdir out
17298
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17299
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17302
hard_links="nottested"
17303
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17304
# do not overwrite the value of need_locks provided by the user
17305
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17306
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17309
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17311
ln conftest.a conftest.b 2>&5 || hard_links=no
17312
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17313
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17314
echo "${ECHO_T}$hard_links" >&6; }
17315
if test "$hard_links" = no; then
17316
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17317
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17324
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17325
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17328
allow_undefined_flag_F77=
17329
enable_shared_with_static_runtimes_F77=no
17331
archive_expsym_cmds_F77=
17332
old_archive_From_new_cmds_F77=
17333
old_archive_from_expsyms_cmds_F77=
17334
export_dynamic_flag_spec_F77=
17335
whole_archive_flag_spec_F77=
17336
thread_safe_flag_spec_F77=
17337
hardcode_libdir_flag_spec_F77=
17338
hardcode_libdir_flag_spec_ld_F77=
17339
hardcode_libdir_separator_F77=
17340
hardcode_direct_F77=no
17341
hardcode_minus_L_F77=no
17342
hardcode_shlibpath_var_F77=unsupported
17343
link_all_deplibs_F77=unknown
17344
hardcode_automatic_F77=no
17346
module_expsym_cmds_F77=
17347
always_export_symbols_F77=no
17348
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17349
# include_expsyms should be a list of space-separated symbols to be *always*
17350
# included in the symbol list
17351
include_expsyms_F77=
17352
# exclude_expsyms can be an extended regexp of symbols to exclude
17353
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17354
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17355
# as well as any symbol that contains `d'.
17356
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17357
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17358
# platforms (ab)use it in PIC code, but their linkers get confused if
17359
# the symbol is explicitly referenced. Since portable code cannot
17360
# rely on this symbol name, it's probably fine to never include it in
17361
# preloaded symbol tables.
17362
extract_expsyms_cmds=
17363
# Just being paranoid about ensuring that cc_basename is set.
17364
for cc_temp in $compiler""; do
17366
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17367
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17372
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17375
cygwin* | mingw* | pw32*)
17376
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17377
# When not using gcc, we currently assume that we are using
17378
# Microsoft Visual C++.
17379
if test "$GCC" != yes; then
17384
# we just hope/assume this is gcc and not c89 (= MSVC++)
17393
if test "$with_gnu_ld" = yes; then
17394
# If archive_cmds runs LD, not CC, wlarc should be empty
17397
# Set some defaults for GNU ld with shared library support. These
17398
# are reset later if shared libraries are not supported. Putting them
17399
# here allows them to be overridden if necessary.
17400
runpath_var=LD_RUN_PATH
17401
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17402
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17403
# ancient GNU ld didn't support --whole-archive et. al.
17404
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17405
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17407
whole_archive_flag_spec_F77=
17409
supports_anon_versioning=no
17410
case `$LD -v 2>/dev/null` in
17411
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17412
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17413
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17414
*\ 2.11.*) ;; # other 2.11 versions
17415
*) supports_anon_versioning=yes ;;
17418
# See if GNU ld supports shared libraries.
17420
aix3* | aix4* | aix5*)
17421
# On AIX/PPC, the GNU linker is very broken
17422
if test "$host_cpu" != ia64; then
17426
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17427
*** to be unable to reliably create shared libraries on AIX.
17428
*** Therefore, libtool is disabling shared libraries support. If you
17429
*** really care for shared libraries, you may want to modify your PATH
17430
*** so that a non-GNU linker is found, and then restart.
17437
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)'
17438
hardcode_libdir_flag_spec_F77='-L$libdir'
17439
hardcode_minus_L_F77=yes
17441
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17442
# that the semantics of dynamic libraries on AmigaOS, at least up
17443
# to version 4, is to share data among multiple programs linked
17444
# with the same dynamic library. Since this doesn't match the
17445
# behavior of shared libraries on other platforms, we can't use
17451
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17452
allow_undefined_flag_F77=unsupported
17453
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17454
# support --undefined. This deserves some investigation. FIXME
17455
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17461
cygwin* | mingw* | pw32*)
17462
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17463
# as there is no search path for DLLs.
17464
hardcode_libdir_flag_spec_F77='-L$libdir'
17465
allow_undefined_flag_F77=unsupported
17466
always_export_symbols_F77=no
17467
enable_shared_with_static_runtimes_F77=yes
17468
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17470
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17471
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17472
# If the export-symbols file already is a .def file (1st line
17473
# is EXPORTS), use it as is; otherwise, prepend...
17474
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17475
cp $export_symbols $output_objdir/$soname.def;
17477
echo EXPORTS > $output_objdir/$soname.def;
17478
cat $export_symbols >> $output_objdir/$soname.def;
17480
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17487
hardcode_direct_F77=no
17488
hardcode_shlibpath_var_F77=no
17489
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17490
export_dynamic_flag_spec_F77='${wl}-E'
17491
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17492
# Instead, shared libraries are loaded at an image base (0x10000000 by
17493
# default) and relocated if they conflict, which is a slow very memory
17494
# consuming and fragmenting process. To avoid this, we pick a random,
17495
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17496
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17497
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'
17498
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'
17501
linux* | k*bsd*-gnu)
17502
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17504
case $cc_basename,$host_cpu in
17505
pgcc*) # Portland Group C compiler
17506
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'
17507
tmp_addflag=' $pic_flag'
17509
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17510
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'
17511
tmp_addflag=' $pic_flag -Mnomain' ;;
17512
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17513
tmp_addflag=' -i_dynamic' ;;
17514
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17515
tmp_addflag=' -i_dynamic -nofor_main' ;;
17516
ifc* | ifort*) # Intel Fortran compiler
17517
tmp_addflag=' -nofor_main' ;;
17519
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17521
if test $supports_anon_versioning = yes; then
17522
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17523
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17524
$echo "local: *; };" >> $output_objdir/$libname.ver~
17525
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17527
link_all_deplibs_F77=no
17533
netbsd* | netbsdelf*-gnu)
17534
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17535
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17538
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17539
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17544
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17548
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17549
*** create shared libraries on Solaris systems. Therefore, libtool
17550
*** is disabling shared libraries support. We urge you to upgrade GNU
17551
*** binutils to release 2.9.1 or newer. Another option is to modify
17552
*** your PATH or compiler configuration so that the native linker is
17553
*** used, and then restart.
17556
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17557
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17558
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17564
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17565
case `$LD -v 2>&1` in
17566
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17570
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17571
*** reliably create shared libraries on SCO systems. Therefore, libtool
17572
*** is disabling shared libraries support. We urge you to upgrade GNU
17573
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17574
*** your PATH or compiler configuration so that the native linker is
17575
*** used, and then restart.
17580
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17581
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17582
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17583
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17592
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17594
hardcode_direct_F77=yes
17595
hardcode_shlibpath_var_F77=no
17599
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17600
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17601
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17608
if test "$ld_shlibs_F77" = no; then
17610
hardcode_libdir_flag_spec_F77=
17611
export_dynamic_flag_spec_F77=
17612
whole_archive_flag_spec_F77=
17615
# PORTME fill in a description of your system's linker (not GNU ld)
17618
allow_undefined_flag_F77=unsupported
17619
always_export_symbols_F77=yes
17620
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'
17621
# Note: this linker hardcodes the directories in LIBPATH if there
17622
# are no directories specified by -L.
17623
hardcode_minus_L_F77=yes
17624
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17625
# Neither direct hardcoding nor static linking is supported with a
17627
hardcode_direct_F77=unsupported
17632
if test "$host_cpu" = ia64; then
17633
# On IA64, the linker does run time linking by default, so we don't
17634
# have to do anything special.
17635
aix_use_runtimelinking=no
17636
exp_sym_flag='-Bexport'
17639
# If we're using GNU nm, then we don't want the "-C" option.
17640
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17641
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17642
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'
17644
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'
17646
aix_use_runtimelinking=no
17648
# Test if we are trying to use run time linking or normal
17649
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17650
# need to do runtime linking.
17651
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17652
for ld_flag in $LDFLAGS; do
17653
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17654
aix_use_runtimelinking=yes
17661
exp_sym_flag='-bexport'
17662
no_entry_flag='-bnoentry'
17665
# When large executables or shared objects are built, AIX ld can
17666
# have problems creating the table of contents. If linking a library
17667
# or program results in "error TOC overflow" add -mminimal-toc to
17668
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17669
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17671
archive_cmds_F77=''
17672
hardcode_direct_F77=yes
17673
hardcode_libdir_separator_F77=':'
17674
link_all_deplibs_F77=yes
17676
if test "$GCC" = yes; then
17677
case $host_os in aix4.[012]|aix4.[012].*)
17678
# We only want to do this on AIX 4.2 and lower, the check
17679
# below for broken collect2 doesn't work under 4.3+
17680
collect2name=`${CC} -print-prog-name=collect2`
17681
if test -f "$collect2name" && \
17682
strings "$collect2name" | grep resolve_lib_name >/dev/null
17684
# We have reworked collect2
17685
hardcode_direct_F77=yes
17687
# We have old collect2
17688
hardcode_direct_F77=unsupported
17689
# It fails to find uninstalled libraries when the uninstalled
17690
# path is not listed in the libpath. Setting hardcode_minus_L
17691
# to unsupported forces relinking
17692
hardcode_minus_L_F77=yes
17693
hardcode_libdir_flag_spec_F77='-L$libdir'
17694
hardcode_libdir_separator_F77=
17698
shared_flag='-shared'
17699
if test "$aix_use_runtimelinking" = yes; then
17700
shared_flag="$shared_flag "'${wl}-G'
17704
if test "$host_cpu" = ia64; then
17705
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17706
# chokes on -Wl,-G. The following line is correct:
17709
if test "$aix_use_runtimelinking" = yes; then
17710
shared_flag='${wl}-G'
17712
shared_flag='${wl}-bM:SRE'
17717
# It seems that -bexpall does not export symbols beginning with
17718
# underscore (_), so it is better to generate a list of symbols to export.
17719
always_export_symbols_F77=yes
17720
if test "$aix_use_runtimelinking" = yes; then
17721
# Warning - without using the other runtime loading flags (-brtl),
17722
# -berok will link without error, but may produce a broken library.
17723
allow_undefined_flag_F77='-berok'
17724
# Determine the default libpath from the value encoded in an empty executable.
17725
cat >conftest.$ac_ext <<_ACEOF
17730
rm -f conftest.$ac_objext conftest$ac_exeext
17731
if { (ac_try="$ac_link"
17732
case "(($ac_try" in
17733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734
*) ac_try_echo=$ac_try;;
17736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737
(eval "$ac_link") 2>conftest.er1
17739
grep -v '^ *+' conftest.er1 >conftest.err
17741
cat conftest.err >&5
17742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743
(exit $ac_status); } && {
17744
test -z "$ac_f77_werror_flag" ||
17745
test ! -s conftest.err
17746
} && test -s conftest$ac_exeext &&
17747
$as_test_x conftest$ac_exeext; then
17749
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17751
# Check for a 64-bit object if we didn't find anything.
17752
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17755
echo "$as_me: failed program was:" >&5
17756
sed 's/^/| /' conftest.$ac_ext >&5
17761
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17762
conftest$ac_exeext conftest.$ac_ext
17763
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17765
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17766
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"
17768
if test "$host_cpu" = ia64; then
17769
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17770
allow_undefined_flag_F77="-z nodefs"
17771
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"
17773
# Determine the default libpath from the value encoded in an empty executable.
17774
cat >conftest.$ac_ext <<_ACEOF
17779
rm -f conftest.$ac_objext conftest$ac_exeext
17780
if { (ac_try="$ac_link"
17781
case "(($ac_try" in
17782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783
*) ac_try_echo=$ac_try;;
17785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786
(eval "$ac_link") 2>conftest.er1
17788
grep -v '^ *+' conftest.er1 >conftest.err
17790
cat conftest.err >&5
17791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792
(exit $ac_status); } && {
17793
test -z "$ac_f77_werror_flag" ||
17794
test ! -s conftest.err
17795
} && test -s conftest$ac_exeext &&
17796
$as_test_x conftest$ac_exeext; then
17798
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17800
# Check for a 64-bit object if we didn't find anything.
17801
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17804
echo "$as_me: failed program was:" >&5
17805
sed 's/^/| /' conftest.$ac_ext >&5
17810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17811
conftest$ac_exeext conftest.$ac_ext
17812
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17814
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17815
# Warning - without using the other run time loading flags,
17816
# -berok will link without error, but may produce a broken library.
17817
no_undefined_flag_F77=' ${wl}-bernotok'
17818
allow_undefined_flag_F77=' ${wl}-berok'
17819
# Exported symbols can be pulled into shared objects from archives
17820
whole_archive_flag_spec_F77='$convenience'
17821
archive_cmds_need_lc_F77=yes
17822
# This is similar to how AIX traditionally builds its shared libraries.
17823
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'
17829
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)'
17830
hardcode_libdir_flag_spec_F77='-L$libdir'
17831
hardcode_minus_L_F77=yes
17832
# see comment about different semantics on the GNU ld section
17837
export_dynamic_flag_spec_F77=-rdynamic
17840
cygwin* | mingw* | pw32*)
17841
# When not using gcc, we currently assume that we are using
17842
# Microsoft Visual C++.
17843
# hardcode_libdir_flag_spec is actually meaningless, as there is
17844
# no search path for DLLs.
17845
hardcode_libdir_flag_spec_F77=' '
17846
allow_undefined_flag_F77=unsupported
17847
# Tell ltmain to make .lib files, not .a files.
17849
# Tell ltmain to make .dll files, not .so files.
17851
# FIXME: Setting linknames here is a bad hack.
17852
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17853
# The linker will automatically build a .lib file if we build a DLL.
17854
old_archive_From_new_cmds_F77='true'
17855
# FIXME: Should let the user specify the lib program.
17856
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17857
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17858
enable_shared_with_static_runtimes_F77=yes
17861
darwin* | rhapsody*)
17863
rhapsody* | darwin1.[012])
17864
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17867
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17868
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17870
case ${MACOSX_DEPLOYMENT_TARGET} in
17872
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17875
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17881
archive_cmds_need_lc_F77=no
17882
hardcode_direct_F77=no
17883
hardcode_automatic_F77=yes
17884
hardcode_shlibpath_var_F77=unsupported
17885
whole_archive_flag_spec_F77=''
17886
link_all_deplibs_F77=yes
17887
if test "$GCC" = yes ; then
17888
output_verbose_link_cmd='echo'
17889
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17890
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17891
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17892
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17893
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}'
17895
case $cc_basename in
17897
output_verbose_link_cmd='echo'
17898
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17899
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17900
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17901
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17902
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}'
17912
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17913
hardcode_libdir_flag_spec_F77='-L$libdir'
17914
hardcode_shlibpath_var_F77=no
17921
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17922
# support. Future versions do this automatically, but an explicit c++rt0.o
17923
# does not break anything, and helps significantly (at the cost of a little
17926
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17927
hardcode_libdir_flag_spec_F77='-R$libdir'
17928
hardcode_direct_F77=yes
17929
hardcode_shlibpath_var_F77=no
17932
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17934
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17935
hardcode_direct_F77=yes
17936
hardcode_minus_L_F77=yes
17937
hardcode_shlibpath_var_F77=no
17940
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17941
freebsd* | dragonfly*)
17942
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17943
hardcode_libdir_flag_spec_F77='-R$libdir'
17944
hardcode_direct_F77=yes
17945
hardcode_shlibpath_var_F77=no
17949
if test "$GCC" = yes; then
17950
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'
17952
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'
17954
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17955
hardcode_libdir_separator_F77=:
17956
hardcode_direct_F77=yes
17958
# hardcode_minus_L: Not really in the search PATH,
17959
# but as the default location of the library.
17960
hardcode_minus_L_F77=yes
17961
export_dynamic_flag_spec_F77='${wl}-E'
17965
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17966
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17968
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17970
if test "$with_gnu_ld" = no; then
17971
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17972
hardcode_libdir_separator_F77=:
17974
hardcode_direct_F77=yes
17975
export_dynamic_flag_spec_F77='${wl}-E'
17977
# hardcode_minus_L: Not really in the search PATH,
17978
# but as the default location of the library.
17979
hardcode_minus_L_F77=yes
17984
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17987
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17990
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17993
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17999
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18002
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18005
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18009
if test "$with_gnu_ld" = no; then
18010
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18011
hardcode_libdir_separator_F77=:
18015
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18016
hardcode_direct_F77=no
18017
hardcode_shlibpath_var_F77=no
18020
hardcode_direct_F77=yes
18021
export_dynamic_flag_spec_F77='${wl}-E'
18023
# hardcode_minus_L: Not really in the search PATH,
18024
# but as the default location of the library.
18025
hardcode_minus_L_F77=yes
18031
irix5* | irix6* | nonstopux*)
18032
if test "$GCC" = yes; then
18033
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'
18035
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'
18036
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18038
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18039
hardcode_libdir_separator_F77=:
18040
link_all_deplibs_F77=yes
18043
netbsd* | netbsdelf*-gnu)
18044
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18045
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18047
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18049
hardcode_libdir_flag_spec_F77='-R$libdir'
18050
hardcode_direct_F77=yes
18051
hardcode_shlibpath_var_F77=no
18055
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18056
hardcode_direct_F77=yes
18057
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18058
hardcode_libdir_separator_F77=:
18059
hardcode_shlibpath_var_F77=no
18063
hardcode_direct_F77=yes
18064
hardcode_shlibpath_var_F77=no
18065
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18066
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18067
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18068
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18069
export_dynamic_flag_spec_F77='${wl}-E'
18072
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18073
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18074
hardcode_libdir_flag_spec_F77='-R$libdir'
18077
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18078
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18085
hardcode_libdir_flag_spec_F77='-L$libdir'
18086
hardcode_minus_L_F77=yes
18087
allow_undefined_flag_F77=unsupported
18088
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'
18089
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18093
if test "$GCC" = yes; then
18094
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18095
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'
18097
allow_undefined_flag_F77=' -expect_unresolved \*'
18098
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'
18100
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18101
hardcode_libdir_separator_F77=:
18104
osf4* | osf5*) # as osf3* with the addition of -msym flag
18105
if test "$GCC" = yes; then
18106
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18107
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'
18108
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18110
allow_undefined_flag_F77=' -expect_unresolved \*'
18111
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'
18112
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~
18113
$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'
18115
# Both c and cxx compiler support -rpath directly
18116
hardcode_libdir_flag_spec_F77='-rpath $libdir'
18118
hardcode_libdir_separator_F77=:
18122
no_undefined_flag_F77=' -z text'
18123
if test "$GCC" = yes; then
18125
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18127
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18130
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18132
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18134
hardcode_libdir_flag_spec_F77='-R$libdir'
18135
hardcode_shlibpath_var_F77=no
18137
solaris2.[0-5] | solaris2.[0-5].*) ;;
18139
# The compiler driver will combine linker options so we
18140
# cannot just pass the convience library names through
18141
# without $wl, iff we do not link with $LD.
18142
# Luckily, gcc supports the same syntax we need for Sun Studio.
18143
# Supported since Solaris 2.6 (maybe 2.5.1?)
18146
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18148
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18151
link_all_deplibs_F77=yes
18155
if test "x$host_vendor" = xsequent; then
18156
# Use $CC to link under sequent, because it throws in some extra .o
18157
# files that make .init and .fini sections work.
18158
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18160
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18162
hardcode_libdir_flag_spec_F77='-L$libdir'
18163
hardcode_direct_F77=yes
18164
hardcode_minus_L_F77=yes
18165
hardcode_shlibpath_var_F77=no
18169
case $host_vendor in
18171
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18172
hardcode_direct_F77=yes # is this really true???
18175
## LD is ld it makes a PLAMLIB
18176
## CC just makes a GrossModule.
18177
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18178
reload_cmds_F77='$CC -r -o $output$reload_objs'
18179
hardcode_direct_F77=no
18182
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18183
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18186
runpath_var='LD_RUN_PATH'
18187
hardcode_shlibpath_var_F77=no
18191
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18192
hardcode_shlibpath_var_F77=no
18193
export_dynamic_flag_spec_F77='-Bexport'
18197
if test -d /usr/nec; then
18198
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18199
hardcode_shlibpath_var_F77=no
18200
runpath_var=LD_RUN_PATH
18201
hardcode_runpath_var=yes
18206
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18207
no_undefined_flag_F77='${wl}-z,text'
18208
archive_cmds_need_lc_F77=no
18209
hardcode_shlibpath_var_F77=no
18210
runpath_var='LD_RUN_PATH'
18212
if test "$GCC" = yes; then
18213
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18214
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18216
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18217
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221
sysv5* | sco3.2v5* | sco5v6*)
18222
# Note: We can NOT use -z defs as we might desire, because we do not
18223
# link with -lc, and that would cause any symbols used from libc to
18224
# always be unresolved, which means just about no library would
18225
# ever link correctly. If we're not using GNU ld we use -z text
18226
# though, which does catch some bad symbols but isn't as heavy-handed
18228
no_undefined_flag_F77='${wl}-z,text'
18229
allow_undefined_flag_F77='${wl}-z,nodefs'
18230
archive_cmds_need_lc_F77=no
18231
hardcode_shlibpath_var_F77=no
18232
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18233
hardcode_libdir_separator_F77=':'
18234
link_all_deplibs_F77=yes
18235
export_dynamic_flag_spec_F77='${wl}-Bexport'
18236
runpath_var='LD_RUN_PATH'
18238
if test "$GCC" = yes; then
18239
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18240
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18242
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18248
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249
hardcode_libdir_flag_spec_F77='-L$libdir'
18250
hardcode_shlibpath_var_F77=no
18259
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18260
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18261
test "$ld_shlibs_F77" = no && can_build_shared=no
18264
# Do we need to explicitly link libc?
18266
case "x$archive_cmds_need_lc_F77" in
18268
# Assume -lc should be added
18269
archive_cmds_need_lc_F77=yes
18271
if test "$enable_shared" = yes && test "$GCC" = yes; then
18272
case $archive_cmds_F77 in
18274
# FIXME: we may have to deal with multi-command sequences.
18277
# Test whether the compiler implicitly links with -lc since on some
18278
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18279
# to ld, don't add -lc before -lgcc.
18280
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18281
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18283
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18286
(eval $ac_compile) 2>&5
18288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289
(exit $ac_status); } 2>conftest.err; then
18292
libobjs=conftest.$ac_objext
18294
wl=$lt_prog_compiler_wl_F77
18295
pic_flag=$lt_prog_compiler_pic_F77
18301
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18302
allow_undefined_flag_F77=
18303
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18304
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307
(exit $ac_status); }
18309
archive_cmds_need_lc_F77=no
18311
archive_cmds_need_lc_F77=yes
18313
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18315
cat conftest.err 1>&5
18318
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18319
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18326
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18327
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18328
library_names_spec=
18329
libname_spec='lib$name'
18333
postuninstall_cmds=
18337
shlibpath_overrides_runpath=unknown
18339
dynamic_linker="$host_os ld.so"
18340
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18341
if test "$GCC" = yes; then
18342
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18343
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18344
# if the path contains ";" then we assume it to be the separator
18345
# otherwise default to the standard path separator (i.e. ":") - it is
18346
# assumed that no part of a normal pathname contains ";" but that should
18347
# okay in the real world where ";" in dirpaths is itself problematic.
18348
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18350
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18353
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18355
need_lib_prefix=unknown
18356
hardcode_into_libs=no
18358
# when you set need_version to no, make sure it does not cause -set_version
18359
# flags to be left without arguments
18360
need_version=unknown
18365
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18366
shlibpath_var=LIBPATH
18368
# AIX 3 has no versioning support, so we append a major version to the name.
18369
soname_spec='${libname}${release}${shared_ext}$major'
18376
hardcode_into_libs=yes
18377
if test "$host_cpu" = ia64; then
18378
# AIX 5 supports IA64
18379
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18380
shlibpath_var=LD_LIBRARY_PATH
18382
# With GCC up to 2.95.x, collect2 would create an import file
18383
# for dependence libraries. The import file would start with
18384
# the line `#! .'. This would cause the generated library to
18385
# depend on `.', always an invalid library. This was fixed in
18386
# development snapshots of GCC prior to 3.0.
18388
aix4 | aix4.[01] | aix4.[01].*)
18389
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18391
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18394
can_build_shared=no
18398
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18399
# soname into executable. Probably we can add versioning support to
18400
# collect2, so additional links can be useful in future.
18401
if test "$aix_use_runtimelinking" = yes; then
18402
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18403
# instead of lib<name>.a to let people know that these are not
18404
# typical AIX shared libraries.
18405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407
# We preserve .a as extension for shared libraries through AIX4.2
18408
# and later when we are not doing run time linking.
18409
library_names_spec='${libname}${release}.a $libname.a'
18410
soname_spec='${libname}${release}${shared_ext}$major'
18412
shlibpath_var=LIBPATH
18417
library_names_spec='$libname.ixlibrary $libname.a'
18418
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18419
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'
18423
library_names_spec='${libname}${shared_ext}'
18424
dynamic_linker="$host_os ld.so"
18425
shlibpath_var=LIBRARY_PATH
18431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432
soname_spec='${libname}${release}${shared_ext}$major'
18433
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18434
shlibpath_var=LD_LIBRARY_PATH
18435
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18436
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18437
# the default ld.so.conf also contains /usr/contrib/lib and
18438
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18439
# libtool to hard-code these into programs
18442
cygwin* | mingw* | pw32*)
18443
version_type=windows
18448
case $GCC,$host_os in
18449
yes,cygwin* | yes,mingw* | yes,pw32*)
18450
library_names_spec='$libname.dll.a'
18451
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18452
postinstall_cmds='base_file=`basename \${file}`~
18453
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18454
dldir=$destdir/`dirname \$dlpath`~
18455
test -d \$dldir || mkdir -p \$dldir~
18456
$install_prog $dir/$dlname \$dldir/$dlname~
18457
chmod a+x \$dldir/$dlname'
18458
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18459
dlpath=$dir/\$dldll~
18461
shlibpath_overrides_runpath=yes
18465
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18466
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18467
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18470
# MinGW DLLs use traditional 'lib' prefix
18471
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18472
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18473
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18474
# It is most probably a Windows format PATH printed by
18475
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18476
# path with ; separators, and with drive letters. We can handle the
18477
# drive letters (cygwin fileutils understands them), so leave them,
18478
# especially as we might pass files found there to a mingw objdump,
18479
# which wouldn't understand a cygwinified path. Ahh.
18480
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18482
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18486
# pw32 DLLs use 'pw' prefix rather than 'lib'
18487
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18493
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18496
dynamic_linker='Win32 ld.exe'
18497
# FIXME: first we should search . and the directory the executable is in
18501
darwin* | rhapsody*)
18502
dynamic_linker="$host_os dyld"
18503
version_type=darwin
18506
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18507
soname_spec='${libname}${release}${major}$shared_ext'
18508
shlibpath_overrides_runpath=yes
18509
shlibpath_var=DYLD_LIBRARY_PATH
18510
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18511
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18512
if test "$GCC" = yes; then
18513
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18515
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18517
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18525
soname_spec='${libname}${release}${shared_ext}$major'
18526
shlibpath_var=LD_LIBRARY_PATH
18533
freebsd* | dragonfly*)
18534
# DragonFly does not have aout. When/if they implement a new
18535
# versioning mechanism, adjust this.
18536
if test -x /usr/bin/objformat; then
18537
objformat=`/usr/bin/objformat`
18540
freebsd[123]*) objformat=aout ;;
18541
*) objformat=elf ;;
18544
version_type=freebsd-$objformat
18545
case $version_type in
18547
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18552
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18556
shlibpath_var=LD_LIBRARY_PATH
18559
shlibpath_overrides_runpath=yes
18561
freebsd3.[01]* | freebsdelf3.[01]*)
18562
shlibpath_overrides_runpath=yes
18563
hardcode_into_libs=yes
18565
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18566
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18567
shlibpath_overrides_runpath=no
18568
hardcode_into_libs=yes
18570
freebsd*) # from 4.6 on
18571
shlibpath_overrides_runpath=yes
18572
hardcode_into_libs=yes
18581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18582
soname_spec='${libname}${release}${shared_ext}$major'
18583
shlibpath_var=LD_LIBRARY_PATH
18584
hardcode_into_libs=yes
18587
hpux9* | hpux10* | hpux11*)
18588
# Give a soname corresponding to the major version so that dld.sl refuses to
18589
# link against other versions.
18596
hardcode_into_libs=yes
18597
dynamic_linker="$host_os dld.so"
18598
shlibpath_var=LD_LIBRARY_PATH
18599
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601
soname_spec='${libname}${release}${shared_ext}$major'
18602
if test "X$HPUX_IA64_MODE" = X32; then
18603
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18605
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18607
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18611
hardcode_into_libs=yes
18612
dynamic_linker="$host_os dld.sl"
18613
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18614
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616
soname_spec='${libname}${release}${shared_ext}$major'
18617
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18618
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18622
dynamic_linker="$host_os dld.sl"
18623
shlibpath_var=SHLIB_PATH
18624
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626
soname_spec='${libname}${release}${shared_ext}$major'
18629
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18630
postinstall_cmds='chmod 555 $lib'
18637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18638
soname_spec='${libname}${release}${shared_ext}$major'
18639
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18640
shlibpath_var=LD_LIBRARY_PATH
18641
shlibpath_overrides_runpath=no
18642
hardcode_into_libs=yes
18645
irix5* | irix6* | nonstopux*)
18647
nonstopux*) version_type=nonstopux ;;
18649
if test "$lt_cv_prog_gnu_ld" = yes; then
18657
soname_spec='${libname}${release}${shared_ext}$major'
18658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18660
irix5* | nonstopux*)
18661
libsuff= shlibsuff=
18664
case $LD in # libtool.m4 will add one of these switches to LD
18665
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18666
libsuff= shlibsuff= libmagic=32-bit;;
18667
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18668
libsuff=32 shlibsuff=N32 libmagic=N32;;
18669
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18670
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18671
*) libsuff= shlibsuff= libmagic=never-match;;
18675
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18676
shlibpath_overrides_runpath=no
18677
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18678
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18679
hardcode_into_libs=yes
18682
# No shared lib support for Linux oldld, aout, or coff.
18683
linux*oldld* | linux*aout* | linux*coff*)
18687
# This must be Linux ELF.
18688
linux* | k*bsd*-gnu)
18692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693
soname_spec='${libname}${release}${shared_ext}$major'
18694
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18695
shlibpath_var=LD_LIBRARY_PATH
18696
shlibpath_overrides_runpath=no
18697
# This implies no fast_install, which is unacceptable.
18698
# Some rework will be needed to allow for fast_install
18699
# before this can be enabled.
18700
hardcode_into_libs=yes
18702
# Append ld.so.conf contents to the search path
18703
if test -f /etc/ld.so.conf; then
18704
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18705
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18708
# We used to test for /lib/ld.so.1 and disable shared libraries on
18709
# powerpc, because MkLinux only supported shared libraries with the
18710
# GNU dynamic linker. Since this was broken with cross compilers,
18711
# most powerpc-linux boxes support dynamic linking these days and
18712
# people can always --disable-shared, the test was removed, and we
18713
# assume the GNU/Linux dynamic linker is in use.
18714
dynamic_linker='GNU/Linux ld.so'
18721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18722
soname_spec='${libname}${release}${shared_ext}$major'
18723
shlibpath_var=LD_LIBRARY_PATH
18724
shlibpath_overrides_runpath=no
18725
hardcode_into_libs=yes
18726
dynamic_linker='NetBSD ld.elf_so'
18733
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18735
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18736
dynamic_linker='NetBSD (a.out) ld.so'
18738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18739
soname_spec='${libname}${release}${shared_ext}$major'
18740
dynamic_linker='NetBSD ld.elf_so'
18742
shlibpath_var=LD_LIBRARY_PATH
18743
shlibpath_overrides_runpath=yes
18744
hardcode_into_libs=yes
18749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750
shlibpath_var=LD_LIBRARY_PATH
18751
shlibpath_overrides_runpath=yes
18758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18759
soname_spec='${libname}${release}${shared_ext}$major'
18760
shlibpath_var=LD_LIBRARY_PATH
18761
shlibpath_overrides_runpath=yes
18766
sys_lib_dlsearch_path_spec="/usr/lib"
18768
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18770
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18771
*) need_version=no ;;
18773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18774
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18775
shlibpath_var=LD_LIBRARY_PATH
18776
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18778
openbsd2.[89] | openbsd2.[89].*)
18779
shlibpath_overrides_runpath=no
18782
shlibpath_overrides_runpath=yes
18786
shlibpath_overrides_runpath=yes
18791
libname_spec='$name'
18794
library_names_spec='$libname${shared_ext} $libname.a'
18795
dynamic_linker='OS/2 ld.exe'
18796
shlibpath_var=LIBPATH
18799
osf3* | osf4* | osf5*)
18803
soname_spec='${libname}${release}${shared_ext}$major'
18804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18805
shlibpath_var=LD_LIBRARY_PATH
18806
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18807
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18815
soname_spec='${libname}${release}${shared_ext}$major'
18816
shlibpath_var=LD_LIBRARY_PATH
18817
shlibpath_overrides_runpath=yes
18818
hardcode_into_libs=yes
18819
# ldd complains unless libraries are executable
18820
postinstall_cmds='chmod +x $lib'
18825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18826
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18827
shlibpath_var=LD_LIBRARY_PATH
18828
shlibpath_overrides_runpath=yes
18829
if test "$with_gnu_ld" = yes; then
18837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18838
soname_spec='${libname}${release}${shared_ext}$major'
18839
shlibpath_var=LD_LIBRARY_PATH
18840
case $host_vendor in
18842
shlibpath_overrides_runpath=no
18844
export_dynamic_flag_spec='${wl}-Blargedynsym'
18845
runpath_var=LD_RUN_PATH
18853
shlibpath_overrides_runpath=no
18854
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18860
if test -d /usr/nec ;then
18862
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18863
soname_spec='$libname${shared_ext}.$major'
18864
shlibpath_var=LD_LIBRARY_PATH
18868
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18869
version_type=freebsd-elf
18872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18873
soname_spec='${libname}${release}${shared_ext}$major'
18874
shlibpath_var=LD_LIBRARY_PATH
18875
hardcode_into_libs=yes
18876
if test "$with_gnu_ld" = yes; then
18877
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18878
shlibpath_overrides_runpath=no
18880
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18881
shlibpath_overrides_runpath=yes
18884
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18888
sys_lib_dlsearch_path_spec='/usr/lib'
18893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894
soname_spec='${libname}${release}${shared_ext}$major'
18895
shlibpath_var=LD_LIBRARY_PATH
18902
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18903
echo "${ECHO_T}$dynamic_linker" >&6; }
18904
test "$dynamic_linker" = no && can_build_shared=no
18906
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18907
if test "$GCC" = yes; then
18908
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18911
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18912
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18913
hardcode_action_F77=
18914
if test -n "$hardcode_libdir_flag_spec_F77" || \
18915
test -n "$runpath_var_F77" || \
18916
test "X$hardcode_automatic_F77" = "Xyes" ; then
18918
# We can hardcode non-existant directories.
18919
if test "$hardcode_direct_F77" != no &&
18920
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18921
# have to relink, otherwise we might link with an installed library
18922
# when we should be linking with a yet-to-be-installed one
18923
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18924
test "$hardcode_minus_L_F77" != no; then
18925
# Linking always hardcodes the temporary library directory.
18926
hardcode_action_F77=relink
18928
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18929
hardcode_action_F77=immediate
18932
# We cannot hardcode anything, or else we can only hardcode existing
18934
hardcode_action_F77=unsupported
18936
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18937
echo "${ECHO_T}$hardcode_action_F77" >&6; }
18939
if test "$hardcode_action_F77" = relink; then
18940
# Fast installation is not supported
18941
enable_fast_install=no
18942
elif test "$shlibpath_overrides_runpath" = yes ||
18943
test "$enable_shared" = no; then
18944
# Fast installation is not necessary
18945
enable_fast_install=needless
18949
# The else clause should only fire when bootstrapping the
18950
# libtool distribution, otherwise you forgot to ship ltmain.sh
18951
# with your package, and you will get complaints that there are
18952
# no rules to generate ltmain.sh.
18953
if test -f "$ltmain"; then
18954
# See if we are running on zsh, and set the options which allow our commands through
18955
# without removal of \ escapes.
18956
if test -n "${ZSH_VERSION+set}" ; then
18957
setopt NO_GLOB_SUBST
18959
# Now quote all the things that may contain metacharacters while being
18960
# careful not to overquote the AC_SUBSTed values. We take copies of the
18961
# variables and quote the copies for generation of the libtool script.
18962
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18964
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18965
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18966
deplibs_check_method reload_flag reload_cmds need_locks \
18967
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18968
lt_cv_sys_global_symbol_to_c_name_address \
18969
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18970
old_postinstall_cmds old_postuninstall_cmds \
18974
lt_prog_compiler_wl_F77 \
18975
lt_prog_compiler_pic_F77 \
18976
lt_prog_compiler_static_F77 \
18977
lt_prog_compiler_no_builtin_flag_F77 \
18978
export_dynamic_flag_spec_F77 \
18979
thread_safe_flag_spec_F77 \
18980
whole_archive_flag_spec_F77 \
18981
enable_shared_with_static_runtimes_F77 \
18982
old_archive_cmds_F77 \
18983
old_archive_from_new_cmds_F77 \
18984
predep_objects_F77 \
18985
postdep_objects_F77 \
18988
compiler_lib_search_path_F77 \
18990
archive_expsym_cmds_F77 \
18991
postinstall_cmds_F77 \
18992
postuninstall_cmds_F77 \
18993
old_archive_from_expsyms_cmds_F77 \
18994
allow_undefined_flag_F77 \
18995
no_undefined_flag_F77 \
18996
export_symbols_cmds_F77 \
18997
hardcode_libdir_flag_spec_F77 \
18998
hardcode_libdir_flag_spec_ld_F77 \
18999
hardcode_libdir_separator_F77 \
19000
hardcode_automatic_F77 \
19002
module_expsym_cmds_F77 \
19003
lt_cv_prog_compiler_c_o_F77 \
19004
exclude_expsyms_F77 \
19005
include_expsyms_F77; do
19008
old_archive_cmds_F77 | \
19009
old_archive_from_new_cmds_F77 | \
19010
archive_cmds_F77 | \
19011
archive_expsym_cmds_F77 | \
19012
module_cmds_F77 | \
19013
module_expsym_cmds_F77 | \
19014
old_archive_from_expsyms_cmds_F77 | \
19015
export_symbols_cmds_F77 | \
19016
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19017
postinstall_cmds | postuninstall_cmds | \
19018
old_postinstall_cmds | old_postuninstall_cmds | \
19019
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19020
# Double-quote double-evaled strings.
19021
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19024
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19030
*'\$0 --fallback-echo"')
19031
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19037
cat <<__EOF__ >> "$cfgfile"
19038
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19040
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19042
# Shell to use when invoking shell scripts.
19045
# Whether or not to build shared libraries.
19046
build_libtool_libs=$enable_shared
19048
# Whether or not to build static libraries.
19049
build_old_libs=$enable_static
19051
# Whether or not to add -lc for building shared libraries.
19052
build_libtool_need_lc=$archive_cmds_need_lc_F77
19054
# Whether or not to disallow shared libs when runtime libs are static
19055
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19057
# Whether or not to optimize for fast installation.
19058
fast_install=$enable_fast_install
19061
host_alias=$host_alias
19065
# The build system.
19066
build_alias=$build_alias
19070
# An echo program that does not interpret backslashes.
19075
AR_FLAGS=$lt_AR_FLAGS
19080
# LTCC compiler flags.
19081
LTCFLAGS=$lt_LTCFLAGS
19083
# A language-specific compiler.
19084
CC=$lt_compiler_F77
19086
# Is the compiler the GNU C compiler?
19092
# The linker used to build libraries.
19095
# Whether we need hard or soft links.
19098
# A BSD-compatible nm program.
19101
# A symbol stripping program
19104
# Used to examine libraries when file_magic_cmd begins "file"
19105
MAGIC_CMD=$MAGIC_CMD
19107
# Used on cygwin: DLL creation program.
19110
# Used on cygwin: object dumper.
19113
# Used on cygwin: assembler.
19116
# The name of the directory that contains temporary libtool files.
19119
# How to create reloadable object files.
19120
reload_flag=$lt_reload_flag
19121
reload_cmds=$lt_reload_cmds
19123
# How to pass a linker flag through the compiler.
19124
wl=$lt_lt_prog_compiler_wl_F77
19126
# Object file suffix (normally "o").
19127
objext="$ac_objext"
19129
# Old archive suffix (normally "a").
19132
# Shared library suffix (normally ".so").
19133
shrext_cmds='$shrext_cmds'
19135
# Executable file suffix (normally "").
19138
# Additional compiler flags for building library objects.
19139
pic_flag=$lt_lt_prog_compiler_pic_F77
19142
# What is the maximum length of a command?
19143
max_cmd_len=$lt_cv_sys_max_cmd_len
19145
# Does compiler simultaneously support -c and -o options?
19146
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19148
# Must we lock files when doing compilation?
19149
need_locks=$lt_need_locks
19151
# Do we need the lib prefix for modules?
19152
need_lib_prefix=$need_lib_prefix
19154
# Do we need a version for libraries?
19155
need_version=$need_version
19157
# Whether dlopen is supported.
19158
dlopen_support=$enable_dlopen
19160
# Whether dlopen of programs is supported.
19161
dlopen_self=$enable_dlopen_self
19163
# Whether dlopen of statically linked programs is supported.
19164
dlopen_self_static=$enable_dlopen_self_static
19166
# Compiler flag to prevent dynamic linking.
19167
link_static_flag=$lt_lt_prog_compiler_static_F77
19169
# Compiler flag to turn off builtin functions.
19170
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19172
# Compiler flag to allow reflexive dlopens.
19173
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19175
# Compiler flag to generate shared objects directly from archives.
19176
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19178
# Compiler flag to generate thread-safe objects.
19179
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19181
# Library versioning type.
19182
version_type=$version_type
19184
# Format of library name prefix.
19185
libname_spec=$lt_libname_spec
19187
# List of archive names. First name is the real one, the rest are links.
19188
# The last name is the one that the linker finds with -lNAME.
19189
library_names_spec=$lt_library_names_spec
19191
# The coded name of the library, if different from the real name.
19192
soname_spec=$lt_soname_spec
19194
# Commands used to build and install an old-style archive.
19196
old_archive_cmds=$lt_old_archive_cmds_F77
19197
old_postinstall_cmds=$lt_old_postinstall_cmds
19198
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19200
# Create an old-style archive from a shared archive.
19201
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19203
# Create a temporary old-style archive to link instead of a shared archive.
19204
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19206
# Commands used to build and install a shared archive.
19207
archive_cmds=$lt_archive_cmds_F77
19208
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19209
postinstall_cmds=$lt_postinstall_cmds
19210
postuninstall_cmds=$lt_postuninstall_cmds
19212
# Commands used to build a loadable module (assumed same as above if empty)
19213
module_cmds=$lt_module_cmds_F77
19214
module_expsym_cmds=$lt_module_expsym_cmds_F77
19216
# Commands to strip libraries.
19217
old_striplib=$lt_old_striplib
19218
striplib=$lt_striplib
19220
# Dependencies to place before the objects being linked to create a
19222
predep_objects=$lt_predep_objects_F77
19224
# Dependencies to place after the objects being linked to create a
19226
postdep_objects=$lt_postdep_objects_F77
19228
# Dependencies to place before the objects being linked to create a
19230
predeps=$lt_predeps_F77
19232
# Dependencies to place after the objects being linked to create a
19234
postdeps=$lt_postdeps_F77
19236
# The library search path used internally by the compiler when linking
19237
# a shared library.
19238
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19240
# Method to check whether dependent libraries are shared objects.
19241
deplibs_check_method=$lt_deplibs_check_method
19243
# Command to use when deplibs_check_method == file_magic.
19244
file_magic_cmd=$lt_file_magic_cmd
19246
# Flag that allows shared libraries with undefined symbols to be built.
19247
allow_undefined_flag=$lt_allow_undefined_flag_F77
19249
# Flag that forces no undefined symbols.
19250
no_undefined_flag=$lt_no_undefined_flag_F77
19252
# Commands used to finish a libtool library installation in a directory.
19253
finish_cmds=$lt_finish_cmds
19255
# Same as above, but a single script fragment to be evaled but not shown.
19256
finish_eval=$lt_finish_eval
19258
# Take the output of nm and produce a listing of raw symbols and C names.
19259
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19261
# Transform the output of nm in a proper C declaration
19262
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19264
# Transform the output of nm in a C name address pair
19265
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19267
# This is the shared library runtime path variable.
19268
runpath_var=$runpath_var
19270
# This is the shared library path variable.
19271
shlibpath_var=$shlibpath_var
19273
# Is shlibpath searched before the hard-coded library search path?
19274
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19276
# How to hardcode a shared library path into an executable.
19277
hardcode_action=$hardcode_action_F77
19279
# Whether we should hardcode library paths into libraries.
19280
hardcode_into_libs=$hardcode_into_libs
19282
# Flag to hardcode \$libdir into a binary during linking.
19283
# This must work even if \$libdir does not exist.
19284
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19286
# If ld is used when linking, flag to hardcode \$libdir into
19287
# a binary during linking. This must work even if \$libdir does
19289
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19291
# Whether we need a single -rpath flag with a separated argument.
19292
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19294
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19295
# resulting binary.
19296
hardcode_direct=$hardcode_direct_F77
19298
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19299
# resulting binary.
19300
hardcode_minus_L=$hardcode_minus_L_F77
19302
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19303
# the resulting binary.
19304
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19306
# Set to yes if building a shared library automatically hardcodes DIR into the library
19307
# and all subsequent libraries and executables linked against it.
19308
hardcode_automatic=$hardcode_automatic_F77
19310
# Variables whose values should be saved in libtool wrapper scripts and
19311
# restored at relink time.
19312
variables_saved_for_relink="$variables_saved_for_relink"
19314
# Whether libtool must link a program against all its dependency libraries.
19315
link_all_deplibs=$link_all_deplibs_F77
19317
# Compile-time system search path for libraries
19318
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19320
# Run-time system search path for libraries
19321
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19323
# Fix the shell variable \$srcfile for the compiler.
19324
fix_srcfile_path="$fix_srcfile_path_F77"
19326
# Set to yes if exported symbols are required.
19327
always_export_symbols=$always_export_symbols_F77
19329
# The commands to list exported symbols.
19330
export_symbols_cmds=$lt_export_symbols_cmds_F77
19332
# The commands to extract the exported symbol list from a shared archive.
19333
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19335
# Symbols that should not be listed in the preloaded symbols.
19336
exclude_expsyms=$lt_exclude_expsyms_F77
19338
# Symbols that must always be exported.
19339
include_expsyms=$lt_include_expsyms_F77
19341
# ### END LIBTOOL TAG CONFIG: $tagname
19347
# If there is no Makefile yet, we rely on a make rule to execute
19348
# `config.status --recheck' to rerun these tests and create the
19349
# libtool script then.
19350
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19351
if test -f "$ltmain_in"; then
19352
test -f Makefile && make "$ltmain"
19358
ac_cpp='$CPP $CPPFLAGS'
19359
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19360
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19361
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19371
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19374
# Source file extension for Java test sources.
19377
# Object file extension for compiled Java test sources.
19381
# Code to be used in simple compile tests
19382
lt_simple_compile_test_code="class foo {}\n"
19384
# Code to be used in simple link tests
19385
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
19387
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19389
# If no C compiler was specified, use CC.
19392
# If no C compiler flags were specified, use CFLAGS.
19393
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19395
# Allow CC to be a program name with arguments.
19399
# save warnings/boilerplate of simple test code
19400
ac_outfile=conftest.$ac_objext
19401
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19402
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19403
_lt_compiler_boilerplate=`cat conftest.err`
19406
ac_outfile=conftest.$ac_objext
19407
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19408
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19409
_lt_linker_boilerplate=`cat conftest.err`
19413
# Allow CC to be a program name with arguments.
19418
for cc_temp in $compiler""; do
19420
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19421
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19426
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19429
# GCJ did not exist at the time GCC didn't implicitly link libc in.
19430
archive_cmds_need_lc_GCJ=no
19432
old_archive_cmds_GCJ=$old_archive_cmds
19435
## There is no encapsulation within the following macros, do not change
19436
## the running order or otherwise move them around unless you know exactly
19437
## what you are doing...
19439
lt_prog_compiler_no_builtin_flag_GCJ=
19441
if test "$GCC" = yes; then
19442
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19445
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19446
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19447
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19448
echo $ECHO_N "(cached) $ECHO_C" >&6
19450
lt_cv_prog_compiler_rtti_exceptions=no
19451
ac_outfile=conftest.$ac_objext
19452
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19453
lt_compiler_flag="-fno-rtti -fno-exceptions"
19454
# Insert the option either (1) after the last *FLAGS variable, or
19455
# (2) before a word containing "conftest.", or (3) at the end.
19456
# Note that $ac_compile itself does not contain backslashes and begins
19457
# with a dollar sign (not a hyphen), so the echo should work correctly.
19458
# The option is referenced via a variable to avoid confusing sed.
19459
lt_compile=`echo "$ac_compile" | $SED \
19460
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19461
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19462
-e 's:$: $lt_compiler_flag:'`
19463
(eval echo "\"\$as_me:19463: $lt_compile\"" >&5)
19464
(eval "$lt_compile" 2>conftest.err)
19466
cat conftest.err >&5
19467
echo "$as_me:19467: \$? = $ac_status" >&5
19468
if (exit $ac_status) && test -s "$ac_outfile"; then
19469
# The compiler can only warn and ignore the option if not recognized
19470
# So say no if there are warnings other than the usual output.
19471
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19472
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19473
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19474
lt_cv_prog_compiler_rtti_exceptions=yes
19480
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19481
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19483
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19484
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19491
lt_prog_compiler_wl_GCJ=
19492
lt_prog_compiler_pic_GCJ=
19493
lt_prog_compiler_static_GCJ=
19495
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19496
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19498
if test "$GCC" = yes; then
19499
lt_prog_compiler_wl_GCJ='-Wl,'
19500
lt_prog_compiler_static_GCJ='-static'
19504
# All AIX code is PIC.
19505
if test "$host_cpu" = ia64; then
19506
# AIX 5 now supports IA64 processor
19507
lt_prog_compiler_static_GCJ='-Bstatic'
19512
# FIXME: we need at least 68020 code to build shared libraries, but
19513
# adding the `-m68020' flag to GCC prevents building anything better,
19515
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19518
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19519
# PIC is the default for these OSes.
19522
mingw* | pw32* | os2*)
19523
# This hack is so that the source file can tell whether it is being
19524
# built for inclusion in a dll (and should export symbols for example).
19525
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19528
darwin* | rhapsody*)
19529
# PIC is the default on this platform
19530
# Common symbols not allowed in MH_DYLIB files
19531
lt_prog_compiler_pic_GCJ='-fno-common'
19535
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
19536
# Instead, we relocate shared libraries at runtime.
19540
# Just because we use GCC doesn't mean we suddenly get shared libraries
19541
# on systems that don't support them.
19542
lt_prog_compiler_can_build_shared_GCJ=no
19547
if test -d /usr/nec; then
19548
lt_prog_compiler_pic_GCJ=-Kconform_pic
19553
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19554
# not for PA HP-UX.
19560
lt_prog_compiler_pic_GCJ='-fPIC'
19566
lt_prog_compiler_pic_GCJ='-fPIC'
19570
# PORTME Check for flag to pass linker flags through the system compiler.
19573
lt_prog_compiler_wl_GCJ='-Wl,'
19574
if test "$host_cpu" = ia64; then
19575
# AIX 5 now supports IA64 processor
19576
lt_prog_compiler_static_GCJ='-Bstatic'
19578
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19582
# PIC is the default on this platform
19583
# Common symbols not allowed in MH_DYLIB files
19584
case $cc_basename in
19586
lt_prog_compiler_pic_GCJ='-qnocommon'
19587
lt_prog_compiler_wl_GCJ='-Wl,'
19592
mingw* | pw32* | os2*)
19593
# This hack is so that the source file can tell whether it is being
19594
# built for inclusion in a dll (and should export symbols for example).
19595
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19598
hpux9* | hpux10* | hpux11*)
19599
lt_prog_compiler_wl_GCJ='-Wl,'
19600
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19601
# not for PA HP-UX.
19607
lt_prog_compiler_pic_GCJ='+Z'
19610
# Is there a better lt_prog_compiler_static that works with the bundled CC?
19611
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19614
irix5* | irix6* | nonstopux*)
19615
lt_prog_compiler_wl_GCJ='-Wl,'
19616
# PIC (with -KPIC) is the default.
19617
lt_prog_compiler_static_GCJ='-non_shared'
19621
lt_prog_compiler_pic_GCJ='-KPIC'
19622
lt_prog_compiler_static_GCJ='-Bstatic'
19625
linux* | k*bsd*-gnu)
19626
case $cc_basename in
19628
lt_prog_compiler_wl_GCJ='-Wl,'
19629
lt_prog_compiler_pic_GCJ='-KPIC'
19630
lt_prog_compiler_static_GCJ='-static'
19632
pgcc* | pgf77* | pgf90* | pgf95*)
19633
# Portland Group compilers (*not* the Pentium gcc compiler,
19634
# which looks to be a dead project)
19635
lt_prog_compiler_wl_GCJ='-Wl,'
19636
lt_prog_compiler_pic_GCJ='-fpic'
19637
lt_prog_compiler_static_GCJ='-Bstatic'
19640
lt_prog_compiler_wl_GCJ='-Wl,'
19641
# All Alpha code is PIC.
19642
lt_prog_compiler_static_GCJ='-non_shared'
19647
osf3* | osf4* | osf5*)
19648
lt_prog_compiler_wl_GCJ='-Wl,'
19649
# All OSF/1 code is PIC.
19650
lt_prog_compiler_static_GCJ='-non_shared'
19654
lt_prog_compiler_pic_GCJ='-KPIC'
19655
lt_prog_compiler_static_GCJ='-Bstatic'
19656
case $cc_basename in
19657
f77* | f90* | f95*)
19658
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19660
lt_prog_compiler_wl_GCJ='-Wl,';;
19665
lt_prog_compiler_wl_GCJ='-Qoption ld '
19666
lt_prog_compiler_pic_GCJ='-PIC'
19667
lt_prog_compiler_static_GCJ='-Bstatic'
19670
sysv4 | sysv4.2uw2* | sysv4.3*)
19671
lt_prog_compiler_wl_GCJ='-Wl,'
19672
lt_prog_compiler_pic_GCJ='-KPIC'
19673
lt_prog_compiler_static_GCJ='-Bstatic'
19677
if test -d /usr/nec ;then
19678
lt_prog_compiler_pic_GCJ='-Kconform_pic'
19679
lt_prog_compiler_static_GCJ='-Bstatic'
19683
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19684
lt_prog_compiler_wl_GCJ='-Wl,'
19685
lt_prog_compiler_pic_GCJ='-KPIC'
19686
lt_prog_compiler_static_GCJ='-Bstatic'
19690
lt_prog_compiler_wl_GCJ='-Wl,'
19691
lt_prog_compiler_can_build_shared_GCJ=no
19695
lt_prog_compiler_pic_GCJ='-pic'
19696
lt_prog_compiler_static_GCJ='-Bstatic'
19700
lt_prog_compiler_can_build_shared_GCJ=no
19705
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19706
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
19709
# Check to make sure the PIC flag actually works.
19711
if test -n "$lt_prog_compiler_pic_GCJ"; then
19713
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19714
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19715
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19716
echo $ECHO_N "(cached) $ECHO_C" >&6
19718
lt_prog_compiler_pic_works_GCJ=no
19719
ac_outfile=conftest.$ac_objext
19720
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19721
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19722
# Insert the option either (1) after the last *FLAGS variable, or
19723
# (2) before a word containing "conftest.", or (3) at the end.
19724
# Note that $ac_compile itself does not contain backslashes and begins
19725
# with a dollar sign (not a hyphen), so the echo should work correctly.
19726
# The option is referenced via a variable to avoid confusing sed.
19727
lt_compile=`echo "$ac_compile" | $SED \
19728
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19729
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19730
-e 's:$: $lt_compiler_flag:'`
19731
(eval echo "\"\$as_me:19731: $lt_compile\"" >&5)
19732
(eval "$lt_compile" 2>conftest.err)
19734
cat conftest.err >&5
19735
echo "$as_me:19735: \$? = $ac_status" >&5
19736
if (exit $ac_status) && test -s "$ac_outfile"; then
19737
# The compiler can only warn and ignore the option if not recognized
19738
# So say no if there are warnings other than the usual output.
19739
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19740
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19741
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19742
lt_prog_compiler_pic_works_GCJ=yes
19748
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19749
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
19751
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19752
case $lt_prog_compiler_pic_GCJ in
19754
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19757
lt_prog_compiler_pic_GCJ=
19758
lt_prog_compiler_can_build_shared_GCJ=no
19763
# For platforms which do not support PIC, -DPIC is meaningless:
19765
lt_prog_compiler_pic_GCJ=
19768
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19773
# Check to make sure the static flag actually works.
19775
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19776
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19777
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19778
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
19779
echo $ECHO_N "(cached) $ECHO_C" >&6
19781
lt_prog_compiler_static_works_GCJ=no
19782
save_LDFLAGS="$LDFLAGS"
19783
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19784
printf "$lt_simple_link_test_code" > conftest.$ac_ext
19785
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19786
# The linker can only warn and ignore the option if not recognized
19787
# So say no if there are warnings
19788
if test -s conftest.err; then
19789
# Append any errors to the config.log.
19790
cat conftest.err 1>&5
19791
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19792
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19793
if diff conftest.exp conftest.er2 >/dev/null; then
19794
lt_prog_compiler_static_works_GCJ=yes
19797
lt_prog_compiler_static_works_GCJ=yes
19801
LDFLAGS="$save_LDFLAGS"
19804
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
19805
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
19807
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
19810
lt_prog_compiler_static_GCJ=
19814
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19815
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19816
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19817
echo $ECHO_N "(cached) $ECHO_C" >&6
19819
lt_cv_prog_compiler_c_o_GCJ=no
19820
$rm -r conftest 2>/dev/null
19824
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19826
lt_compiler_flag="-o out/conftest2.$ac_objext"
19827
# Insert the option either (1) after the last *FLAGS variable, or
19828
# (2) before a word containing "conftest.", or (3) at the end.
19829
# Note that $ac_compile itself does not contain backslashes and begins
19830
# with a dollar sign (not a hyphen), so the echo should work correctly.
19831
lt_compile=`echo "$ac_compile" | $SED \
19832
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19833
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19834
-e 's:$: $lt_compiler_flag:'`
19835
(eval echo "\"\$as_me:19835: $lt_compile\"" >&5)
19836
(eval "$lt_compile" 2>out/conftest.err)
19838
cat out/conftest.err >&5
19839
echo "$as_me:19839: \$? = $ac_status" >&5
19840
if (exit $ac_status) && test -s out/conftest2.$ac_objext
19842
# The compiler can only warn and ignore the option if not recognized
19843
# So say no if there are warnings
19844
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19845
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19846
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19847
lt_cv_prog_compiler_c_o_GCJ=yes
19852
# SGI C++ compiler will create directory out/ii_files/ for
19853
# template instantiation
19854
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19855
$rm out/* && rmdir out
19861
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19862
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19865
hard_links="nottested"
19866
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19867
# do not overwrite the value of need_locks provided by the user
19868
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19869
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19872
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19874
ln conftest.a conftest.b 2>&5 || hard_links=no
19875
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19876
{ echo "$as_me:$LINENO: result: $hard_links" >&5
19877
echo "${ECHO_T}$hard_links" >&6; }
19878
if test "$hard_links" = no; then
19879
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19880
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19887
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19888
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19891
allow_undefined_flag_GCJ=
19892
enable_shared_with_static_runtimes_GCJ=no
19894
archive_expsym_cmds_GCJ=
19895
old_archive_From_new_cmds_GCJ=
19896
old_archive_from_expsyms_cmds_GCJ=
19897
export_dynamic_flag_spec_GCJ=
19898
whole_archive_flag_spec_GCJ=
19899
thread_safe_flag_spec_GCJ=
19900
hardcode_libdir_flag_spec_GCJ=
19901
hardcode_libdir_flag_spec_ld_GCJ=
19902
hardcode_libdir_separator_GCJ=
19903
hardcode_direct_GCJ=no
19904
hardcode_minus_L_GCJ=no
19905
hardcode_shlibpath_var_GCJ=unsupported
19906
link_all_deplibs_GCJ=unknown
19907
hardcode_automatic_GCJ=no
19909
module_expsym_cmds_GCJ=
19910
always_export_symbols_GCJ=no
19911
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19912
# include_expsyms should be a list of space-separated symbols to be *always*
19913
# included in the symbol list
19914
include_expsyms_GCJ=
19915
# exclude_expsyms can be an extended regexp of symbols to exclude
19916
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19917
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19918
# as well as any symbol that contains `d'.
19919
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19920
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19921
# platforms (ab)use it in PIC code, but their linkers get confused if
19922
# the symbol is explicitly referenced. Since portable code cannot
19923
# rely on this symbol name, it's probably fine to never include it in
19924
# preloaded symbol tables.
19925
extract_expsyms_cmds=
19926
# Just being paranoid about ensuring that cc_basename is set.
19927
for cc_temp in $compiler""; do
19929
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19930
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19935
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19938
cygwin* | mingw* | pw32*)
19939
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19940
# When not using gcc, we currently assume that we are using
19941
# Microsoft Visual C++.
19942
if test "$GCC" != yes; then
19947
# we just hope/assume this is gcc and not c89 (= MSVC++)
19956
if test "$with_gnu_ld" = yes; then
19957
# If archive_cmds runs LD, not CC, wlarc should be empty
19960
# Set some defaults for GNU ld with shared library support. These
19961
# are reset later if shared libraries are not supported. Putting them
19962
# here allows them to be overridden if necessary.
19963
runpath_var=LD_RUN_PATH
19964
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19965
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19966
# ancient GNU ld didn't support --whole-archive et. al.
19967
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19968
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19970
whole_archive_flag_spec_GCJ=
19972
supports_anon_versioning=no
19973
case `$LD -v 2>/dev/null` in
19974
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19975
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19976
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19977
*\ 2.11.*) ;; # other 2.11 versions
19978
*) supports_anon_versioning=yes ;;
19981
# See if GNU ld supports shared libraries.
19983
aix3* | aix4* | aix5*)
19984
# On AIX/PPC, the GNU linker is very broken
19985
if test "$host_cpu" != ia64; then
19989
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19990
*** to be unable to reliably create shared libraries on AIX.
19991
*** Therefore, libtool is disabling shared libraries support. If you
19992
*** really care for shared libraries, you may want to modify your PATH
19993
*** so that a non-GNU linker is found, and then restart.
20000
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)'
20001
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20002
hardcode_minus_L_GCJ=yes
20004
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20005
# that the semantics of dynamic libraries on AmigaOS, at least up
20006
# to version 4, is to share data among multiple programs linked
20007
# with the same dynamic library. Since this doesn't match the
20008
# behavior of shared libraries on other platforms, we can't use
20014
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20015
allow_undefined_flag_GCJ=unsupported
20016
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20017
# support --undefined. This deserves some investigation. FIXME
20018
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20024
cygwin* | mingw* | pw32*)
20025
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20026
# as there is no search path for DLLs.
20027
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20028
allow_undefined_flag_GCJ=unsupported
20029
always_export_symbols_GCJ=no
20030
enable_shared_with_static_runtimes_GCJ=yes
20031
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20033
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20034
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20035
# If the export-symbols file already is a .def file (1st line
20036
# is EXPORTS), use it as is; otherwise, prepend...
20037
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20038
cp $export_symbols $output_objdir/$soname.def;
20040
echo EXPORTS > $output_objdir/$soname.def;
20041
cat $export_symbols >> $output_objdir/$soname.def;
20043
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20050
hardcode_direct_GCJ=no
20051
hardcode_shlibpath_var_GCJ=no
20052
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20053
export_dynamic_flag_spec_GCJ='${wl}-E'
20054
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20055
# Instead, shared libraries are loaded at an image base (0x10000000 by
20056
# default) and relocated if they conflict, which is a slow very memory
20057
# consuming and fragmenting process. To avoid this, we pick a random,
20058
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20059
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
20060
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'
20061
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'
20064
linux* | k*bsd*-gnu)
20065
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20067
case $cc_basename,$host_cpu in
20068
pgcc*) # Portland Group C compiler
20069
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'
20070
tmp_addflag=' $pic_flag'
20072
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20073
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'
20074
tmp_addflag=' $pic_flag -Mnomain' ;;
20075
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20076
tmp_addflag=' -i_dynamic' ;;
20077
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20078
tmp_addflag=' -i_dynamic -nofor_main' ;;
20079
ifc* | ifort*) # Intel Fortran compiler
20080
tmp_addflag=' -nofor_main' ;;
20082
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20084
if test $supports_anon_versioning = yes; then
20085
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20086
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20087
$echo "local: *; };" >> $output_objdir/$libname.ver~
20088
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20090
link_all_deplibs_GCJ=no
20096
netbsd* | netbsdelf*-gnu)
20097
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20098
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20101
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20102
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20107
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20111
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20112
*** create shared libraries on Solaris systems. Therefore, libtool
20113
*** is disabling shared libraries support. We urge you to upgrade GNU
20114
*** binutils to release 2.9.1 or newer. Another option is to modify
20115
*** your PATH or compiler configuration so that the native linker is
20116
*** used, and then restart.
20119
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20120
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20121
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20127
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20128
case `$LD -v 2>&1` in
20129
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20133
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20134
*** reliably create shared libraries on SCO systems. Therefore, libtool
20135
*** is disabling shared libraries support. We urge you to upgrade GNU
20136
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20137
*** your PATH or compiler configuration so that the native linker is
20138
*** used, and then restart.
20143
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20144
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20145
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20146
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20155
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20157
hardcode_direct_GCJ=yes
20158
hardcode_shlibpath_var_GCJ=no
20162
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20163
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20164
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20171
if test "$ld_shlibs_GCJ" = no; then
20173
hardcode_libdir_flag_spec_GCJ=
20174
export_dynamic_flag_spec_GCJ=
20175
whole_archive_flag_spec_GCJ=
20178
# PORTME fill in a description of your system's linker (not GNU ld)
20181
allow_undefined_flag_GCJ=unsupported
20182
always_export_symbols_GCJ=yes
20183
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'
20184
# Note: this linker hardcodes the directories in LIBPATH if there
20185
# are no directories specified by -L.
20186
hardcode_minus_L_GCJ=yes
20187
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20188
# Neither direct hardcoding nor static linking is supported with a
20190
hardcode_direct_GCJ=unsupported
20195
if test "$host_cpu" = ia64; then
20196
# On IA64, the linker does run time linking by default, so we don't
20197
# have to do anything special.
20198
aix_use_runtimelinking=no
20199
exp_sym_flag='-Bexport'
20202
# If we're using GNU nm, then we don't want the "-C" option.
20203
# -C means demangle to AIX nm, but means don't demangle with GNU nm
20204
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20205
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'
20207
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'
20209
aix_use_runtimelinking=no
20211
# Test if we are trying to use run time linking or normal
20212
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20213
# need to do runtime linking.
20214
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20215
for ld_flag in $LDFLAGS; do
20216
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20217
aix_use_runtimelinking=yes
20224
exp_sym_flag='-bexport'
20225
no_entry_flag='-bnoentry'
20228
# When large executables or shared objects are built, AIX ld can
20229
# have problems creating the table of contents. If linking a library
20230
# or program results in "error TOC overflow" add -mminimal-toc to
20231
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20232
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20234
archive_cmds_GCJ=''
20235
hardcode_direct_GCJ=yes
20236
hardcode_libdir_separator_GCJ=':'
20237
link_all_deplibs_GCJ=yes
20239
if test "$GCC" = yes; then
20240
case $host_os in aix4.[012]|aix4.[012].*)
20241
# We only want to do this on AIX 4.2 and lower, the check
20242
# below for broken collect2 doesn't work under 4.3+
20243
collect2name=`${CC} -print-prog-name=collect2`
20244
if test -f "$collect2name" && \
20245
strings "$collect2name" | grep resolve_lib_name >/dev/null
20247
# We have reworked collect2
20248
hardcode_direct_GCJ=yes
20250
# We have old collect2
20251
hardcode_direct_GCJ=unsupported
20252
# It fails to find uninstalled libraries when the uninstalled
20253
# path is not listed in the libpath. Setting hardcode_minus_L
20254
# to unsupported forces relinking
20255
hardcode_minus_L_GCJ=yes
20256
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20257
hardcode_libdir_separator_GCJ=
20261
shared_flag='-shared'
20262
if test "$aix_use_runtimelinking" = yes; then
20263
shared_flag="$shared_flag "'${wl}-G'
20267
if test "$host_cpu" = ia64; then
20268
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20269
# chokes on -Wl,-G. The following line is correct:
20272
if test "$aix_use_runtimelinking" = yes; then
20273
shared_flag='${wl}-G'
20275
shared_flag='${wl}-bM:SRE'
20280
# It seems that -bexpall does not export symbols beginning with
20281
# underscore (_), so it is better to generate a list of symbols to export.
20282
always_export_symbols_GCJ=yes
20283
if test "$aix_use_runtimelinking" = yes; then
20284
# Warning - without using the other runtime loading flags (-brtl),
20285
# -berok will link without error, but may produce a broken library.
20286
allow_undefined_flag_GCJ='-berok'
20287
# Determine the default libpath from the value encoded in an empty executable.
20288
cat >conftest.$ac_ext <<_ACEOF
20291
cat confdefs.h >>conftest.$ac_ext
20292
cat >>conftest.$ac_ext <<_ACEOF
20293
/* end confdefs.h. */
20303
rm -f conftest.$ac_objext conftest$ac_exeext
20304
if { (ac_try="$ac_link"
20305
case "(($ac_try" in
20306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307
*) ac_try_echo=$ac_try;;
20309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310
(eval "$ac_link") 2>conftest.er1
20312
grep -v '^ *+' conftest.er1 >conftest.err
20314
cat conftest.err >&5
20315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316
(exit $ac_status); } && {
20317
test -z "$ac_c_werror_flag" ||
20318
test ! -s conftest.err
20319
} && test -s conftest$ac_exeext &&
20320
$as_test_x conftest$ac_exeext; then
20322
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20324
# Check for a 64-bit object if we didn't find anything.
20325
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20328
echo "$as_me: failed program was:" >&5
20329
sed 's/^/| /' conftest.$ac_ext >&5
20334
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20335
conftest$ac_exeext conftest.$ac_ext
20336
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20338
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20339
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"
20341
if test "$host_cpu" = ia64; then
20342
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20343
allow_undefined_flag_GCJ="-z nodefs"
20344
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"
20346
# Determine the default libpath from the value encoded in an empty executable.
20347
cat >conftest.$ac_ext <<_ACEOF
20350
cat confdefs.h >>conftest.$ac_ext
20351
cat >>conftest.$ac_ext <<_ACEOF
20352
/* end confdefs.h. */
20362
rm -f conftest.$ac_objext conftest$ac_exeext
20363
if { (ac_try="$ac_link"
20364
case "(($ac_try" in
20365
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366
*) ac_try_echo=$ac_try;;
20368
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369
(eval "$ac_link") 2>conftest.er1
20371
grep -v '^ *+' conftest.er1 >conftest.err
20373
cat conftest.err >&5
20374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375
(exit $ac_status); } && {
20376
test -z "$ac_c_werror_flag" ||
20377
test ! -s conftest.err
20378
} && test -s conftest$ac_exeext &&
20379
$as_test_x conftest$ac_exeext; then
20381
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20383
# Check for a 64-bit object if we didn't find anything.
20384
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20387
echo "$as_me: failed program was:" >&5
20388
sed 's/^/| /' conftest.$ac_ext >&5
20393
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20394
conftest$ac_exeext conftest.$ac_ext
20395
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20397
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20398
# Warning - without using the other run time loading flags,
20399
# -berok will link without error, but may produce a broken library.
20400
no_undefined_flag_GCJ=' ${wl}-bernotok'
20401
allow_undefined_flag_GCJ=' ${wl}-berok'
20402
# Exported symbols can be pulled into shared objects from archives
20403
whole_archive_flag_spec_GCJ='$convenience'
20404
archive_cmds_need_lc_GCJ=yes
20405
# This is similar to how AIX traditionally builds its shared libraries.
20406
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'
20412
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)'
20413
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20414
hardcode_minus_L_GCJ=yes
20415
# see comment about different semantics on the GNU ld section
20420
export_dynamic_flag_spec_GCJ=-rdynamic
20423
cygwin* | mingw* | pw32*)
20424
# When not using gcc, we currently assume that we are using
20425
# Microsoft Visual C++.
20426
# hardcode_libdir_flag_spec is actually meaningless, as there is
20427
# no search path for DLLs.
20428
hardcode_libdir_flag_spec_GCJ=' '
20429
allow_undefined_flag_GCJ=unsupported
20430
# Tell ltmain to make .lib files, not .a files.
20432
# Tell ltmain to make .dll files, not .so files.
20434
# FIXME: Setting linknames here is a bad hack.
20435
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20436
# The linker will automatically build a .lib file if we build a DLL.
20437
old_archive_From_new_cmds_GCJ='true'
20438
# FIXME: Should let the user specify the lib program.
20439
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20440
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20441
enable_shared_with_static_runtimes_GCJ=yes
20444
darwin* | rhapsody*)
20446
rhapsody* | darwin1.[012])
20447
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20450
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20451
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20453
case ${MACOSX_DEPLOYMENT_TARGET} in
20455
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20458
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20464
archive_cmds_need_lc_GCJ=no
20465
hardcode_direct_GCJ=no
20466
hardcode_automatic_GCJ=yes
20467
hardcode_shlibpath_var_GCJ=unsupported
20468
whole_archive_flag_spec_GCJ=''
20469
link_all_deplibs_GCJ=yes
20470
if test "$GCC" = yes ; then
20471
output_verbose_link_cmd='echo'
20472
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20473
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20474
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20475
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20476
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}'
20478
case $cc_basename in
20480
output_verbose_link_cmd='echo'
20481
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20482
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20483
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20484
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20485
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}'
20495
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20496
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20497
hardcode_shlibpath_var_GCJ=no
20504
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20505
# support. Future versions do this automatically, but an explicit c++rt0.o
20506
# does not break anything, and helps significantly (at the cost of a little
20509
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20510
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20511
hardcode_direct_GCJ=yes
20512
hardcode_shlibpath_var_GCJ=no
20515
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
20517
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20518
hardcode_direct_GCJ=yes
20519
hardcode_minus_L_GCJ=yes
20520
hardcode_shlibpath_var_GCJ=no
20523
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20524
freebsd* | dragonfly*)
20525
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20526
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20527
hardcode_direct_GCJ=yes
20528
hardcode_shlibpath_var_GCJ=no
20532
if test "$GCC" = yes; then
20533
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'
20535
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'
20537
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20538
hardcode_libdir_separator_GCJ=:
20539
hardcode_direct_GCJ=yes
20541
# hardcode_minus_L: Not really in the search PATH,
20542
# but as the default location of the library.
20543
hardcode_minus_L_GCJ=yes
20544
export_dynamic_flag_spec_GCJ='${wl}-E'
20548
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20549
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20551
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20553
if test "$with_gnu_ld" = no; then
20554
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20555
hardcode_libdir_separator_GCJ=:
20557
hardcode_direct_GCJ=yes
20558
export_dynamic_flag_spec_GCJ='${wl}-E'
20560
# hardcode_minus_L: Not really in the search PATH,
20561
# but as the default location of the library.
20562
hardcode_minus_L_GCJ=yes
20567
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20570
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20573
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20576
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20582
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20585
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20588
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20592
if test "$with_gnu_ld" = no; then
20593
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20594
hardcode_libdir_separator_GCJ=:
20598
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20599
hardcode_direct_GCJ=no
20600
hardcode_shlibpath_var_GCJ=no
20603
hardcode_direct_GCJ=yes
20604
export_dynamic_flag_spec_GCJ='${wl}-E'
20606
# hardcode_minus_L: Not really in the search PATH,
20607
# but as the default location of the library.
20608
hardcode_minus_L_GCJ=yes
20614
irix5* | irix6* | nonstopux*)
20615
if test "$GCC" = yes; then
20616
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'
20618
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'
20619
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20621
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20622
hardcode_libdir_separator_GCJ=:
20623
link_all_deplibs_GCJ=yes
20626
netbsd* | netbsdelf*-gnu)
20627
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20628
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20630
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20632
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20633
hardcode_direct_GCJ=yes
20634
hardcode_shlibpath_var_GCJ=no
20638
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20639
hardcode_direct_GCJ=yes
20640
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20641
hardcode_libdir_separator_GCJ=:
20642
hardcode_shlibpath_var_GCJ=no
20646
hardcode_direct_GCJ=yes
20647
hardcode_shlibpath_var_GCJ=no
20648
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20649
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20650
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20651
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20652
export_dynamic_flag_spec_GCJ='${wl}-E'
20655
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20656
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20657
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20660
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20661
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20668
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20669
hardcode_minus_L_GCJ=yes
20670
allow_undefined_flag_GCJ=unsupported
20671
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'
20672
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20676
if test "$GCC" = yes; then
20677
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20678
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'
20680
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20681
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'
20683
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20684
hardcode_libdir_separator_GCJ=:
20687
osf4* | osf5*) # as osf3* with the addition of -msym flag
20688
if test "$GCC" = yes; then
20689
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20690
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'
20691
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20693
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20694
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'
20695
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~
20696
$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'
20698
# Both c and cxx compiler support -rpath directly
20699
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20701
hardcode_libdir_separator_GCJ=:
20705
no_undefined_flag_GCJ=' -z text'
20706
if test "$GCC" = yes; then
20708
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20709
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20710
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20713
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20714
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20715
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20717
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20718
hardcode_shlibpath_var_GCJ=no
20720
solaris2.[0-5] | solaris2.[0-5].*) ;;
20722
# The compiler driver will combine linker options so we
20723
# cannot just pass the convience library names through
20724
# without $wl, iff we do not link with $LD.
20725
# Luckily, gcc supports the same syntax we need for Sun Studio.
20726
# Supported since Solaris 2.6 (maybe 2.5.1?)
20729
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20731
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
20734
link_all_deplibs_GCJ=yes
20738
if test "x$host_vendor" = xsequent; then
20739
# Use $CC to link under sequent, because it throws in some extra .o
20740
# files that make .init and .fini sections work.
20741
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20743
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20745
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20746
hardcode_direct_GCJ=yes
20747
hardcode_minus_L_GCJ=yes
20748
hardcode_shlibpath_var_GCJ=no
20752
case $host_vendor in
20754
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20755
hardcode_direct_GCJ=yes # is this really true???
20758
## LD is ld it makes a PLAMLIB
20759
## CC just makes a GrossModule.
20760
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20761
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20762
hardcode_direct_GCJ=no
20765
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20766
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20769
runpath_var='LD_RUN_PATH'
20770
hardcode_shlibpath_var_GCJ=no
20774
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20775
hardcode_shlibpath_var_GCJ=no
20776
export_dynamic_flag_spec_GCJ='-Bexport'
20780
if test -d /usr/nec; then
20781
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20782
hardcode_shlibpath_var_GCJ=no
20783
runpath_var=LD_RUN_PATH
20784
hardcode_runpath_var=yes
20789
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
20790
no_undefined_flag_GCJ='${wl}-z,text'
20791
archive_cmds_need_lc_GCJ=no
20792
hardcode_shlibpath_var_GCJ=no
20793
runpath_var='LD_RUN_PATH'
20795
if test "$GCC" = yes; then
20796
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20797
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20799
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20800
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20804
sysv5* | sco3.2v5* | sco5v6*)
20805
# Note: We can NOT use -z defs as we might desire, because we do not
20806
# link with -lc, and that would cause any symbols used from libc to
20807
# always be unresolved, which means just about no library would
20808
# ever link correctly. If we're not using GNU ld we use -z text
20809
# though, which does catch some bad symbols but isn't as heavy-handed
20811
no_undefined_flag_GCJ='${wl}-z,text'
20812
allow_undefined_flag_GCJ='${wl}-z,nodefs'
20813
archive_cmds_need_lc_GCJ=no
20814
hardcode_shlibpath_var_GCJ=no
20815
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20816
hardcode_libdir_separator_GCJ=':'
20817
link_all_deplibs_GCJ=yes
20818
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20819
runpath_var='LD_RUN_PATH'
20821
if test "$GCC" = yes; then
20822
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20823
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20825
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20826
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20831
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20832
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20833
hardcode_shlibpath_var_GCJ=no
20842
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20843
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20844
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20847
# Do we need to explicitly link libc?
20849
case "x$archive_cmds_need_lc_GCJ" in
20851
# Assume -lc should be added
20852
archive_cmds_need_lc_GCJ=yes
20854
if test "$enable_shared" = yes && test "$GCC" = yes; then
20855
case $archive_cmds_GCJ in
20857
# FIXME: we may have to deal with multi-command sequences.
20860
# Test whether the compiler implicitly links with -lc since on some
20861
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20862
# to ld, don't add -lc before -lgcc.
20863
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20864
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20866
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20868
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20869
(eval $ac_compile) 2>&5
20871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872
(exit $ac_status); } 2>conftest.err; then
20875
libobjs=conftest.$ac_objext
20877
wl=$lt_prog_compiler_wl_GCJ
20878
pic_flag=$lt_prog_compiler_pic_GCJ
20884
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20885
allow_undefined_flag_GCJ=
20886
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20887
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890
(exit $ac_status); }
20892
archive_cmds_need_lc_GCJ=no
20894
archive_cmds_need_lc_GCJ=yes
20896
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20898
cat conftest.err 1>&5
20901
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20902
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20909
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20910
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20911
library_names_spec=
20912
libname_spec='lib$name'
20916
postuninstall_cmds=
20920
shlibpath_overrides_runpath=unknown
20922
dynamic_linker="$host_os ld.so"
20923
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20924
if test "$GCC" = yes; then
20925
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20926
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20927
# if the path contains ";" then we assume it to be the separator
20928
# otherwise default to the standard path separator (i.e. ":") - it is
20929
# assumed that no part of a normal pathname contains ";" but that should
20930
# okay in the real world where ";" in dirpaths is itself problematic.
20931
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20933
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20936
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20938
need_lib_prefix=unknown
20939
hardcode_into_libs=no
20941
# when you set need_version to no, make sure it does not cause -set_version
20942
# flags to be left without arguments
20943
need_version=unknown
20948
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20949
shlibpath_var=LIBPATH
20951
# AIX 3 has no versioning support, so we append a major version to the name.
20952
soname_spec='${libname}${release}${shared_ext}$major'
20959
hardcode_into_libs=yes
20960
if test "$host_cpu" = ia64; then
20961
# AIX 5 supports IA64
20962
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20963
shlibpath_var=LD_LIBRARY_PATH
20965
# With GCC up to 2.95.x, collect2 would create an import file
20966
# for dependence libraries. The import file would start with
20967
# the line `#! .'. This would cause the generated library to
20968
# depend on `.', always an invalid library. This was fixed in
20969
# development snapshots of GCC prior to 3.0.
20971
aix4 | aix4.[01] | aix4.[01].*)
20972
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20974
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20977
can_build_shared=no
20981
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20982
# soname into executable. Probably we can add versioning support to
20983
# collect2, so additional links can be useful in future.
20984
if test "$aix_use_runtimelinking" = yes; then
20985
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20986
# instead of lib<name>.a to let people know that these are not
20987
# typical AIX shared libraries.
20988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990
# We preserve .a as extension for shared libraries through AIX4.2
20991
# and later when we are not doing run time linking.
20992
library_names_spec='${libname}${release}.a $libname.a'
20993
soname_spec='${libname}${release}${shared_ext}$major'
20995
shlibpath_var=LIBPATH
21000
library_names_spec='$libname.ixlibrary $libname.a'
21001
# Create ${libname}_ixlibrary.a entries in /sys/libs.
21002
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'
21006
library_names_spec='${libname}${shared_ext}'
21007
dynamic_linker="$host_os ld.so"
21008
shlibpath_var=LIBRARY_PATH
21014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21015
soname_spec='${libname}${release}${shared_ext}$major'
21016
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21017
shlibpath_var=LD_LIBRARY_PATH
21018
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21019
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21020
# the default ld.so.conf also contains /usr/contrib/lib and
21021
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21022
# libtool to hard-code these into programs
21025
cygwin* | mingw* | pw32*)
21026
version_type=windows
21031
case $GCC,$host_os in
21032
yes,cygwin* | yes,mingw* | yes,pw32*)
21033
library_names_spec='$libname.dll.a'
21034
# DLL is installed to $(libdir)/../bin by postinstall_cmds
21035
postinstall_cmds='base_file=`basename \${file}`~
21036
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21037
dldir=$destdir/`dirname \$dlpath`~
21038
test -d \$dldir || mkdir -p \$dldir~
21039
$install_prog $dir/$dlname \$dldir/$dlname~
21040
chmod a+x \$dldir/$dlname'
21041
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21042
dlpath=$dir/\$dldll~
21044
shlibpath_overrides_runpath=yes
21048
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
21049
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21050
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21053
# MinGW DLLs use traditional 'lib' prefix
21054
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21055
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21056
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21057
# It is most probably a Windows format PATH printed by
21058
# mingw gcc, but we are running on Cygwin. Gcc prints its search
21059
# path with ; separators, and with drive letters. We can handle the
21060
# drive letters (cygwin fileutils understands them), so leave them,
21061
# especially as we might pass files found there to a mingw objdump,
21062
# which wouldn't understand a cygwinified path. Ahh.
21063
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21065
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21069
# pw32 DLLs use 'pw' prefix rather than 'lib'
21070
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21076
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21079
dynamic_linker='Win32 ld.exe'
21080
# FIXME: first we should search . and the directory the executable is in
21084
darwin* | rhapsody*)
21085
dynamic_linker="$host_os dyld"
21086
version_type=darwin
21089
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21090
soname_spec='${libname}${release}${major}$shared_ext'
21091
shlibpath_overrides_runpath=yes
21092
shlibpath_var=DYLD_LIBRARY_PATH
21093
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21094
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21095
if test "$GCC" = yes; then
21096
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
21098
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21100
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21108
soname_spec='${libname}${release}${shared_ext}$major'
21109
shlibpath_var=LD_LIBRARY_PATH
21116
freebsd* | dragonfly*)
21117
# DragonFly does not have aout. When/if they implement a new
21118
# versioning mechanism, adjust this.
21119
if test -x /usr/bin/objformat; then
21120
objformat=`/usr/bin/objformat`
21123
freebsd[123]*) objformat=aout ;;
21124
*) objformat=elf ;;
21127
version_type=freebsd-$objformat
21128
case $version_type in
21130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21135
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21139
shlibpath_var=LD_LIBRARY_PATH
21142
shlibpath_overrides_runpath=yes
21144
freebsd3.[01]* | freebsdelf3.[01]*)
21145
shlibpath_overrides_runpath=yes
21146
hardcode_into_libs=yes
21148
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21149
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21150
shlibpath_overrides_runpath=no
21151
hardcode_into_libs=yes
21153
freebsd*) # from 4.6 on
21154
shlibpath_overrides_runpath=yes
21155
hardcode_into_libs=yes
21164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21165
soname_spec='${libname}${release}${shared_ext}$major'
21166
shlibpath_var=LD_LIBRARY_PATH
21167
hardcode_into_libs=yes
21170
hpux9* | hpux10* | hpux11*)
21171
# Give a soname corresponding to the major version so that dld.sl refuses to
21172
# link against other versions.
21179
hardcode_into_libs=yes
21180
dynamic_linker="$host_os dld.so"
21181
shlibpath_var=LD_LIBRARY_PATH
21182
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21184
soname_spec='${libname}${release}${shared_ext}$major'
21185
if test "X$HPUX_IA64_MODE" = X32; then
21186
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21188
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21190
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21194
hardcode_into_libs=yes
21195
dynamic_linker="$host_os dld.sl"
21196
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21197
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21199
soname_spec='${libname}${release}${shared_ext}$major'
21200
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21201
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21205
dynamic_linker="$host_os dld.sl"
21206
shlibpath_var=SHLIB_PATH
21207
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21209
soname_spec='${libname}${release}${shared_ext}$major'
21212
# HP-UX runs *really* slowly unless shared libraries are mode 555.
21213
postinstall_cmds='chmod 555 $lib'
21220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21221
soname_spec='${libname}${release}${shared_ext}$major'
21222
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21223
shlibpath_var=LD_LIBRARY_PATH
21224
shlibpath_overrides_runpath=no
21225
hardcode_into_libs=yes
21228
irix5* | irix6* | nonstopux*)
21230
nonstopux*) version_type=nonstopux ;;
21232
if test "$lt_cv_prog_gnu_ld" = yes; then
21240
soname_spec='${libname}${release}${shared_ext}$major'
21241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21243
irix5* | nonstopux*)
21244
libsuff= shlibsuff=
21247
case $LD in # libtool.m4 will add one of these switches to LD
21248
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21249
libsuff= shlibsuff= libmagic=32-bit;;
21250
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21251
libsuff=32 shlibsuff=N32 libmagic=N32;;
21252
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21253
libsuff=64 shlibsuff=64 libmagic=64-bit;;
21254
*) libsuff= shlibsuff= libmagic=never-match;;
21258
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21259
shlibpath_overrides_runpath=no
21260
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21261
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21262
hardcode_into_libs=yes
21265
# No shared lib support for Linux oldld, aout, or coff.
21266
linux*oldld* | linux*aout* | linux*coff*)
21270
# This must be Linux ELF.
21271
linux* | k*bsd*-gnu)
21275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276
soname_spec='${libname}${release}${shared_ext}$major'
21277
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21278
shlibpath_var=LD_LIBRARY_PATH
21279
shlibpath_overrides_runpath=no
21280
# This implies no fast_install, which is unacceptable.
21281
# Some rework will be needed to allow for fast_install
21282
# before this can be enabled.
21283
hardcode_into_libs=yes
21285
# Append ld.so.conf contents to the search path
21286
if test -f /etc/ld.so.conf; then
21287
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21288
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21291
# We used to test for /lib/ld.so.1 and disable shared libraries on
21292
# powerpc, because MkLinux only supported shared libraries with the
21293
# GNU dynamic linker. Since this was broken with cross compilers,
21294
# most powerpc-linux boxes support dynamic linking these days and
21295
# people can always --disable-shared, the test was removed, and we
21296
# assume the GNU/Linux dynamic linker is in use.
21297
dynamic_linker='GNU/Linux ld.so'
21304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21305
soname_spec='${libname}${release}${shared_ext}$major'
21306
shlibpath_var=LD_LIBRARY_PATH
21307
shlibpath_overrides_runpath=no
21308
hardcode_into_libs=yes
21309
dynamic_linker='NetBSD ld.elf_so'
21316
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21318
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21319
dynamic_linker='NetBSD (a.out) ld.so'
21321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21322
soname_spec='${libname}${release}${shared_ext}$major'
21323
dynamic_linker='NetBSD ld.elf_so'
21325
shlibpath_var=LD_LIBRARY_PATH
21326
shlibpath_overrides_runpath=yes
21327
hardcode_into_libs=yes
21332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333
shlibpath_var=LD_LIBRARY_PATH
21334
shlibpath_overrides_runpath=yes
21341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21342
soname_spec='${libname}${release}${shared_ext}$major'
21343
shlibpath_var=LD_LIBRARY_PATH
21344
shlibpath_overrides_runpath=yes
21349
sys_lib_dlsearch_path_spec="/usr/lib"
21351
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21353
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21354
*) need_version=no ;;
21356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21357
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21358
shlibpath_var=LD_LIBRARY_PATH
21359
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21361
openbsd2.[89] | openbsd2.[89].*)
21362
shlibpath_overrides_runpath=no
21365
shlibpath_overrides_runpath=yes
21369
shlibpath_overrides_runpath=yes
21374
libname_spec='$name'
21377
library_names_spec='$libname${shared_ext} $libname.a'
21378
dynamic_linker='OS/2 ld.exe'
21379
shlibpath_var=LIBPATH
21382
osf3* | osf4* | osf5*)
21386
soname_spec='${libname}${release}${shared_ext}$major'
21387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21388
shlibpath_var=LD_LIBRARY_PATH
21389
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21390
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21398
soname_spec='${libname}${release}${shared_ext}$major'
21399
shlibpath_var=LD_LIBRARY_PATH
21400
shlibpath_overrides_runpath=yes
21401
hardcode_into_libs=yes
21402
# ldd complains unless libraries are executable
21403
postinstall_cmds='chmod +x $lib'
21408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21409
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21410
shlibpath_var=LD_LIBRARY_PATH
21411
shlibpath_overrides_runpath=yes
21412
if test "$with_gnu_ld" = yes; then
21420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21421
soname_spec='${libname}${release}${shared_ext}$major'
21422
shlibpath_var=LD_LIBRARY_PATH
21423
case $host_vendor in
21425
shlibpath_overrides_runpath=no
21427
export_dynamic_flag_spec='${wl}-Blargedynsym'
21428
runpath_var=LD_RUN_PATH
21436
shlibpath_overrides_runpath=no
21437
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21443
if test -d /usr/nec ;then
21445
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21446
soname_spec='$libname${shared_ext}.$major'
21447
shlibpath_var=LD_LIBRARY_PATH
21451
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21452
version_type=freebsd-elf
21455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21456
soname_spec='${libname}${release}${shared_ext}$major'
21457
shlibpath_var=LD_LIBRARY_PATH
21458
hardcode_into_libs=yes
21459
if test "$with_gnu_ld" = yes; then
21460
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21461
shlibpath_overrides_runpath=no
21463
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21464
shlibpath_overrides_runpath=yes
21467
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21471
sys_lib_dlsearch_path_spec='/usr/lib'
21476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21477
soname_spec='${libname}${release}${shared_ext}$major'
21478
shlibpath_var=LD_LIBRARY_PATH
21485
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21486
echo "${ECHO_T}$dynamic_linker" >&6; }
21487
test "$dynamic_linker" = no && can_build_shared=no
21489
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21490
if test "$GCC" = yes; then
21491
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21494
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21495
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21496
hardcode_action_GCJ=
21497
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21498
test -n "$runpath_var_GCJ" || \
21499
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21501
# We can hardcode non-existant directories.
21502
if test "$hardcode_direct_GCJ" != no &&
21503
# If the only mechanism to avoid hardcoding is shlibpath_var, we
21504
# have to relink, otherwise we might link with an installed library
21505
# when we should be linking with a yet-to-be-installed one
21506
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21507
test "$hardcode_minus_L_GCJ" != no; then
21508
# Linking always hardcodes the temporary library directory.
21509
hardcode_action_GCJ=relink
21511
# We can link without hardcoding, and we can hardcode nonexisting dirs.
21512
hardcode_action_GCJ=immediate
21515
# We cannot hardcode anything, or else we can only hardcode existing
21517
hardcode_action_GCJ=unsupported
21519
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21520
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
21522
if test "$hardcode_action_GCJ" = relink; then
21523
# Fast installation is not supported
21524
enable_fast_install=no
21525
elif test "$shlibpath_overrides_runpath" = yes ||
21526
test "$enable_shared" = no; then
21527
# Fast installation is not necessary
21528
enable_fast_install=needless
21532
# The else clause should only fire when bootstrapping the
21533
# libtool distribution, otherwise you forgot to ship ltmain.sh
21534
# with your package, and you will get complaints that there are
21535
# no rules to generate ltmain.sh.
21536
if test -f "$ltmain"; then
21537
# See if we are running on zsh, and set the options which allow our commands through
21538
# without removal of \ escapes.
21539
if test -n "${ZSH_VERSION+set}" ; then
21540
setopt NO_GLOB_SUBST
21542
# Now quote all the things that may contain metacharacters while being
21543
# careful not to overquote the AC_SUBSTed values. We take copies of the
21544
# variables and quote the copies for generation of the libtool script.
21545
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21547
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21548
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21549
deplibs_check_method reload_flag reload_cmds need_locks \
21550
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21551
lt_cv_sys_global_symbol_to_c_name_address \
21552
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21553
old_postinstall_cmds old_postuninstall_cmds \
21557
lt_prog_compiler_wl_GCJ \
21558
lt_prog_compiler_pic_GCJ \
21559
lt_prog_compiler_static_GCJ \
21560
lt_prog_compiler_no_builtin_flag_GCJ \
21561
export_dynamic_flag_spec_GCJ \
21562
thread_safe_flag_spec_GCJ \
21563
whole_archive_flag_spec_GCJ \
21564
enable_shared_with_static_runtimes_GCJ \
21565
old_archive_cmds_GCJ \
21566
old_archive_from_new_cmds_GCJ \
21567
predep_objects_GCJ \
21568
postdep_objects_GCJ \
21571
compiler_lib_search_path_GCJ \
21573
archive_expsym_cmds_GCJ \
21574
postinstall_cmds_GCJ \
21575
postuninstall_cmds_GCJ \
21576
old_archive_from_expsyms_cmds_GCJ \
21577
allow_undefined_flag_GCJ \
21578
no_undefined_flag_GCJ \
21579
export_symbols_cmds_GCJ \
21580
hardcode_libdir_flag_spec_GCJ \
21581
hardcode_libdir_flag_spec_ld_GCJ \
21582
hardcode_libdir_separator_GCJ \
21583
hardcode_automatic_GCJ \
21585
module_expsym_cmds_GCJ \
21586
lt_cv_prog_compiler_c_o_GCJ \
21587
exclude_expsyms_GCJ \
21588
include_expsyms_GCJ; do
21591
old_archive_cmds_GCJ | \
21592
old_archive_from_new_cmds_GCJ | \
21593
archive_cmds_GCJ | \
21594
archive_expsym_cmds_GCJ | \
21595
module_cmds_GCJ | \
21596
module_expsym_cmds_GCJ | \
21597
old_archive_from_expsyms_cmds_GCJ | \
21598
export_symbols_cmds_GCJ | \
21599
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21600
postinstall_cmds | postuninstall_cmds | \
21601
old_postinstall_cmds | old_postuninstall_cmds | \
21602
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21603
# Double-quote double-evaled strings.
21604
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21607
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21613
*'\$0 --fallback-echo"')
21614
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21620
cat <<__EOF__ >> "$cfgfile"
21621
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21623
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21625
# Shell to use when invoking shell scripts.
21628
# Whether or not to build shared libraries.
21629
build_libtool_libs=$enable_shared
21631
# Whether or not to build static libraries.
21632
build_old_libs=$enable_static
21634
# Whether or not to add -lc for building shared libraries.
21635
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21637
# Whether or not to disallow shared libs when runtime libs are static
21638
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21640
# Whether or not to optimize for fast installation.
21641
fast_install=$enable_fast_install
21644
host_alias=$host_alias
21648
# The build system.
21649
build_alias=$build_alias
21653
# An echo program that does not interpret backslashes.
21658
AR_FLAGS=$lt_AR_FLAGS
21663
# LTCC compiler flags.
21664
LTCFLAGS=$lt_LTCFLAGS
21666
# A language-specific compiler.
21667
CC=$lt_compiler_GCJ
21669
# Is the compiler the GNU C compiler?
21675
# The linker used to build libraries.
21678
# Whether we need hard or soft links.
21681
# A BSD-compatible nm program.
21684
# A symbol stripping program
21687
# Used to examine libraries when file_magic_cmd begins "file"
21688
MAGIC_CMD=$MAGIC_CMD
21690
# Used on cygwin: DLL creation program.
21693
# Used on cygwin: object dumper.
21696
# Used on cygwin: assembler.
21699
# The name of the directory that contains temporary libtool files.
21702
# How to create reloadable object files.
21703
reload_flag=$lt_reload_flag
21704
reload_cmds=$lt_reload_cmds
21706
# How to pass a linker flag through the compiler.
21707
wl=$lt_lt_prog_compiler_wl_GCJ
21709
# Object file suffix (normally "o").
21710
objext="$ac_objext"
21712
# Old archive suffix (normally "a").
21715
# Shared library suffix (normally ".so").
21716
shrext_cmds='$shrext_cmds'
21718
# Executable file suffix (normally "").
21721
# Additional compiler flags for building library objects.
21722
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21725
# What is the maximum length of a command?
21726
max_cmd_len=$lt_cv_sys_max_cmd_len
21728
# Does compiler simultaneously support -c and -o options?
21729
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21731
# Must we lock files when doing compilation?
21732
need_locks=$lt_need_locks
21734
# Do we need the lib prefix for modules?
21735
need_lib_prefix=$need_lib_prefix
21737
# Do we need a version for libraries?
21738
need_version=$need_version
21740
# Whether dlopen is supported.
21741
dlopen_support=$enable_dlopen
21743
# Whether dlopen of programs is supported.
21744
dlopen_self=$enable_dlopen_self
21746
# Whether dlopen of statically linked programs is supported.
21747
dlopen_self_static=$enable_dlopen_self_static
21749
# Compiler flag to prevent dynamic linking.
21750
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21752
# Compiler flag to turn off builtin functions.
21753
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21755
# Compiler flag to allow reflexive dlopens.
21756
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21758
# Compiler flag to generate shared objects directly from archives.
21759
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21761
# Compiler flag to generate thread-safe objects.
21762
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21764
# Library versioning type.
21765
version_type=$version_type
21767
# Format of library name prefix.
21768
libname_spec=$lt_libname_spec
21770
# List of archive names. First name is the real one, the rest are links.
21771
# The last name is the one that the linker finds with -lNAME.
21772
library_names_spec=$lt_library_names_spec
21774
# The coded name of the library, if different from the real name.
21775
soname_spec=$lt_soname_spec
21777
# Commands used to build and install an old-style archive.
21779
old_archive_cmds=$lt_old_archive_cmds_GCJ
21780
old_postinstall_cmds=$lt_old_postinstall_cmds
21781
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21783
# Create an old-style archive from a shared archive.
21784
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21786
# Create a temporary old-style archive to link instead of a shared archive.
21787
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21789
# Commands used to build and install a shared archive.
21790
archive_cmds=$lt_archive_cmds_GCJ
21791
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21792
postinstall_cmds=$lt_postinstall_cmds
21793
postuninstall_cmds=$lt_postuninstall_cmds
21795
# Commands used to build a loadable module (assumed same as above if empty)
21796
module_cmds=$lt_module_cmds_GCJ
21797
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21799
# Commands to strip libraries.
21800
old_striplib=$lt_old_striplib
21801
striplib=$lt_striplib
21803
# Dependencies to place before the objects being linked to create a
21805
predep_objects=$lt_predep_objects_GCJ
21807
# Dependencies to place after the objects being linked to create a
21809
postdep_objects=$lt_postdep_objects_GCJ
21811
# Dependencies to place before the objects being linked to create a
21813
predeps=$lt_predeps_GCJ
21815
# Dependencies to place after the objects being linked to create a
21817
postdeps=$lt_postdeps_GCJ
21819
# The library search path used internally by the compiler when linking
21820
# a shared library.
21821
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21823
# Method to check whether dependent libraries are shared objects.
21824
deplibs_check_method=$lt_deplibs_check_method
21826
# Command to use when deplibs_check_method == file_magic.
21827
file_magic_cmd=$lt_file_magic_cmd
21829
# Flag that allows shared libraries with undefined symbols to be built.
21830
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21832
# Flag that forces no undefined symbols.
21833
no_undefined_flag=$lt_no_undefined_flag_GCJ
21835
# Commands used to finish a libtool library installation in a directory.
21836
finish_cmds=$lt_finish_cmds
21838
# Same as above, but a single script fragment to be evaled but not shown.
21839
finish_eval=$lt_finish_eval
21841
# Take the output of nm and produce a listing of raw symbols and C names.
21842
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21844
# Transform the output of nm in a proper C declaration
21845
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21847
# Transform the output of nm in a C name address pair
21848
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21850
# This is the shared library runtime path variable.
21851
runpath_var=$runpath_var
21853
# This is the shared library path variable.
21854
shlibpath_var=$shlibpath_var
21856
# Is shlibpath searched before the hard-coded library search path?
21857
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21859
# How to hardcode a shared library path into an executable.
21860
hardcode_action=$hardcode_action_GCJ
21862
# Whether we should hardcode library paths into libraries.
21863
hardcode_into_libs=$hardcode_into_libs
21865
# Flag to hardcode \$libdir into a binary during linking.
21866
# This must work even if \$libdir does not exist.
21867
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21869
# If ld is used when linking, flag to hardcode \$libdir into
21870
# a binary during linking. This must work even if \$libdir does
21872
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21874
# Whether we need a single -rpath flag with a separated argument.
21875
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21877
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21878
# resulting binary.
21879
hardcode_direct=$hardcode_direct_GCJ
21881
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21882
# resulting binary.
21883
hardcode_minus_L=$hardcode_minus_L_GCJ
21885
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21886
# the resulting binary.
21887
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21889
# Set to yes if building a shared library automatically hardcodes DIR into the library
21890
# and all subsequent libraries and executables linked against it.
21891
hardcode_automatic=$hardcode_automatic_GCJ
21893
# Variables whose values should be saved in libtool wrapper scripts and
21894
# restored at relink time.
21895
variables_saved_for_relink="$variables_saved_for_relink"
21897
# Whether libtool must link a program against all its dependency libraries.
21898
link_all_deplibs=$link_all_deplibs_GCJ
21900
# Compile-time system search path for libraries
21901
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21903
# Run-time system search path for libraries
21904
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21906
# Fix the shell variable \$srcfile for the compiler.
21907
fix_srcfile_path="$fix_srcfile_path_GCJ"
21909
# Set to yes if exported symbols are required.
21910
always_export_symbols=$always_export_symbols_GCJ
21912
# The commands to list exported symbols.
21913
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21915
# The commands to extract the exported symbol list from a shared archive.
21916
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21918
# Symbols that should not be listed in the preloaded symbols.
21919
exclude_expsyms=$lt_exclude_expsyms_GCJ
21921
# Symbols that must always be exported.
21922
include_expsyms=$lt_include_expsyms_GCJ
21924
# ### END LIBTOOL TAG CONFIG: $tagname
21930
# If there is no Makefile yet, we rely on a make rule to execute
21931
# `config.status --recheck' to rerun these tests and create the
21932
# libtool script then.
21933
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21934
if test -f "$ltmain_in"; then
21935
test -f Makefile && make "$ltmain"
21941
ac_cpp='$CPP $CPPFLAGS'
21942
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21956
# Source file extension for RC test sources.
21959
# Object file extension for compiled RC test sources.
21963
# Code to be used in simple compile tests
21964
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21966
# Code to be used in simple link tests
21967
lt_simple_link_test_code="$lt_simple_compile_test_code"
21969
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21971
# If no C compiler was specified, use CC.
21974
# If no C compiler flags were specified, use CFLAGS.
21975
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21977
# Allow CC to be a program name with arguments.
21981
# save warnings/boilerplate of simple test code
21982
ac_outfile=conftest.$ac_objext
21983
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21984
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21985
_lt_compiler_boilerplate=`cat conftest.err`
21988
ac_outfile=conftest.$ac_objext
21989
printf "$lt_simple_link_test_code" >conftest.$ac_ext
21990
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21991
_lt_linker_boilerplate=`cat conftest.err`
21995
# Allow CC to be a program name with arguments.
22000
for cc_temp in $compiler""; do
22002
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22003
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22008
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22010
lt_cv_prog_compiler_c_o_RC=yes
22012
# The else clause should only fire when bootstrapping the
22013
# libtool distribution, otherwise you forgot to ship ltmain.sh
22014
# with your package, and you will get complaints that there are
22015
# no rules to generate ltmain.sh.
22016
if test -f "$ltmain"; then
22017
# See if we are running on zsh, and set the options which allow our commands through
22018
# without removal of \ escapes.
22019
if test -n "${ZSH_VERSION+set}" ; then
22020
setopt NO_GLOB_SUBST
22022
# Now quote all the things that may contain metacharacters while being
22023
# careful not to overquote the AC_SUBSTed values. We take copies of the
22024
# variables and quote the copies for generation of the libtool script.
22025
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22027
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22028
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22029
deplibs_check_method reload_flag reload_cmds need_locks \
22030
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22031
lt_cv_sys_global_symbol_to_c_name_address \
22032
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22033
old_postinstall_cmds old_postuninstall_cmds \
22037
lt_prog_compiler_wl_RC \
22038
lt_prog_compiler_pic_RC \
22039
lt_prog_compiler_static_RC \
22040
lt_prog_compiler_no_builtin_flag_RC \
22041
export_dynamic_flag_spec_RC \
22042
thread_safe_flag_spec_RC \
22043
whole_archive_flag_spec_RC \
22044
enable_shared_with_static_runtimes_RC \
22045
old_archive_cmds_RC \
22046
old_archive_from_new_cmds_RC \
22047
predep_objects_RC \
22048
postdep_objects_RC \
22051
compiler_lib_search_path_RC \
22053
archive_expsym_cmds_RC \
22054
postinstall_cmds_RC \
22055
postuninstall_cmds_RC \
22056
old_archive_from_expsyms_cmds_RC \
22057
allow_undefined_flag_RC \
22058
no_undefined_flag_RC \
22059
export_symbols_cmds_RC \
22060
hardcode_libdir_flag_spec_RC \
22061
hardcode_libdir_flag_spec_ld_RC \
22062
hardcode_libdir_separator_RC \
22063
hardcode_automatic_RC \
22065
module_expsym_cmds_RC \
22066
lt_cv_prog_compiler_c_o_RC \
22067
exclude_expsyms_RC \
22068
include_expsyms_RC; do
22071
old_archive_cmds_RC | \
22072
old_archive_from_new_cmds_RC | \
22073
archive_cmds_RC | \
22074
archive_expsym_cmds_RC | \
22076
module_expsym_cmds_RC | \
22077
old_archive_from_expsyms_cmds_RC | \
22078
export_symbols_cmds_RC | \
22079
extract_expsyms_cmds | reload_cmds | finish_cmds | \
22080
postinstall_cmds | postuninstall_cmds | \
22081
old_postinstall_cmds | old_postuninstall_cmds | \
22082
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22083
# Double-quote double-evaled strings.
22084
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22087
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22093
*'\$0 --fallback-echo"')
22094
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22100
cat <<__EOF__ >> "$cfgfile"
22101
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22103
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22105
# Shell to use when invoking shell scripts.
22108
# Whether or not to build shared libraries.
22109
build_libtool_libs=$enable_shared
22111
# Whether or not to build static libraries.
22112
build_old_libs=$enable_static
22114
# Whether or not to add -lc for building shared libraries.
22115
build_libtool_need_lc=$archive_cmds_need_lc_RC
22117
# Whether or not to disallow shared libs when runtime libs are static
22118
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22120
# Whether or not to optimize for fast installation.
22121
fast_install=$enable_fast_install
22124
host_alias=$host_alias
22128
# The build system.
22129
build_alias=$build_alias
22133
# An echo program that does not interpret backslashes.
22138
AR_FLAGS=$lt_AR_FLAGS
22143
# LTCC compiler flags.
22144
LTCFLAGS=$lt_LTCFLAGS
22146
# A language-specific compiler.
22149
# Is the compiler the GNU C compiler?
22155
# The linker used to build libraries.
22158
# Whether we need hard or soft links.
22161
# A BSD-compatible nm program.
22164
# A symbol stripping program
22167
# Used to examine libraries when file_magic_cmd begins "file"
22168
MAGIC_CMD=$MAGIC_CMD
22170
# Used on cygwin: DLL creation program.
22173
# Used on cygwin: object dumper.
22176
# Used on cygwin: assembler.
22179
# The name of the directory that contains temporary libtool files.
22182
# How to create reloadable object files.
22183
reload_flag=$lt_reload_flag
22184
reload_cmds=$lt_reload_cmds
22186
# How to pass a linker flag through the compiler.
22187
wl=$lt_lt_prog_compiler_wl_RC
22189
# Object file suffix (normally "o").
22190
objext="$ac_objext"
22192
# Old archive suffix (normally "a").
22195
# Shared library suffix (normally ".so").
22196
shrext_cmds='$shrext_cmds'
22198
# Executable file suffix (normally "").
22201
# Additional compiler flags for building library objects.
22202
pic_flag=$lt_lt_prog_compiler_pic_RC
22205
# What is the maximum length of a command?
22206
max_cmd_len=$lt_cv_sys_max_cmd_len
22208
# Does compiler simultaneously support -c and -o options?
22209
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22211
# Must we lock files when doing compilation?
22212
need_locks=$lt_need_locks
22214
# Do we need the lib prefix for modules?
22215
need_lib_prefix=$need_lib_prefix
22217
# Do we need a version for libraries?
22218
need_version=$need_version
22220
# Whether dlopen is supported.
22221
dlopen_support=$enable_dlopen
22223
# Whether dlopen of programs is supported.
22224
dlopen_self=$enable_dlopen_self
22226
# Whether dlopen of statically linked programs is supported.
22227
dlopen_self_static=$enable_dlopen_self_static
22229
# Compiler flag to prevent dynamic linking.
22230
link_static_flag=$lt_lt_prog_compiler_static_RC
22232
# Compiler flag to turn off builtin functions.
22233
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22235
# Compiler flag to allow reflexive dlopens.
22236
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22238
# Compiler flag to generate shared objects directly from archives.
22239
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22241
# Compiler flag to generate thread-safe objects.
22242
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22244
# Library versioning type.
22245
version_type=$version_type
22247
# Format of library name prefix.
22248
libname_spec=$lt_libname_spec
22250
# List of archive names. First name is the real one, the rest are links.
22251
# The last name is the one that the linker finds with -lNAME.
22252
library_names_spec=$lt_library_names_spec
22254
# The coded name of the library, if different from the real name.
22255
soname_spec=$lt_soname_spec
22257
# Commands used to build and install an old-style archive.
22259
old_archive_cmds=$lt_old_archive_cmds_RC
22260
old_postinstall_cmds=$lt_old_postinstall_cmds
22261
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22263
# Create an old-style archive from a shared archive.
22264
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22266
# Create a temporary old-style archive to link instead of a shared archive.
22267
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22269
# Commands used to build and install a shared archive.
22270
archive_cmds=$lt_archive_cmds_RC
22271
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22272
postinstall_cmds=$lt_postinstall_cmds
22273
postuninstall_cmds=$lt_postuninstall_cmds
22275
# Commands used to build a loadable module (assumed same as above if empty)
22276
module_cmds=$lt_module_cmds_RC
22277
module_expsym_cmds=$lt_module_expsym_cmds_RC
22279
# Commands to strip libraries.
22280
old_striplib=$lt_old_striplib
22281
striplib=$lt_striplib
22283
# Dependencies to place before the objects being linked to create a
22285
predep_objects=$lt_predep_objects_RC
22287
# Dependencies to place after the objects being linked to create a
22289
postdep_objects=$lt_postdep_objects_RC
22291
# Dependencies to place before the objects being linked to create a
22293
predeps=$lt_predeps_RC
22295
# Dependencies to place after the objects being linked to create a
22297
postdeps=$lt_postdeps_RC
22299
# The library search path used internally by the compiler when linking
22300
# a shared library.
22301
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22303
# Method to check whether dependent libraries are shared objects.
22304
deplibs_check_method=$lt_deplibs_check_method
22306
# Command to use when deplibs_check_method == file_magic.
22307
file_magic_cmd=$lt_file_magic_cmd
22309
# Flag that allows shared libraries with undefined symbols to be built.
22310
allow_undefined_flag=$lt_allow_undefined_flag_RC
22312
# Flag that forces no undefined symbols.
22313
no_undefined_flag=$lt_no_undefined_flag_RC
22315
# Commands used to finish a libtool library installation in a directory.
22316
finish_cmds=$lt_finish_cmds
22318
# Same as above, but a single script fragment to be evaled but not shown.
22319
finish_eval=$lt_finish_eval
22321
# Take the output of nm and produce a listing of raw symbols and C names.
22322
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22324
# Transform the output of nm in a proper C declaration
22325
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22327
# Transform the output of nm in a C name address pair
22328
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22330
# This is the shared library runtime path variable.
22331
runpath_var=$runpath_var
22333
# This is the shared library path variable.
22334
shlibpath_var=$shlibpath_var
22336
# Is shlibpath searched before the hard-coded library search path?
22337
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22339
# How to hardcode a shared library path into an executable.
22340
hardcode_action=$hardcode_action_RC
22342
# Whether we should hardcode library paths into libraries.
22343
hardcode_into_libs=$hardcode_into_libs
22345
# Flag to hardcode \$libdir into a binary during linking.
22346
# This must work even if \$libdir does not exist.
22347
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22349
# If ld is used when linking, flag to hardcode \$libdir into
22350
# a binary during linking. This must work even if \$libdir does
22352
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22354
# Whether we need a single -rpath flag with a separated argument.
22355
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22357
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22358
# resulting binary.
22359
hardcode_direct=$hardcode_direct_RC
22361
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22362
# resulting binary.
22363
hardcode_minus_L=$hardcode_minus_L_RC
22365
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22366
# the resulting binary.
22367
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22369
# Set to yes if building a shared library automatically hardcodes DIR into the library
22370
# and all subsequent libraries and executables linked against it.
22371
hardcode_automatic=$hardcode_automatic_RC
22373
# Variables whose values should be saved in libtool wrapper scripts and
22374
# restored at relink time.
22375
variables_saved_for_relink="$variables_saved_for_relink"
22377
# Whether libtool must link a program against all its dependency libraries.
22378
link_all_deplibs=$link_all_deplibs_RC
22380
# Compile-time system search path for libraries
22381
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22383
# Run-time system search path for libraries
22384
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22386
# Fix the shell variable \$srcfile for the compiler.
22387
fix_srcfile_path="$fix_srcfile_path_RC"
22389
# Set to yes if exported symbols are required.
22390
always_export_symbols=$always_export_symbols_RC
22392
# The commands to list exported symbols.
22393
export_symbols_cmds=$lt_export_symbols_cmds_RC
22395
# The commands to extract the exported symbol list from a shared archive.
22396
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22398
# Symbols that should not be listed in the preloaded symbols.
22399
exclude_expsyms=$lt_exclude_expsyms_RC
22401
# Symbols that must always be exported.
22402
include_expsyms=$lt_include_expsyms_RC
22404
# ### END LIBTOOL TAG CONFIG: $tagname
22410
# If there is no Makefile yet, we rely on a make rule to execute
22411
# `config.status --recheck' to rerun these tests and create the
22412
# libtool script then.
22413
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22414
if test -f "$ltmain_in"; then
22415
test -f Makefile && make "$ltmain"
22421
ac_cpp='$CPP $CPPFLAGS'
22422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22431
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22432
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22433
{ (exit 1); exit 1; }; }
22437
# Append the new tag name to the list of available tags.
22438
if test -n "$tagname" ; then
22439
available_tags="$available_tags $tagname"
22445
# Now substitute the updated list of available tags.
22446
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22447
mv "${ofile}T" "$ofile"
22451
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22452
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22453
{ (exit 1); exit 1; }; }
22459
# This can be used to rebuild libtool when needed
22460
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22462
# Always use our own libtool.
22463
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22465
# Prevent multiple expansion
22500
LIBTOOL_SHELL="/bin/sh ./libtool"
22501
# LIBTOOL="$LIBTOOL --silent"
22502
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
22505
# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
22506
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
22509
# we patch configure quite some so we better keep that consistent for incremental runs
22510
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
22516
# Extract the first word of "msgfmt", so it can be a program name with args.
22517
set dummy msgfmt; ac_word=$2
22518
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22520
if test "${ac_cv_path_MSGFMT+set}" = set; then
22521
echo $ECHO_N "(cached) $ECHO_C" >&6
22525
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22528
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22529
for ac_dir in $PATH; do
22530
test -z "$ac_dir" && ac_dir=.
22531
if test -f $ac_dir/$ac_word; then
22532
if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
22533
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22539
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
22543
MSGFMT="$ac_cv_path_MSGFMT"
22544
if test -n "$MSGFMT"; then
22545
{ echo "$as_me:$LINENO: result: $MSGFMT" >&5
22546
echo "${ECHO_T}$MSGFMT" >&6; }
22548
{ echo "$as_me:$LINENO: result: no" >&5
22549
echo "${ECHO_T}no" >&6; }
22552
# Extract the first word of "gmsgfmt", so it can be a program name with args.
22553
set dummy gmsgfmt; ac_word=$2
22554
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22556
if test "${ac_cv_path_GMSGFMT+set}" = set; then
22557
echo $ECHO_N "(cached) $ECHO_C" >&6
22561
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22565
for as_dir in $PATH
22568
test -z "$as_dir" && as_dir=.
22569
for ac_exec_ext in '' $ac_executable_extensions; do
22570
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22571
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22572
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22579
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22583
GMSGFMT=$ac_cv_path_GMSGFMT
22584
if test -n "$GMSGFMT"; then
22585
{ echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22586
echo "${ECHO_T}$GMSGFMT" >&6; }
22588
{ echo "$as_me:$LINENO: result: no" >&5
22589
echo "${ECHO_T}no" >&6; }
22594
if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
22595
{ echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
22596
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6; }
22603
# Extract the first word of "xgettext", so it can be a program name with args.
22604
set dummy xgettext; ac_word=$2
22605
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22606
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22607
if test "${ac_cv_path_XGETTEXT+set}" = set; then
22608
echo $ECHO_N "(cached) $ECHO_C" >&6
22610
case "$XGETTEXT" in
22612
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22615
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22616
for ac_dir in $PATH; do
22617
test -z "$ac_dir" && ac_dir=.
22618
if test -f $ac_dir/$ac_word; then
22619
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22620
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22626
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22630
XGETTEXT="$ac_cv_path_XGETTEXT"
22631
if test -n "$XGETTEXT"; then
22632
{ echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22633
echo "${ECHO_T}$XGETTEXT" >&6; }
22635
{ echo "$as_me:$LINENO: result: no" >&5
22636
echo "${ECHO_T}no" >&6; }
22640
if test "$XGETTEXT" != ":"; then
22641
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22644
{ echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
22645
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
22654
if test -z "3.0.0"; then
22655
# Current default Qt version: 3.3
22659
kde_qtsubver=`echo "3.0.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
22660
# following is the check if subversion isnt found in passed argument
22661
if test "$kde_qtsubver" = "3.0.0"; then
22664
kde_qtver=`echo "3.0.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
22665
if test "$kde_qtver" = "1"; then
22670
if test -z ""; then
22671
if test "$kde_qtver" = "2"; then
22672
if test $kde_qtsubver -gt 0; then
22673
kde_qt_minversion=">= Qt 2.2.2"
22675
kde_qt_minversion=">= Qt 2.0.2"
22678
if test "$kde_qtver" = "3"; then
22679
if test $kde_qtsubver -gt 0; then
22680
if test $kde_qtsubver -gt 1; then
22681
if test $kde_qtsubver -gt 2; then
22682
kde_qt_minversion=">= Qt 3.3 and < 4.0"
22684
kde_qt_minversion=">= Qt 3.2 and < 4.0"
22687
kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
22690
kde_qt_minversion=">= Qt 3.0 and < 4.0"
22693
if test "$kde_qtver" = "1"; then
22694
kde_qt_minversion=">= 1.42 and < 2.0"
22697
kde_qt_minversion=""
22700
if test -z ""; then
22701
if test $kde_qtver = 3; then
22702
if test $kde_qtsubver -gt 0; then
22703
kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
22704
qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
22705
kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
22707
kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
22710
if test $kde_qtver = 2; then
22711
if test $kde_qtsubver -gt 0; then
22712
kde_qt_verstring="QT_VERSION >= 222"
22714
kde_qt_verstring="QT_VERSION >= 200"
22717
if test $kde_qtver = 1; then
22718
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
22721
kde_qt_verstring=""
22724
if test $kde_qtver = 4; then
22725
kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
22727
if test $kde_qtver = 3; then
22728
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
22730
if test $kde_qtver = 2; then
22731
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
22733
if test $kde_qtver = 1; then
22734
kde_qt_dirs="$QTDIR /usr/lib/qt"
22740
ac_cpp='$CXXCPP $CPPFLAGS'
22741
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22742
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22743
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22745
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22748
ac_save_CXXFLAGS="$CXXFLAGS"
22749
CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
22751
{ echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
22752
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6; }
22753
if test "${kde_cv_stl_works+set}" = set; then
22754
echo $ECHO_N "(cached) $ECHO_C" >&6
22757
cat >conftest.$ac_ext <<_ACEOF
22760
cat confdefs.h >>conftest.$ac_ext
22761
cat >>conftest.$ac_ext <<_ACEOF
22762
/* end confdefs.h. */
22765
using namespace std;
22771
string astring="Hallo Welt.";
22772
astring.erase(0, 6); // now astring is "Welt"
22779
rm -f conftest.$ac_objext
22780
if { (ac_try="$ac_compile"
22781
case "(($ac_try" in
22782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783
*) ac_try_echo=$ac_try;;
22785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786
(eval "$ac_compile") 2>conftest.er1
22788
grep -v '^ *+' conftest.er1 >conftest.err
22790
cat conftest.err >&5
22791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792
(exit $ac_status); } && {
22793
test -z "$ac_cxx_werror_flag" ||
22794
test ! -s conftest.err
22795
} && test -s conftest.$ac_objext; then
22796
kde_cv_stl_works=yes
22798
echo "$as_me: failed program was:" >&5
22799
sed 's/^/| /' conftest.$ac_ext >&5
22801
kde_cv_stl_works=no
22804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809
{ echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
22810
echo "${ECHO_T}$kde_cv_stl_works" >&6; }
22812
if test "$kde_cv_stl_works" = "yes"; then
22815
cat >>confdefs.h <<_ACEOF
22816
#define HAVE_SGI_STL 1
22820
{ { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
22821
Check config.log for details - if you're using a Linux distribution you might miss
22822
a package named similar to libstdc++-dev." >&5
22823
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
22824
Check config.log for details - if you're using a Linux distribution you might miss
22825
a package named similar to libstdc++-dev." >&2;}
22826
{ (exit 1); exit 1; }; }
22829
CXXFLAGS="$ac_save_CXXFLAGS"
22831
ac_cpp='$CPP $CPPFLAGS'
22832
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22833
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22834
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22839
{ echo "$as_me:$LINENO: checking for strlcat" >&5
22840
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
22841
if test "${kde_cv_func_strlcat+set}" = set; then
22842
echo $ECHO_N "(cached) $ECHO_C" >&6
22847
ac_cpp='$CXXCPP $CPPFLAGS'
22848
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22849
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22850
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22852
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22855
save_CXXFLAGS="$CXXFLAGS"
22856
kde_safe_LIBS="$LIBS"
22857
LIBS="$LIBS $X_EXTRA_LIBS"
22858
if test "$GXX" = "yes"; then
22859
CXXFLAGS="$CXXFLAGS -pedantic-errors"
22861
cat >conftest.$ac_ext <<_ACEOF
22864
cat confdefs.h >>conftest.$ac_ext
22865
cat >>conftest.$ac_ext <<_ACEOF
22866
/* end confdefs.h. */
22869
#include <string.h>
22878
strlcat(buf, "KDE function test", sizeof(buf));
22885
rm -f conftest.$ac_objext
22886
if { (ac_try="$ac_compile"
22887
case "(($ac_try" in
22888
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889
*) ac_try_echo=$ac_try;;
22891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892
(eval "$ac_compile") 2>conftest.er1
22894
grep -v '^ *+' conftest.er1 >conftest.err
22896
cat conftest.err >&5
22897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898
(exit $ac_status); } && {
22899
test -z "$ac_cxx_werror_flag" ||
22900
test ! -s conftest.err
22901
} && test -s conftest.$ac_objext; then
22902
kde_cv_func_strlcat=yes
22904
echo "$as_me: failed program was:" >&5
22905
sed 's/^/| /' conftest.$ac_ext >&5
22907
kde_cv_func_strlcat=no
22910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911
CXXFLAGS="$save_CXXFLAGS"
22912
LIBS="$kde_safe_LIBS"
22914
ac_cpp='$CPP $CPPFLAGS'
22915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22923
{ echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
22924
echo "${ECHO_T}$kde_cv_func_strlcat" >&6; }
22926
{ echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
22927
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6; }
22928
if test "${kde_cv_proto_strlcat+set}" = set; then
22929
echo $ECHO_N "(cached) $ECHO_C" >&6
22932
if test "x$kde_cv_func_strlcat" = xyes; then
22933
kde_cv_proto_strlcat=no
22936
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
22937
kde_cv_proto_strlcat="yes - in libkdefakes"
22940
kde_cv_proto_strlcat=unknown
22945
if test "x$kde_cv_proto_strlcat" = xunknown; then
22949
ac_cpp='$CXXCPP $CPPFLAGS'
22950
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22951
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22952
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22954
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22957
kde_safe_libs=$LIBS
22958
LIBS="$LIBS $X_EXTRA_LIBS"
22959
cat >conftest.$ac_ext <<_ACEOF
22962
cat confdefs.h >>conftest.$ac_ext
22963
cat >>conftest.$ac_ext <<_ACEOF
22964
/* end confdefs.h. */
22967
#include <string.h>
22970
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
22978
strlcat(buf, "KDE function test", sizeof(buf));
22985
rm -f conftest.$ac_objext conftest$ac_exeext
22986
if { (ac_try="$ac_link"
22987
case "(($ac_try" in
22988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989
*) ac_try_echo=$ac_try;;
22991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992
(eval "$ac_link") 2>conftest.er1
22994
grep -v '^ *+' conftest.er1 >conftest.err
22996
cat conftest.err >&5
22997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998
(exit $ac_status); } && {
22999
test -z "$ac_cxx_werror_flag" ||
23000
test ! -s conftest.err
23001
} && test -s conftest$ac_exeext &&
23002
$as_test_x conftest$ac_exeext; then
23003
kde_cv_func_strlcat=yes
23004
kde_cv_proto_strlcat=yes
23006
echo "$as_me: failed program was:" >&5
23007
sed 's/^/| /' conftest.$ac_ext >&5
23009
kde_cv_proto_strlcat="strlcat unavailable"
23013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23014
conftest$ac_exeext conftest.$ac_ext
23015
LIBS=$kde_safe_libs
23017
ac_cpp='$CPP $CPPFLAGS'
23018
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23019
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23020
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23026
{ echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
23027
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6; }
23029
if test "x$kde_cv_func_strlcat" = xyes; then
23031
cat >>confdefs.h <<\_ACEOF
23032
#define HAVE_STRLCAT 1
23037
if test "x$kde_cv_proto_strlcat" = xno; then
23039
cat >>confdefs.h <<\_ACEOF
23040
#define HAVE_STRLCAT_PROTO 1
23051
{ echo "$as_me:$LINENO: checking for strlcpy" >&5
23052
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
23053
if test "${kde_cv_func_strlcpy+set}" = set; then
23054
echo $ECHO_N "(cached) $ECHO_C" >&6
23059
ac_cpp='$CXXCPP $CPPFLAGS'
23060
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23061
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23062
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23064
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23067
save_CXXFLAGS="$CXXFLAGS"
23068
kde_safe_LIBS="$LIBS"
23069
LIBS="$LIBS $X_EXTRA_LIBS"
23070
if test "$GXX" = "yes"; then
23071
CXXFLAGS="$CXXFLAGS -pedantic-errors"
23073
cat >conftest.$ac_ext <<_ACEOF
23076
cat confdefs.h >>conftest.$ac_ext
23077
cat >>conftest.$ac_ext <<_ACEOF
23078
/* end confdefs.h. */
23081
#include <string.h>
23089
strlcpy(buf, "KDE function test", sizeof(buf));
23096
rm -f conftest.$ac_objext
23097
if { (ac_try="$ac_compile"
23098
case "(($ac_try" in
23099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100
*) ac_try_echo=$ac_try;;
23102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103
(eval "$ac_compile") 2>conftest.er1
23105
grep -v '^ *+' conftest.er1 >conftest.err
23107
cat conftest.err >&5
23108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109
(exit $ac_status); } && {
23110
test -z "$ac_cxx_werror_flag" ||
23111
test ! -s conftest.err
23112
} && test -s conftest.$ac_objext; then
23113
kde_cv_func_strlcpy=yes
23115
echo "$as_me: failed program was:" >&5
23116
sed 's/^/| /' conftest.$ac_ext >&5
23118
kde_cv_func_strlcpy=no
23121
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122
CXXFLAGS="$save_CXXFLAGS"
23123
LIBS="$kde_safe_LIBS"
23125
ac_cpp='$CPP $CPPFLAGS'
23126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23134
{ echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
23135
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6; }
23137
{ echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
23138
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6; }
23139
if test "${kde_cv_proto_strlcpy+set}" = set; then
23140
echo $ECHO_N "(cached) $ECHO_C" >&6
23143
if test "x$kde_cv_func_strlcpy" = xyes; then
23144
kde_cv_proto_strlcpy=no
23147
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23148
kde_cv_proto_strlcpy="yes - in libkdefakes"
23151
kde_cv_proto_strlcpy=unknown
23156
if test "x$kde_cv_proto_strlcpy" = xunknown; then
23160
ac_cpp='$CXXCPP $CPPFLAGS'
23161
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23162
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23163
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23165
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23168
kde_safe_libs=$LIBS
23169
LIBS="$LIBS $X_EXTRA_LIBS"
23170
cat >conftest.$ac_ext <<_ACEOF
23173
cat confdefs.h >>conftest.$ac_ext
23174
cat >>conftest.$ac_ext <<_ACEOF
23175
/* end confdefs.h. */
23178
#include <string.h>
23181
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
23188
strlcpy(buf, "KDE function test", sizeof(buf));
23195
rm -f conftest.$ac_objext conftest$ac_exeext
23196
if { (ac_try="$ac_link"
23197
case "(($ac_try" in
23198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199
*) ac_try_echo=$ac_try;;
23201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202
(eval "$ac_link") 2>conftest.er1
23204
grep -v '^ *+' conftest.er1 >conftest.err
23206
cat conftest.err >&5
23207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208
(exit $ac_status); } && {
23209
test -z "$ac_cxx_werror_flag" ||
23210
test ! -s conftest.err
23211
} && test -s conftest$ac_exeext &&
23212
$as_test_x conftest$ac_exeext; then
23213
kde_cv_func_strlcpy=yes
23214
kde_cv_proto_strlcpy=yes
23216
echo "$as_me: failed program was:" >&5
23217
sed 's/^/| /' conftest.$ac_ext >&5
23219
kde_cv_proto_strlcpy="strlcpy unavailable"
23223
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224
conftest$ac_exeext conftest.$ac_ext
23225
LIBS=$kde_safe_libs
23227
ac_cpp='$CPP $CPPFLAGS'
23228
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23229
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23230
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23236
{ echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
23237
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6; }
23239
if test "x$kde_cv_func_strlcpy" = xyes; then
23241
cat >>confdefs.h <<\_ACEOF
23242
#define HAVE_STRLCPY 1
23247
if test "x$kde_cv_proto_strlcpy" = xno; then
23249
cat >>confdefs.h <<\_ACEOF
23250
#define HAVE_STRLCPY_PROTO 1
23260
{ echo "$as_me:$LINENO: checking for main in -lutil" >&5
23261
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6; }
23262
if test "${ac_cv_lib_util_main+set}" = set; then
23263
echo $ECHO_N "(cached) $ECHO_C" >&6
23265
ac_check_lib_save_LIBS=$LIBS
23266
LIBS="-lutil $LIBS"
23267
cat >conftest.$ac_ext <<_ACEOF
23270
cat confdefs.h >>conftest.$ac_ext
23271
cat >>conftest.$ac_ext <<_ACEOF
23272
/* end confdefs.h. */
23283
rm -f conftest.$ac_objext conftest$ac_exeext
23284
if { (ac_try="$ac_link"
23285
case "(($ac_try" in
23286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287
*) ac_try_echo=$ac_try;;
23289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290
(eval "$ac_link") 2>conftest.er1
23292
grep -v '^ *+' conftest.er1 >conftest.err
23294
cat conftest.err >&5
23295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296
(exit $ac_status); } && {
23297
test -z "$ac_c_werror_flag" ||
23298
test ! -s conftest.err
23299
} && test -s conftest$ac_exeext &&
23300
$as_test_x conftest$ac_exeext; then
23301
ac_cv_lib_util_main=yes
23303
echo "$as_me: failed program was:" >&5
23304
sed 's/^/| /' conftest.$ac_ext >&5
23306
ac_cv_lib_util_main=no
23309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310
conftest$ac_exeext conftest.$ac_ext
23311
LIBS=$ac_check_lib_save_LIBS
23313
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
23314
echo "${ECHO_T}$ac_cv_lib_util_main" >&6; }
23315
if test $ac_cv_lib_util_main = yes; then
23319
{ echo "$as_me:$LINENO: checking for main in -lcompat" >&5
23320
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6; }
23321
if test "${ac_cv_lib_compat_main+set}" = set; then
23322
echo $ECHO_N "(cached) $ECHO_C" >&6
23324
ac_check_lib_save_LIBS=$LIBS
23325
LIBS="-lcompat $LIBS"
23326
cat >conftest.$ac_ext <<_ACEOF
23329
cat confdefs.h >>conftest.$ac_ext
23330
cat >>conftest.$ac_ext <<_ACEOF
23331
/* end confdefs.h. */
23342
rm -f conftest.$ac_objext conftest$ac_exeext
23343
if { (ac_try="$ac_link"
23344
case "(($ac_try" in
23345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346
*) ac_try_echo=$ac_try;;
23348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23349
(eval "$ac_link") 2>conftest.er1
23351
grep -v '^ *+' conftest.er1 >conftest.err
23353
cat conftest.err >&5
23354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355
(exit $ac_status); } && {
23356
test -z "$ac_c_werror_flag" ||
23357
test ! -s conftest.err
23358
} && test -s conftest$ac_exeext &&
23359
$as_test_x conftest$ac_exeext; then
23360
ac_cv_lib_compat_main=yes
23362
echo "$as_me: failed program was:" >&5
23363
sed 's/^/| /' conftest.$ac_ext >&5
23365
ac_cv_lib_compat_main=no
23368
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23369
conftest$ac_exeext conftest.$ac_ext
23370
LIBS=$ac_check_lib_save_LIBS
23372
{ echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
23373
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6; }
23374
if test $ac_cv_lib_compat_main = yes; then
23375
LIBCOMPAT="-lcompat"
23379
{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23380
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23381
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23382
echo $ECHO_N "(cached) $ECHO_C" >&6
23384
ac_check_lib_save_LIBS=$LIBS
23385
LIBS="-lcrypt $LIBS"
23386
cat >conftest.$ac_ext <<_ACEOF
23389
cat confdefs.h >>conftest.$ac_ext
23390
cat >>conftest.$ac_ext <<_ACEOF
23391
/* end confdefs.h. */
23393
/* Override any GCC internal prototype to avoid an error.
23394
Use char because int might match the return type of a GCC
23395
builtin and then its argument prototype would still apply. */
23408
rm -f conftest.$ac_objext conftest$ac_exeext
23409
if { (ac_try="$ac_link"
23410
case "(($ac_try" in
23411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412
*) ac_try_echo=$ac_try;;
23414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415
(eval "$ac_link") 2>conftest.er1
23417
grep -v '^ *+' conftest.er1 >conftest.err
23419
cat conftest.err >&5
23420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421
(exit $ac_status); } && {
23422
test -z "$ac_c_werror_flag" ||
23423
test ! -s conftest.err
23424
} && test -s conftest$ac_exeext &&
23425
$as_test_x conftest$ac_exeext; then
23426
ac_cv_lib_crypt_crypt=yes
23428
echo "$as_me: failed program was:" >&5
23429
sed 's/^/| /' conftest.$ac_ext >&5
23431
ac_cv_lib_crypt_crypt=no
23434
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23435
conftest$ac_exeext conftest.$ac_ext
23436
LIBS=$ac_check_lib_save_LIBS
23438
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23439
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23440
if test $ac_cv_lib_crypt_crypt = yes; then
23441
LIBCRYPT="-lcrypt"; kde_have_crypt=yes
23443
{ echo "$as_me:$LINENO: checking for crypt in -lc" >&5
23444
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
23445
if test "${ac_cv_lib_c_crypt+set}" = set; then
23446
echo $ECHO_N "(cached) $ECHO_C" >&6
23448
ac_check_lib_save_LIBS=$LIBS
23450
cat >conftest.$ac_ext <<_ACEOF
23453
cat confdefs.h >>conftest.$ac_ext
23454
cat >>conftest.$ac_ext <<_ACEOF
23455
/* end confdefs.h. */
23457
/* Override any GCC internal prototype to avoid an error.
23458
Use char because int might match the return type of a GCC
23459
builtin and then its argument prototype would still apply. */
23472
rm -f conftest.$ac_objext conftest$ac_exeext
23473
if { (ac_try="$ac_link"
23474
case "(($ac_try" in
23475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476
*) ac_try_echo=$ac_try;;
23478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479
(eval "$ac_link") 2>conftest.er1
23481
grep -v '^ *+' conftest.er1 >conftest.err
23483
cat conftest.err >&5
23484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485
(exit $ac_status); } && {
23486
test -z "$ac_c_werror_flag" ||
23487
test ! -s conftest.err
23488
} && test -s conftest$ac_exeext &&
23489
$as_test_x conftest$ac_exeext; then
23490
ac_cv_lib_c_crypt=yes
23492
echo "$as_me: failed program was:" >&5
23493
sed 's/^/| /' conftest.$ac_ext >&5
23495
ac_cv_lib_c_crypt=no
23498
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23499
conftest$ac_exeext conftest.$ac_ext
23500
LIBS=$ac_check_lib_save_LIBS
23502
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
23503
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
23504
if test $ac_cv_lib_c_crypt = yes; then
23508
{ echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
23509
You should install libcrypt from another source or configure with PAM
23511
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
23512
You should install libcrypt from another source or configure with PAM
23521
if test $kde_have_crypt = yes; then
23523
cat >>confdefs.h <<_ACEOF
23524
#define HAVE_CRYPT 1
23529
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
23530
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23531
if test "${kde_cv_socklen_t+set}" = set; then
23532
echo $ECHO_N "(cached) $ECHO_C" >&6
23536
ac_cpp='$CXXCPP $CPPFLAGS'
23537
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23538
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23539
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23541
kde_cv_socklen_t=no
23542
cat >conftest.$ac_ext <<_ACEOF
23545
cat confdefs.h >>conftest.$ac_ext
23546
cat >>conftest.$ac_ext <<_ACEOF
23547
/* end confdefs.h. */
23549
#include <sys/types.h>
23550
#include <sys/socket.h>
23557
getpeername(0,0,&len);
23563
rm -f conftest.$ac_objext
23564
if { (ac_try="$ac_compile"
23565
case "(($ac_try" in
23566
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567
*) ac_try_echo=$ac_try;;
23569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570
(eval "$ac_compile") 2>conftest.er1
23572
grep -v '^ *+' conftest.er1 >conftest.err
23574
cat conftest.err >&5
23575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576
(exit $ac_status); } && {
23577
test -z "$ac_cxx_werror_flag" ||
23578
test ! -s conftest.err
23579
} && test -s conftest.$ac_objext; then
23581
kde_cv_socklen_t=yes
23582
kde_cv_socklen_t_equiv=socklen_t
23585
echo "$as_me: failed program was:" >&5
23586
sed 's/^/| /' conftest.$ac_ext >&5
23591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593
ac_cpp='$CPP $CPPFLAGS'
23594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23601
{ echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
23602
echo "${ECHO_T}$kde_cv_socklen_t" >&6; }
23603
if test $kde_cv_socklen_t = no; then
23604
{ echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
23605
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6; }
23606
if test "${kde_cv_socklen_t_equiv+set}" = set; then
23607
echo $ECHO_N "(cached) $ECHO_C" >&6
23610
kde_cv_socklen_t_equiv=int
23612
ac_cpp='$CXXCPP $CPPFLAGS'
23613
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23614
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23615
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23617
for t in int size_t unsigned long "unsigned long"; do
23618
cat >conftest.$ac_ext <<_ACEOF
23621
cat confdefs.h >>conftest.$ac_ext
23622
cat >>conftest.$ac_ext <<_ACEOF
23623
/* end confdefs.h. */
23625
#include <sys/types.h>
23626
#include <sys/socket.h>
23633
getpeername(0,0,&len);
23639
rm -f conftest.$ac_objext
23640
if { (ac_try="$ac_compile"
23641
case "(($ac_try" in
23642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643
*) ac_try_echo=$ac_try;;
23645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23646
(eval "$ac_compile") 2>conftest.er1
23648
grep -v '^ *+' conftest.er1 >conftest.err
23650
cat conftest.err >&5
23651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652
(exit $ac_status); } && {
23653
test -z "$ac_cxx_werror_flag" ||
23654
test ! -s conftest.err
23655
} && test -s conftest.$ac_objext; then
23657
kde_cv_socklen_t_equiv="$t"
23661
echo "$as_me: failed program was:" >&5
23662
sed 's/^/| /' conftest.$ac_ext >&5
23667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670
ac_cpp='$CPP $CPPFLAGS'
23671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23678
{ echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
23679
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6; }
23682
cat >>confdefs.h <<_ACEOF
23683
#define kde_socklen_t $kde_cv_socklen_t_equiv
23687
cat >>confdefs.h <<_ACEOF
23688
#define ksize_t $kde_cv_socklen_t_equiv
23692
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23693
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23694
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23695
echo $ECHO_N "(cached) $ECHO_C" >&6
23697
ac_check_lib_save_LIBS=$LIBS
23698
LIBS="-ldnet $LIBS"
23699
cat >conftest.$ac_ext <<_ACEOF
23702
cat confdefs.h >>conftest.$ac_ext
23703
cat >>conftest.$ac_ext <<_ACEOF
23704
/* end confdefs.h. */
23706
/* Override any GCC internal prototype to avoid an error.
23707
Use char because int might match the return type of a GCC
23708
builtin and then its argument prototype would still apply. */
23716
return dnet_ntoa ();
23721
rm -f conftest.$ac_objext conftest$ac_exeext
23722
if { (ac_try="$ac_link"
23723
case "(($ac_try" in
23724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725
*) ac_try_echo=$ac_try;;
23727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23728
(eval "$ac_link") 2>conftest.er1
23730
grep -v '^ *+' conftest.er1 >conftest.err
23732
cat conftest.err >&5
23733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734
(exit $ac_status); } && {
23735
test -z "$ac_c_werror_flag" ||
23736
test ! -s conftest.err
23737
} && test -s conftest$ac_exeext &&
23738
$as_test_x conftest$ac_exeext; then
23739
ac_cv_lib_dnet_dnet_ntoa=yes
23741
echo "$as_me: failed program was:" >&5
23742
sed 's/^/| /' conftest.$ac_ext >&5
23744
ac_cv_lib_dnet_dnet_ntoa=no
23747
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23748
conftest$ac_exeext conftest.$ac_ext
23749
LIBS=$ac_check_lib_save_LIBS
23751
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23752
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23753
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23754
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23757
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23758
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23759
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23760
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23761
echo $ECHO_N "(cached) $ECHO_C" >&6
23763
ac_check_lib_save_LIBS=$LIBS
23764
LIBS="-ldnet_stub $LIBS"
23765
cat >conftest.$ac_ext <<_ACEOF
23768
cat confdefs.h >>conftest.$ac_ext
23769
cat >>conftest.$ac_ext <<_ACEOF
23770
/* end confdefs.h. */
23772
/* Override any GCC internal prototype to avoid an error.
23773
Use char because int might match the return type of a GCC
23774
builtin and then its argument prototype would still apply. */
23782
return dnet_ntoa ();
23787
rm -f conftest.$ac_objext conftest$ac_exeext
23788
if { (ac_try="$ac_link"
23789
case "(($ac_try" in
23790
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791
*) ac_try_echo=$ac_try;;
23793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794
(eval "$ac_link") 2>conftest.er1
23796
grep -v '^ *+' conftest.er1 >conftest.err
23798
cat conftest.err >&5
23799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800
(exit $ac_status); } && {
23801
test -z "$ac_c_werror_flag" ||
23802
test ! -s conftest.err
23803
} && test -s conftest$ac_exeext &&
23804
$as_test_x conftest$ac_exeext; then
23805
ac_cv_lib_dnet_stub_dnet_ntoa=yes
23807
echo "$as_me: failed program was:" >&5
23808
sed 's/^/| /' conftest.$ac_ext >&5
23810
ac_cv_lib_dnet_stub_dnet_ntoa=no
23813
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23814
conftest$ac_exeext conftest.$ac_ext
23815
LIBS=$ac_check_lib_save_LIBS
23817
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23818
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23819
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23820
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23824
{ echo "$as_me:$LINENO: checking for inet_ntoa" >&5
23825
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; }
23826
if test "${ac_cv_func_inet_ntoa+set}" = set; then
23827
echo $ECHO_N "(cached) $ECHO_C" >&6
23829
cat >conftest.$ac_ext <<_ACEOF
23832
cat confdefs.h >>conftest.$ac_ext
23833
cat >>conftest.$ac_ext <<_ACEOF
23834
/* end confdefs.h. */
23835
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
23836
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23837
#define inet_ntoa innocuous_inet_ntoa
23839
/* System header to define __stub macros and hopefully few prototypes,
23840
which can conflict with char inet_ntoa (); below.
23841
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23842
<limits.h> exists even on freestanding compilers. */
23845
# include <limits.h>
23847
# include <assert.h>
23852
/* Override any GCC internal prototype to avoid an error.
23853
Use char because int might match the return type of a GCC
23854
builtin and then its argument prototype would still apply. */
23859
/* The GNU C library defines this for functions which it implements
23860
to always fail with ENOSYS. Some functions are actually named
23861
something starting with __ and the normal name is an alias. */
23862
#if defined __stub_inet_ntoa || defined __stub___inet_ntoa
23869
return inet_ntoa ();
23874
rm -f conftest.$ac_objext conftest$ac_exeext
23875
if { (ac_try="$ac_link"
23876
case "(($ac_try" in
23877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878
*) ac_try_echo=$ac_try;;
23880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881
(eval "$ac_link") 2>conftest.er1
23883
grep -v '^ *+' conftest.er1 >conftest.err
23885
cat conftest.err >&5
23886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887
(exit $ac_status); } && {
23888
test -z "$ac_c_werror_flag" ||
23889
test ! -s conftest.err
23890
} && test -s conftest$ac_exeext &&
23891
$as_test_x conftest$ac_exeext; then
23892
ac_cv_func_inet_ntoa=yes
23894
echo "$as_me: failed program was:" >&5
23895
sed 's/^/| /' conftest.$ac_ext >&5
23897
ac_cv_func_inet_ntoa=no
23900
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23901
conftest$ac_exeext conftest.$ac_ext
23903
{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
23904
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; }
23906
if test $ac_cv_func_inet_ntoa = no; then
23907
{ echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
23908
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
23909
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
23910
echo $ECHO_N "(cached) $ECHO_C" >&6
23912
ac_check_lib_save_LIBS=$LIBS
23914
cat >conftest.$ac_ext <<_ACEOF
23917
cat confdefs.h >>conftest.$ac_ext
23918
cat >>conftest.$ac_ext <<_ACEOF
23919
/* end confdefs.h. */
23921
/* Override any GCC internal prototype to avoid an error.
23922
Use char because int might match the return type of a GCC
23923
builtin and then its argument prototype would still apply. */
23931
return inet_ntoa ();
23936
rm -f conftest.$ac_objext conftest$ac_exeext
23937
if { (ac_try="$ac_link"
23938
case "(($ac_try" in
23939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940
*) ac_try_echo=$ac_try;;
23942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943
(eval "$ac_link") 2>conftest.er1
23945
grep -v '^ *+' conftest.er1 >conftest.err
23947
cat conftest.err >&5
23948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949
(exit $ac_status); } && {
23950
test -z "$ac_c_werror_flag" ||
23951
test ! -s conftest.err
23952
} && test -s conftest$ac_exeext &&
23953
$as_test_x conftest$ac_exeext; then
23954
ac_cv_lib_nsl_inet_ntoa=yes
23956
echo "$as_me: failed program was:" >&5
23957
sed 's/^/| /' conftest.$ac_ext >&5
23959
ac_cv_lib_nsl_inet_ntoa=no
23962
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23963
conftest$ac_exeext conftest.$ac_ext
23964
LIBS=$ac_check_lib_save_LIBS
23966
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
23967
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
23968
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
23969
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23973
{ echo "$as_me:$LINENO: checking for connect" >&5
23974
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23975
if test "${ac_cv_func_connect+set}" = set; then
23976
echo $ECHO_N "(cached) $ECHO_C" >&6
23978
cat >conftest.$ac_ext <<_ACEOF
23981
cat confdefs.h >>conftest.$ac_ext
23982
cat >>conftest.$ac_ext <<_ACEOF
23983
/* end confdefs.h. */
23984
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23985
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23986
#define connect innocuous_connect
23988
/* System header to define __stub macros and hopefully few prototypes,
23989
which can conflict with char connect (); below.
23990
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23991
<limits.h> exists even on freestanding compilers. */
23994
# include <limits.h>
23996
# include <assert.h>
24001
/* Override any GCC internal prototype to avoid an error.
24002
Use char because int might match the return type of a GCC
24003
builtin and then its argument prototype would still apply. */
24008
/* The GNU C library defines this for functions which it implements
24009
to always fail with ENOSYS. Some functions are actually named
24010
something starting with __ and the normal name is an alias. */
24011
#if defined __stub_connect || defined __stub___connect
24023
rm -f conftest.$ac_objext conftest$ac_exeext
24024
if { (ac_try="$ac_link"
24025
case "(($ac_try" in
24026
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027
*) ac_try_echo=$ac_try;;
24029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030
(eval "$ac_link") 2>conftest.er1
24032
grep -v '^ *+' conftest.er1 >conftest.err
24034
cat conftest.err >&5
24035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036
(exit $ac_status); } && {
24037
test -z "$ac_c_werror_flag" ||
24038
test ! -s conftest.err
24039
} && test -s conftest$ac_exeext &&
24040
$as_test_x conftest$ac_exeext; then
24041
ac_cv_func_connect=yes
24043
echo "$as_me: failed program was:" >&5
24044
sed 's/^/| /' conftest.$ac_ext >&5
24046
ac_cv_func_connect=no
24049
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24050
conftest$ac_exeext conftest.$ac_ext
24052
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24053
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
24055
if test $ac_cv_func_connect = no; then
24056
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24057
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
24058
if test "${ac_cv_lib_socket_connect+set}" = set; then
24059
echo $ECHO_N "(cached) $ECHO_C" >&6
24061
ac_check_lib_save_LIBS=$LIBS
24062
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24063
cat >conftest.$ac_ext <<_ACEOF
24066
cat confdefs.h >>conftest.$ac_ext
24067
cat >>conftest.$ac_ext <<_ACEOF
24068
/* end confdefs.h. */
24070
/* Override any GCC internal prototype to avoid an error.
24071
Use char because int might match the return type of a GCC
24072
builtin and then its argument prototype would still apply. */
24085
rm -f conftest.$ac_objext conftest$ac_exeext
24086
if { (ac_try="$ac_link"
24087
case "(($ac_try" in
24088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089
*) ac_try_echo=$ac_try;;
24091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24092
(eval "$ac_link") 2>conftest.er1
24094
grep -v '^ *+' conftest.er1 >conftest.err
24096
cat conftest.err >&5
24097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098
(exit $ac_status); } && {
24099
test -z "$ac_c_werror_flag" ||
24100
test ! -s conftest.err
24101
} && test -s conftest$ac_exeext &&
24102
$as_test_x conftest$ac_exeext; then
24103
ac_cv_lib_socket_connect=yes
24105
echo "$as_me: failed program was:" >&5
24106
sed 's/^/| /' conftest.$ac_ext >&5
24108
ac_cv_lib_socket_connect=no
24111
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24112
conftest$ac_exeext conftest.$ac_ext
24113
LIBS=$ac_check_lib_save_LIBS
24115
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24116
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
24117
if test $ac_cv_lib_socket_connect = yes; then
24118
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24123
{ echo "$as_me:$LINENO: checking for remove" >&5
24124
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
24125
if test "${ac_cv_func_remove+set}" = set; then
24126
echo $ECHO_N "(cached) $ECHO_C" >&6
24128
cat >conftest.$ac_ext <<_ACEOF
24131
cat confdefs.h >>conftest.$ac_ext
24132
cat >>conftest.$ac_ext <<_ACEOF
24133
/* end confdefs.h. */
24134
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24135
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24136
#define remove innocuous_remove
24138
/* System header to define __stub macros and hopefully few prototypes,
24139
which can conflict with char remove (); below.
24140
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24141
<limits.h> exists even on freestanding compilers. */
24144
# include <limits.h>
24146
# include <assert.h>
24151
/* Override any GCC internal prototype to avoid an error.
24152
Use char because int might match the return type of a GCC
24153
builtin and then its argument prototype would still apply. */
24158
/* The GNU C library defines this for functions which it implements
24159
to always fail with ENOSYS. Some functions are actually named
24160
something starting with __ and the normal name is an alias. */
24161
#if defined __stub_remove || defined __stub___remove
24173
rm -f conftest.$ac_objext conftest$ac_exeext
24174
if { (ac_try="$ac_link"
24175
case "(($ac_try" in
24176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177
*) ac_try_echo=$ac_try;;
24179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180
(eval "$ac_link") 2>conftest.er1
24182
grep -v '^ *+' conftest.er1 >conftest.err
24184
cat conftest.err >&5
24185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186
(exit $ac_status); } && {
24187
test -z "$ac_c_werror_flag" ||
24188
test ! -s conftest.err
24189
} && test -s conftest$ac_exeext &&
24190
$as_test_x conftest$ac_exeext; then
24191
ac_cv_func_remove=yes
24193
echo "$as_me: failed program was:" >&5
24194
sed 's/^/| /' conftest.$ac_ext >&5
24196
ac_cv_func_remove=no
24199
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24200
conftest$ac_exeext conftest.$ac_ext
24202
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24203
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24205
if test $ac_cv_func_remove = no; then
24206
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24207
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24208
if test "${ac_cv_lib_posix_remove+set}" = set; then
24209
echo $ECHO_N "(cached) $ECHO_C" >&6
24211
ac_check_lib_save_LIBS=$LIBS
24212
LIBS="-lposix $LIBS"
24213
cat >conftest.$ac_ext <<_ACEOF
24216
cat confdefs.h >>conftest.$ac_ext
24217
cat >>conftest.$ac_ext <<_ACEOF
24218
/* end confdefs.h. */
24220
/* Override any GCC internal prototype to avoid an error.
24221
Use char because int might match the return type of a GCC
24222
builtin and then its argument prototype would still apply. */
24235
rm -f conftest.$ac_objext conftest$ac_exeext
24236
if { (ac_try="$ac_link"
24237
case "(($ac_try" in
24238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24239
*) ac_try_echo=$ac_try;;
24241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24242
(eval "$ac_link") 2>conftest.er1
24244
grep -v '^ *+' conftest.er1 >conftest.err
24246
cat conftest.err >&5
24247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248
(exit $ac_status); } && {
24249
test -z "$ac_c_werror_flag" ||
24250
test ! -s conftest.err
24251
} && test -s conftest$ac_exeext &&
24252
$as_test_x conftest$ac_exeext; then
24253
ac_cv_lib_posix_remove=yes
24255
echo "$as_me: failed program was:" >&5
24256
sed 's/^/| /' conftest.$ac_ext >&5
24258
ac_cv_lib_posix_remove=no
24261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24262
conftest$ac_exeext conftest.$ac_ext
24263
LIBS=$ac_check_lib_save_LIBS
24265
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24266
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24267
if test $ac_cv_lib_posix_remove = yes; then
24268
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24273
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24274
{ echo "$as_me:$LINENO: checking for shmat" >&5
24275
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24276
if test "${ac_cv_func_shmat+set}" = set; then
24277
echo $ECHO_N "(cached) $ECHO_C" >&6
24279
cat >conftest.$ac_ext <<_ACEOF
24282
cat confdefs.h >>conftest.$ac_ext
24283
cat >>conftest.$ac_ext <<_ACEOF
24284
/* end confdefs.h. */
24285
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24286
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24287
#define shmat innocuous_shmat
24289
/* System header to define __stub macros and hopefully few prototypes,
24290
which can conflict with char shmat (); below.
24291
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24292
<limits.h> exists even on freestanding compilers. */
24295
# include <limits.h>
24297
# include <assert.h>
24302
/* Override any GCC internal prototype to avoid an error.
24303
Use char because int might match the return type of a GCC
24304
builtin and then its argument prototype would still apply. */
24309
/* The GNU C library defines this for functions which it implements
24310
to always fail with ENOSYS. Some functions are actually named
24311
something starting with __ and the normal name is an alias. */
24312
#if defined __stub_shmat || defined __stub___shmat
24324
rm -f conftest.$ac_objext conftest$ac_exeext
24325
if { (ac_try="$ac_link"
24326
case "(($ac_try" in
24327
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328
*) ac_try_echo=$ac_try;;
24330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331
(eval "$ac_link") 2>conftest.er1
24333
grep -v '^ *+' conftest.er1 >conftest.err
24335
cat conftest.err >&5
24336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337
(exit $ac_status); } && {
24338
test -z "$ac_c_werror_flag" ||
24339
test ! -s conftest.err
24340
} && test -s conftest$ac_exeext &&
24341
$as_test_x conftest$ac_exeext; then
24342
ac_cv_func_shmat=yes
24344
echo "$as_me: failed program was:" >&5
24345
sed 's/^/| /' conftest.$ac_ext >&5
24347
ac_cv_func_shmat=no
24350
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24351
conftest$ac_exeext conftest.$ac_ext
24353
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24354
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24355
if test $ac_cv_func_shmat = yes; then
24358
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24359
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24360
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24361
echo $ECHO_N "(cached) $ECHO_C" >&6
24363
ac_check_lib_save_LIBS=$LIBS
24365
cat >conftest.$ac_ext <<_ACEOF
24368
cat confdefs.h >>conftest.$ac_ext
24369
cat >>conftest.$ac_ext <<_ACEOF
24370
/* end confdefs.h. */
24372
/* Override any GCC internal prototype to avoid an error.
24373
Use char because int might match the return type of a GCC
24374
builtin and then its argument prototype would still apply. */
24387
rm -f conftest.$ac_objext conftest$ac_exeext
24388
if { (ac_try="$ac_link"
24389
case "(($ac_try" in
24390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24391
*) ac_try_echo=$ac_try;;
24393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24394
(eval "$ac_link") 2>conftest.er1
24396
grep -v '^ *+' conftest.er1 >conftest.err
24398
cat conftest.err >&5
24399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400
(exit $ac_status); } && {
24401
test -z "$ac_c_werror_flag" ||
24402
test ! -s conftest.err
24403
} && test -s conftest$ac_exeext &&
24404
$as_test_x conftest$ac_exeext; then
24405
ac_cv_lib_ipc_shmat=yes
24407
echo "$as_me: failed program was:" >&5
24408
sed 's/^/| /' conftest.$ac_ext >&5
24410
ac_cv_lib_ipc_shmat=no
24413
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24414
conftest$ac_exeext conftest.$ac_ext
24415
LIBS=$ac_check_lib_save_LIBS
24417
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24418
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24419
if test $ac_cv_lib_ipc_shmat = yes; then
24420
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24426
# more headers that need to be explicitly included on darwin
24429
for ac_header in sys/types.h stdint.h
24431
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24432
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24433
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24434
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24435
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24436
echo $ECHO_N "(cached) $ECHO_C" >&6
24438
ac_res=`eval echo '${'$as_ac_Header'}'`
24439
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24440
echo "${ECHO_T}$ac_res" >&6; }
24442
# Is the header compilable?
24443
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24444
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24445
cat >conftest.$ac_ext <<_ACEOF
24448
cat confdefs.h >>conftest.$ac_ext
24449
cat >>conftest.$ac_ext <<_ACEOF
24450
/* end confdefs.h. */
24451
$ac_includes_default
24452
#include <$ac_header>
24454
rm -f conftest.$ac_objext
24455
if { (ac_try="$ac_compile"
24456
case "(($ac_try" in
24457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458
*) ac_try_echo=$ac_try;;
24460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461
(eval "$ac_compile") 2>conftest.er1
24463
grep -v '^ *+' conftest.er1 >conftest.err
24465
cat conftest.err >&5
24466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467
(exit $ac_status); } && {
24468
test -z "$ac_c_werror_flag" ||
24469
test ! -s conftest.err
24470
} && test -s conftest.$ac_objext; then
24471
ac_header_compiler=yes
24473
echo "$as_me: failed program was:" >&5
24474
sed 's/^/| /' conftest.$ac_ext >&5
24476
ac_header_compiler=no
24479
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24481
echo "${ECHO_T}$ac_header_compiler" >&6; }
24483
# Is the header present?
24484
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24485
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24486
cat >conftest.$ac_ext <<_ACEOF
24489
cat confdefs.h >>conftest.$ac_ext
24490
cat >>conftest.$ac_ext <<_ACEOF
24491
/* end confdefs.h. */
24492
#include <$ac_header>
24494
if { (ac_try="$ac_cpp conftest.$ac_ext"
24495
case "(($ac_try" in
24496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497
*) ac_try_echo=$ac_try;;
24499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24502
grep -v '^ *+' conftest.er1 >conftest.err
24504
cat conftest.err >&5
24505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506
(exit $ac_status); } >/dev/null && {
24507
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24508
test ! -s conftest.err
24510
ac_header_preproc=yes
24512
echo "$as_me: failed program was:" >&5
24513
sed 's/^/| /' conftest.$ac_ext >&5
24515
ac_header_preproc=no
24518
rm -f conftest.err conftest.$ac_ext
24519
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24520
echo "${ECHO_T}$ac_header_preproc" >&6; }
24522
# So? What about this header?
24523
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24525
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24526
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24527
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24528
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24529
ac_header_preproc=yes
24532
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24533
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24534
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24535
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24536
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24537
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24538
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24539
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24540
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24541
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24542
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24543
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24547
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24548
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24549
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24550
echo $ECHO_N "(cached) $ECHO_C" >&6
24552
eval "$as_ac_Header=\$ac_header_preproc"
24554
ac_res=`eval echo '${'$as_ac_Header'}'`
24555
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24556
echo "${ECHO_T}$ac_res" >&6; }
24559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24560
cat >>confdefs.h <<_ACEOF
24561
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24569
# sys/bitypes.h is needed for uint32_t and friends on Tru64
24571
for ac_header in sys/bitypes.h
24573
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24574
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24575
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24576
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24577
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24578
echo $ECHO_N "(cached) $ECHO_C" >&6
24580
ac_res=`eval echo '${'$as_ac_Header'}'`
24581
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24582
echo "${ECHO_T}$ac_res" >&6; }
24584
# Is the header compilable?
24585
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24586
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24587
cat >conftest.$ac_ext <<_ACEOF
24590
cat confdefs.h >>conftest.$ac_ext
24591
cat >>conftest.$ac_ext <<_ACEOF
24592
/* end confdefs.h. */
24593
$ac_includes_default
24594
#include <$ac_header>
24596
rm -f conftest.$ac_objext
24597
if { (ac_try="$ac_compile"
24598
case "(($ac_try" in
24599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600
*) ac_try_echo=$ac_try;;
24602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603
(eval "$ac_compile") 2>conftest.er1
24605
grep -v '^ *+' conftest.er1 >conftest.err
24607
cat conftest.err >&5
24608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609
(exit $ac_status); } && {
24610
test -z "$ac_c_werror_flag" ||
24611
test ! -s conftest.err
24612
} && test -s conftest.$ac_objext; then
24613
ac_header_compiler=yes
24615
echo "$as_me: failed program was:" >&5
24616
sed 's/^/| /' conftest.$ac_ext >&5
24618
ac_header_compiler=no
24621
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24622
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24623
echo "${ECHO_T}$ac_header_compiler" >&6; }
24625
# Is the header present?
24626
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24627
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24628
cat >conftest.$ac_ext <<_ACEOF
24631
cat confdefs.h >>conftest.$ac_ext
24632
cat >>conftest.$ac_ext <<_ACEOF
24633
/* end confdefs.h. */
24634
#include <$ac_header>
24636
if { (ac_try="$ac_cpp conftest.$ac_ext"
24637
case "(($ac_try" in
24638
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639
*) ac_try_echo=$ac_try;;
24641
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24642
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24644
grep -v '^ *+' conftest.er1 >conftest.err
24646
cat conftest.err >&5
24647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648
(exit $ac_status); } >/dev/null && {
24649
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24650
test ! -s conftest.err
24652
ac_header_preproc=yes
24654
echo "$as_me: failed program was:" >&5
24655
sed 's/^/| /' conftest.$ac_ext >&5
24657
ac_header_preproc=no
24660
rm -f conftest.err conftest.$ac_ext
24661
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24662
echo "${ECHO_T}$ac_header_preproc" >&6; }
24664
# So? What about this header?
24665
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24667
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24668
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24669
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24670
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24671
ac_header_preproc=yes
24674
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24675
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24676
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24677
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24678
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24679
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24680
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24681
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24682
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24683
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24684
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24685
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24689
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24691
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24692
echo $ECHO_N "(cached) $ECHO_C" >&6
24694
eval "$as_ac_Header=\$ac_header_preproc"
24696
ac_res=`eval echo '${'$as_ac_Header'}'`
24697
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24698
echo "${ECHO_T}$ac_res" >&6; }
24701
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24702
cat >>confdefs.h <<_ACEOF
24703
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24711
# darwin requires a poll emulation library
24712
{ echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
24713
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
24714
if test "${ac_cv_lib_poll_poll+set}" = set; then
24715
echo $ECHO_N "(cached) $ECHO_C" >&6
24717
ac_check_lib_save_LIBS=$LIBS
24718
LIBS="-lpoll $LIBS"
24719
cat >conftest.$ac_ext <<_ACEOF
24722
cat confdefs.h >>conftest.$ac_ext
24723
cat >>conftest.$ac_ext <<_ACEOF
24724
/* end confdefs.h. */
24726
/* Override any GCC internal prototype to avoid an error.
24727
Use char because int might match the return type of a GCC
24728
builtin and then its argument prototype would still apply. */
24741
rm -f conftest.$ac_objext conftest$ac_exeext
24742
if { (ac_try="$ac_link"
24743
case "(($ac_try" in
24744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745
*) ac_try_echo=$ac_try;;
24747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24748
(eval "$ac_link") 2>conftest.er1
24750
grep -v '^ *+' conftest.er1 >conftest.err
24752
cat conftest.err >&5
24753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754
(exit $ac_status); } && {
24755
test -z "$ac_c_werror_flag" ||
24756
test ! -s conftest.err
24757
} && test -s conftest$ac_exeext &&
24758
$as_test_x conftest$ac_exeext; then
24759
ac_cv_lib_poll_poll=yes
24761
echo "$as_me: failed program was:" >&5
24762
sed 's/^/| /' conftest.$ac_ext >&5
24764
ac_cv_lib_poll_poll=no
24767
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24768
conftest$ac_exeext conftest.$ac_ext
24769
LIBS=$ac_check_lib_save_LIBS
24771
{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
24772
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
24773
if test $ac_cv_lib_poll_poll = yes; then
24778
# for some image handling on Mac OS X
24780
for ac_header in Carbon/Carbon.h
24782
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24783
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24784
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24785
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24786
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24787
echo $ECHO_N "(cached) $ECHO_C" >&6
24789
ac_res=`eval echo '${'$as_ac_Header'}'`
24790
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24791
echo "${ECHO_T}$ac_res" >&6; }
24793
# Is the header compilable?
24794
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24795
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24796
cat >conftest.$ac_ext <<_ACEOF
24799
cat confdefs.h >>conftest.$ac_ext
24800
cat >>conftest.$ac_ext <<_ACEOF
24801
/* end confdefs.h. */
24802
$ac_includes_default
24803
#include <$ac_header>
24805
rm -f conftest.$ac_objext
24806
if { (ac_try="$ac_compile"
24807
case "(($ac_try" in
24808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809
*) ac_try_echo=$ac_try;;
24811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24812
(eval "$ac_compile") 2>conftest.er1
24814
grep -v '^ *+' conftest.er1 >conftest.err
24816
cat conftest.err >&5
24817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818
(exit $ac_status); } && {
24819
test -z "$ac_c_werror_flag" ||
24820
test ! -s conftest.err
24821
} && test -s conftest.$ac_objext; then
24822
ac_header_compiler=yes
24824
echo "$as_me: failed program was:" >&5
24825
sed 's/^/| /' conftest.$ac_ext >&5
24827
ac_header_compiler=no
24830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24832
echo "${ECHO_T}$ac_header_compiler" >&6; }
24834
# Is the header present?
24835
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24836
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24837
cat >conftest.$ac_ext <<_ACEOF
24840
cat confdefs.h >>conftest.$ac_ext
24841
cat >>conftest.$ac_ext <<_ACEOF
24842
/* end confdefs.h. */
24843
#include <$ac_header>
24845
if { (ac_try="$ac_cpp conftest.$ac_ext"
24846
case "(($ac_try" in
24847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848
*) ac_try_echo=$ac_try;;
24850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24853
grep -v '^ *+' conftest.er1 >conftest.err
24855
cat conftest.err >&5
24856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857
(exit $ac_status); } >/dev/null && {
24858
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24859
test ! -s conftest.err
24861
ac_header_preproc=yes
24863
echo "$as_me: failed program was:" >&5
24864
sed 's/^/| /' conftest.$ac_ext >&5
24866
ac_header_preproc=no
24869
rm -f conftest.err conftest.$ac_ext
24870
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24871
echo "${ECHO_T}$ac_header_preproc" >&6; }
24873
# So? What about this header?
24874
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24876
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24877
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24878
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24879
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24880
ac_header_preproc=yes
24883
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24884
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24885
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24886
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24887
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24888
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24889
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24890
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24891
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24892
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24893
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24894
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24898
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24899
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24900
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24901
echo $ECHO_N "(cached) $ECHO_C" >&6
24903
eval "$as_ac_Header=\$ac_header_preproc"
24905
ac_res=`eval echo '${'$as_ac_Header'}'`
24906
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24907
echo "${ECHO_T}$ac_res" >&6; }
24910
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24911
cat >>confdefs.h <<_ACEOF
24912
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24920
# CoreAudio framework
24921
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24922
{ echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
24923
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
24924
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24925
echo $ECHO_N "(cached) $ECHO_C" >&6
24927
{ echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
24928
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
24930
# Is the header compilable?
24931
{ echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
24932
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
24933
cat >conftest.$ac_ext <<_ACEOF
24936
cat confdefs.h >>conftest.$ac_ext
24937
cat >>conftest.$ac_ext <<_ACEOF
24938
/* end confdefs.h. */
24939
$ac_includes_default
24940
#include <CoreAudio/CoreAudio.h>
24942
rm -f conftest.$ac_objext
24943
if { (ac_try="$ac_compile"
24944
case "(($ac_try" in
24945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946
*) ac_try_echo=$ac_try;;
24948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24949
(eval "$ac_compile") 2>conftest.er1
24951
grep -v '^ *+' conftest.er1 >conftest.err
24953
cat conftest.err >&5
24954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955
(exit $ac_status); } && {
24956
test -z "$ac_c_werror_flag" ||
24957
test ! -s conftest.err
24958
} && test -s conftest.$ac_objext; then
24959
ac_header_compiler=yes
24961
echo "$as_me: failed program was:" >&5
24962
sed 's/^/| /' conftest.$ac_ext >&5
24964
ac_header_compiler=no
24967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24968
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24969
echo "${ECHO_T}$ac_header_compiler" >&6; }
24971
# Is the header present?
24972
{ echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
24973
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
24974
cat >conftest.$ac_ext <<_ACEOF
24977
cat confdefs.h >>conftest.$ac_ext
24978
cat >>conftest.$ac_ext <<_ACEOF
24979
/* end confdefs.h. */
24980
#include <CoreAudio/CoreAudio.h>
24982
if { (ac_try="$ac_cpp conftest.$ac_ext"
24983
case "(($ac_try" in
24984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985
*) ac_try_echo=$ac_try;;
24987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24990
grep -v '^ *+' conftest.er1 >conftest.err
24992
cat conftest.err >&5
24993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994
(exit $ac_status); } >/dev/null && {
24995
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24996
test ! -s conftest.err
24998
ac_header_preproc=yes
25000
echo "$as_me: failed program was:" >&5
25001
sed 's/^/| /' conftest.$ac_ext >&5
25003
ac_header_preproc=no
25006
rm -f conftest.err conftest.$ac_ext
25007
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25008
echo "${ECHO_T}$ac_header_preproc" >&6; }
25010
# So? What about this header?
25011
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25013
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25014
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25015
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
25016
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
25017
ac_header_preproc=yes
25020
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
25021
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
25022
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
25023
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
25024
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
25025
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
25026
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
25027
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
25028
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
25029
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
25030
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
25031
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
25035
{ echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25036
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
25037
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25038
echo $ECHO_N "(cached) $ECHO_C" >&6
25040
ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
25042
{ echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
25043
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
25046
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
25049
cat >>confdefs.h <<\_ACEOF
25050
#define HAVE_COREAUDIO 1
25053
FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio"
25060
{ echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
25061
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6; }
25062
kde_libs_safe="$LIBS"
25063
LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
25064
cat >conftest.$ac_ext <<_ACEOF
25067
cat confdefs.h >>conftest.$ac_ext
25068
cat >>conftest.$ac_ext <<_ACEOF
25069
/* end confdefs.h. */
25071
#include <sys/types.h>
25072
#include <netinet/in.h>
25073
#include <arpa/nameser.h>
25074
#include <resolv.h>
25086
rm -f conftest.$ac_objext conftest$ac_exeext
25087
if { (ac_try="$ac_link"
25088
case "(($ac_try" in
25089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090
*) ac_try_echo=$ac_try;;
25092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093
(eval "$ac_link") 2>conftest.er1
25095
grep -v '^ *+' conftest.er1 >conftest.err
25097
cat conftest.err >&5
25098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099
(exit $ac_status); } && {
25100
test -z "$ac_c_werror_flag" ||
25101
test ! -s conftest.err
25102
} && test -s conftest$ac_exeext &&
25103
$as_test_x conftest$ac_exeext; then
25105
LIBRESOLV="-lresolv"
25106
{ echo "$as_me:$LINENO: result: yes" >&5
25107
echo "${ECHO_T}yes" >&6; }
25109
cat >>confdefs.h <<\_ACEOF
25110
#define HAVE_RES_INIT 1
25115
echo "$as_me: failed program was:" >&5
25116
sed 's/^/| /' conftest.$ac_ext >&5
25118
{ echo "$as_me:$LINENO: result: no" >&5
25119
echo "${ECHO_T}no" >&6; }
25123
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25124
conftest$ac_exeext conftest.$ac_ext
25125
LIBS=$kde_libs_safe
25129
{ echo "$as_me:$LINENO: checking for res_init" >&5
25130
echo $ECHO_N "checking for res_init... $ECHO_C" >&6; }
25131
if test "${kde_cv_func_res_init+set}" = set; then
25132
echo $ECHO_N "(cached) $ECHO_C" >&6
25137
ac_cpp='$CXXCPP $CPPFLAGS'
25138
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25139
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25140
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25142
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25145
save_CXXFLAGS="$CXXFLAGS"
25146
kde_safe_LIBS="$LIBS"
25147
LIBS="$LIBS $X_EXTRA_LIBS"
25148
if test "$GXX" = "yes"; then
25149
CXXFLAGS="$CXXFLAGS -pedantic-errors"
25151
cat >conftest.$ac_ext <<_ACEOF
25154
cat confdefs.h >>conftest.$ac_ext
25155
cat >>conftest.$ac_ext <<_ACEOF
25156
/* end confdefs.h. */
25159
#include <sys/types.h>
25160
#include <netinet/in.h>
25161
#include <arpa/nameser.h>
25162
#include <resolv.h>
25175
rm -f conftest.$ac_objext
25176
if { (ac_try="$ac_compile"
25177
case "(($ac_try" in
25178
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179
*) ac_try_echo=$ac_try;;
25181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182
(eval "$ac_compile") 2>conftest.er1
25184
grep -v '^ *+' conftest.er1 >conftest.err
25186
cat conftest.err >&5
25187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188
(exit $ac_status); } && {
25189
test -z "$ac_cxx_werror_flag" ||
25190
test ! -s conftest.err
25191
} && test -s conftest.$ac_objext; then
25192
kde_cv_func_res_init=yes
25194
echo "$as_me: failed program was:" >&5
25195
sed 's/^/| /' conftest.$ac_ext >&5
25197
kde_cv_func_res_init=no
25200
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201
CXXFLAGS="$save_CXXFLAGS"
25202
LIBS="$kde_safe_LIBS"
25204
ac_cpp='$CPP $CPPFLAGS'
25205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25213
{ echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
25214
echo "${ECHO_T}$kde_cv_func_res_init" >&6; }
25216
{ echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
25217
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6; }
25218
if test "${kde_cv_proto_res_init+set}" = set; then
25219
echo $ECHO_N "(cached) $ECHO_C" >&6
25222
if test "x$kde_cv_func_res_init" = xyes; then
25223
kde_cv_proto_res_init=no
25226
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
25227
kde_cv_proto_res_init="yes - in libkdefakes"
25230
kde_cv_proto_res_init=unknown
25235
if test "x$kde_cv_proto_res_init" = xunknown; then
25239
ac_cpp='$CXXCPP $CPPFLAGS'
25240
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25241
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25242
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25244
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25247
kde_safe_libs=$LIBS
25248
LIBS="$LIBS $X_EXTRA_LIBS"
25249
cat >conftest.$ac_ext <<_ACEOF
25252
cat confdefs.h >>conftest.$ac_ext
25253
cat >>conftest.$ac_ext <<_ACEOF
25254
/* end confdefs.h. */
25257
#include <sys/types.h>
25258
#include <netinet/in.h>
25259
#include <arpa/nameser.h>
25260
#include <resolv.h>
25263
extern "C" int res_init(void);
25275
rm -f conftest.$ac_objext conftest$ac_exeext
25276
if { (ac_try="$ac_link"
25277
case "(($ac_try" in
25278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279
*) ac_try_echo=$ac_try;;
25281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282
(eval "$ac_link") 2>conftest.er1
25284
grep -v '^ *+' conftest.er1 >conftest.err
25286
cat conftest.err >&5
25287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288
(exit $ac_status); } && {
25289
test -z "$ac_cxx_werror_flag" ||
25290
test ! -s conftest.err
25291
} && test -s conftest$ac_exeext &&
25292
$as_test_x conftest$ac_exeext; then
25293
kde_cv_func_res_init=yes
25294
kde_cv_proto_res_init=yes
25296
echo "$as_me: failed program was:" >&5
25297
sed 's/^/| /' conftest.$ac_ext >&5
25299
kde_cv_proto_res_init="res_init unavailable"
25303
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25304
conftest$ac_exeext conftest.$ac_ext
25305
LIBS=$kde_safe_libs
25307
ac_cpp='$CPP $CPPFLAGS'
25308
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25309
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25310
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25316
{ echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
25317
echo "${ECHO_T}$kde_cv_proto_res_init" >&6; }
25319
if test "x$kde_cv_func_res_init" = xyes; then
25321
cat >>confdefs.h <<\_ACEOF
25322
#define HAVE_RES_INIT 1
25327
if test "x$kde_cv_proto_res_init" = xno; then
25329
cat >>confdefs.h <<\_ACEOF
25330
#define HAVE_RES_INIT_PROTO 1
25341
LIBSOCKET="$X_EXTRA_LIBS"
25344
{ echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
25345
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6; }
25346
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
25347
echo $ECHO_N "(cached) $ECHO_C" >&6
25349
ac_check_lib_save_LIBS=$LIBS
25351
cat >conftest.$ac_ext <<_ACEOF
25354
cat confdefs.h >>conftest.$ac_ext
25355
cat >>conftest.$ac_ext <<_ACEOF
25356
/* end confdefs.h. */
25358
/* Override any GCC internal prototype to avoid an error.
25359
Use char because int might match the return type of a GCC
25360
builtin and then its argument prototype would still apply. */
25373
rm -f conftest.$ac_objext conftest$ac_exeext
25374
if { (ac_try="$ac_link"
25375
case "(($ac_try" in
25376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377
*) ac_try_echo=$ac_try;;
25379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380
(eval "$ac_link") 2>conftest.er1
25382
grep -v '^ *+' conftest.er1 >conftest.err
25384
cat conftest.err >&5
25385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386
(exit $ac_status); } && {
25387
test -z "$ac_c_werror_flag" ||
25388
test ! -s conftest.err
25389
} && test -s conftest$ac_exeext &&
25390
$as_test_x conftest$ac_exeext; then
25391
ac_cv_lib_ucb_killpg=yes
25393
echo "$as_me: failed program was:" >&5
25394
sed 's/^/| /' conftest.$ac_ext >&5
25396
ac_cv_lib_ucb_killpg=no
25399
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25400
conftest$ac_exeext conftest.$ac_ext
25401
LIBS=$ac_check_lib_save_LIBS
25403
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
25404
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6; }
25405
if test $ac_cv_lib_ucb_killpg = yes; then
25410
case $host in *-*-lynxos* )
25411
{ echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
25412
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6; }
25413
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
25414
{ echo "$as_me:$LINENO: result: disabled" >&5
25415
echo "${ECHO_T}disabled" >&6; }
25416
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25417
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
25418
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25419
echo $ECHO_N "(cached) $ECHO_C" >&6
25421
ac_check_lib_save_LIBS=$LIBS
25423
cat >conftest.$ac_ext <<_ACEOF
25426
cat confdefs.h >>conftest.$ac_ext
25427
cat >>conftest.$ac_ext <<_ACEOF
25428
/* end confdefs.h. */
25430
/* Override any GCC internal prototype to avoid an error.
25431
Use char because int might match the return type of a GCC
25432
builtin and then its argument prototype would still apply. */
25436
char gethostbyname ();
25440
return gethostbyname ();
25445
rm -f conftest.$ac_objext conftest$ac_exeext
25446
if { (ac_try="$ac_link"
25447
case "(($ac_try" in
25448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449
*) ac_try_echo=$ac_try;;
25451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452
(eval "$ac_link") 2>conftest.er1
25454
grep -v '^ *+' conftest.er1 >conftest.err
25456
cat conftest.err >&5
25457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458
(exit $ac_status); } && {
25459
test -z "$ac_c_werror_flag" ||
25460
test ! -s conftest.err
25461
} && test -s conftest$ac_exeext &&
25462
$as_test_x conftest$ac_exeext; then
25463
ac_cv_lib_bsd_gethostbyname=yes
25465
echo "$as_me: failed program was:" >&5
25466
sed 's/^/| /' conftest.$ac_ext >&5
25468
ac_cv_lib_bsd_gethostbyname=no
25471
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25472
conftest$ac_exeext conftest.$ac_ext
25473
LIBS=$ac_check_lib_save_LIBS
25475
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25476
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
25477
if test $ac_cv_lib_bsd_gethostbyname = yes; then
25483
{ echo "$as_me:$LINENO: checking for int" >&5
25484
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
25485
if test "${ac_cv_type_int+set}" = set; then
25486
echo $ECHO_N "(cached) $ECHO_C" >&6
25488
cat >conftest.$ac_ext <<_ACEOF
25491
cat confdefs.h >>conftest.$ac_ext
25492
cat >>conftest.$ac_ext <<_ACEOF
25493
/* end confdefs.h. */
25494
$ac_includes_default
25495
typedef int ac__type_new_;
25499
if ((ac__type_new_ *) 0)
25501
if (sizeof (ac__type_new_))
25507
rm -f conftest.$ac_objext
25508
if { (ac_try="$ac_compile"
25509
case "(($ac_try" in
25510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511
*) ac_try_echo=$ac_try;;
25513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514
(eval "$ac_compile") 2>conftest.er1
25516
grep -v '^ *+' conftest.er1 >conftest.err
25518
cat conftest.err >&5
25519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520
(exit $ac_status); } && {
25521
test -z "$ac_c_werror_flag" ||
25522
test ! -s conftest.err
25523
} && test -s conftest.$ac_objext; then
25526
echo "$as_me: failed program was:" >&5
25527
sed 's/^/| /' conftest.$ac_ext >&5
25532
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25535
echo "${ECHO_T}$ac_cv_type_int" >&6; }
25537
# The cast to long int works around a bug in the HP C Compiler
25538
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25539
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25540
# This bug is HP SR number 8606223364.
25541
{ echo "$as_me:$LINENO: checking size of int" >&5
25542
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
25543
if test "${ac_cv_sizeof_int+set}" = set; then
25544
echo $ECHO_N "(cached) $ECHO_C" >&6
25546
if test "$cross_compiling" = yes; then
25547
# Depending upon the size, compute the lo and hi bounds.
25548
cat >conftest.$ac_ext <<_ACEOF
25551
cat confdefs.h >>conftest.$ac_ext
25552
cat >>conftest.$ac_ext <<_ACEOF
25553
/* end confdefs.h. */
25554
$ac_includes_default
25555
typedef int ac__type_sizeof_;
25559
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25566
rm -f conftest.$ac_objext
25567
if { (ac_try="$ac_compile"
25568
case "(($ac_try" in
25569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570
*) ac_try_echo=$ac_try;;
25572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573
(eval "$ac_compile") 2>conftest.er1
25575
grep -v '^ *+' conftest.er1 >conftest.err
25577
cat conftest.err >&5
25578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579
(exit $ac_status); } && {
25580
test -z "$ac_c_werror_flag" ||
25581
test ! -s conftest.err
25582
} && test -s conftest.$ac_objext; then
25585
cat >conftest.$ac_ext <<_ACEOF
25588
cat confdefs.h >>conftest.$ac_ext
25589
cat >>conftest.$ac_ext <<_ACEOF
25590
/* end confdefs.h. */
25591
$ac_includes_default
25592
typedef int ac__type_sizeof_;
25596
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25603
rm -f conftest.$ac_objext
25604
if { (ac_try="$ac_compile"
25605
case "(($ac_try" in
25606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607
*) ac_try_echo=$ac_try;;
25609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610
(eval "$ac_compile") 2>conftest.er1
25612
grep -v '^ *+' conftest.er1 >conftest.err
25614
cat conftest.err >&5
25615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616
(exit $ac_status); } && {
25617
test -z "$ac_c_werror_flag" ||
25618
test ! -s conftest.err
25619
} && test -s conftest.$ac_objext; then
25620
ac_hi=$ac_mid; break
25622
echo "$as_me: failed program was:" >&5
25623
sed 's/^/| /' conftest.$ac_ext >&5
25625
ac_lo=`expr $ac_mid + 1`
25626
if test $ac_lo -le $ac_mid; then
25630
ac_mid=`expr 2 '*' $ac_mid + 1`
25633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25636
echo "$as_me: failed program was:" >&5
25637
sed 's/^/| /' conftest.$ac_ext >&5
25639
cat >conftest.$ac_ext <<_ACEOF
25642
cat confdefs.h >>conftest.$ac_ext
25643
cat >>conftest.$ac_ext <<_ACEOF
25644
/* end confdefs.h. */
25645
$ac_includes_default
25646
typedef int ac__type_sizeof_;
25650
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25657
rm -f conftest.$ac_objext
25658
if { (ac_try="$ac_compile"
25659
case "(($ac_try" in
25660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661
*) ac_try_echo=$ac_try;;
25663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664
(eval "$ac_compile") 2>conftest.er1
25666
grep -v '^ *+' conftest.er1 >conftest.err
25668
cat conftest.err >&5
25669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670
(exit $ac_status); } && {
25671
test -z "$ac_c_werror_flag" ||
25672
test ! -s conftest.err
25673
} && test -s conftest.$ac_objext; then
25676
cat >conftest.$ac_ext <<_ACEOF
25679
cat confdefs.h >>conftest.$ac_ext
25680
cat >>conftest.$ac_ext <<_ACEOF
25681
/* end confdefs.h. */
25682
$ac_includes_default
25683
typedef int ac__type_sizeof_;
25687
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25694
rm -f conftest.$ac_objext
25695
if { (ac_try="$ac_compile"
25696
case "(($ac_try" in
25697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698
*) ac_try_echo=$ac_try;;
25700
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701
(eval "$ac_compile") 2>conftest.er1
25703
grep -v '^ *+' conftest.er1 >conftest.err
25705
cat conftest.err >&5
25706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707
(exit $ac_status); } && {
25708
test -z "$ac_c_werror_flag" ||
25709
test ! -s conftest.err
25710
} && test -s conftest.$ac_objext; then
25711
ac_lo=$ac_mid; break
25713
echo "$as_me: failed program was:" >&5
25714
sed 's/^/| /' conftest.$ac_ext >&5
25716
ac_hi=`expr '(' $ac_mid ')' - 1`
25717
if test $ac_mid -le $ac_hi; then
25721
ac_mid=`expr 2 '*' $ac_mid`
25724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727
echo "$as_me: failed program was:" >&5
25728
sed 's/^/| /' conftest.$ac_ext >&5
25733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737
# Binary search between lo and hi bounds.
25738
while test "x$ac_lo" != "x$ac_hi"; do
25739
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25740
cat >conftest.$ac_ext <<_ACEOF
25743
cat confdefs.h >>conftest.$ac_ext
25744
cat >>conftest.$ac_ext <<_ACEOF
25745
/* end confdefs.h. */
25746
$ac_includes_default
25747
typedef int ac__type_sizeof_;
25751
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25758
rm -f conftest.$ac_objext
25759
if { (ac_try="$ac_compile"
25760
case "(($ac_try" in
25761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762
*) ac_try_echo=$ac_try;;
25764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25765
(eval "$ac_compile") 2>conftest.er1
25767
grep -v '^ *+' conftest.er1 >conftest.err
25769
cat conftest.err >&5
25770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771
(exit $ac_status); } && {
25772
test -z "$ac_c_werror_flag" ||
25773
test ! -s conftest.err
25774
} && test -s conftest.$ac_objext; then
25777
echo "$as_me: failed program was:" >&5
25778
sed 's/^/| /' conftest.$ac_ext >&5
25780
ac_lo=`expr '(' $ac_mid ')' + 1`
25783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25786
?*) ac_cv_sizeof_int=$ac_lo;;
25787
'') if test "$ac_cv_type_int" = yes; then
25788
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25789
See \`config.log' for more details." >&5
25790
echo "$as_me: error: cannot compute sizeof (int)
25791
See \`config.log' for more details." >&2;}
25792
{ (exit 77); exit 77; }; }
25798
cat >conftest.$ac_ext <<_ACEOF
25801
cat confdefs.h >>conftest.$ac_ext
25802
cat >>conftest.$ac_ext <<_ACEOF
25803
/* end confdefs.h. */
25804
$ac_includes_default
25805
typedef int ac__type_sizeof_;
25806
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25807
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25809
#include <stdlib.h>
25814
FILE *f = fopen ("conftest.val", "w");
25817
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25819
long int i = longval ();
25820
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25822
fprintf (f, "%ld\n", i);
25826
unsigned long int i = ulongval ();
25827
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25829
fprintf (f, "%lu\n", i);
25831
return ferror (f) || fclose (f) != 0;
25837
rm -f conftest$ac_exeext
25838
if { (ac_try="$ac_link"
25839
case "(($ac_try" in
25840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25841
*) ac_try_echo=$ac_try;;
25843
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844
(eval "$ac_link") 2>&5
25846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25848
{ (case "(($ac_try" in
25849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850
*) ac_try_echo=$ac_try;;
25852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25853
(eval "$ac_try") 2>&5
25855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856
(exit $ac_status); }; }; then
25857
ac_cv_sizeof_int=`cat conftest.val`
25859
echo "$as_me: program exited with status $ac_status" >&5
25860
echo "$as_me: failed program was:" >&5
25861
sed 's/^/| /' conftest.$ac_ext >&5
25863
( exit $ac_status )
25864
if test "$ac_cv_type_int" = yes; then
25865
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25866
See \`config.log' for more details." >&5
25867
echo "$as_me: error: cannot compute sizeof (int)
25868
See \`config.log' for more details." >&2;}
25869
{ (exit 77); exit 77; }; }
25874
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25878
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25879
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25883
cat >>confdefs.h <<_ACEOF
25884
#define SIZEOF_INT $ac_cv_sizeof_int
25887
{ echo "$as_me:$LINENO: checking for short" >&5
25888
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
25889
if test "${ac_cv_type_short+set}" = set; then
25890
echo $ECHO_N "(cached) $ECHO_C" >&6
25892
cat >conftest.$ac_ext <<_ACEOF
25895
cat confdefs.h >>conftest.$ac_ext
25896
cat >>conftest.$ac_ext <<_ACEOF
25897
/* end confdefs.h. */
25898
$ac_includes_default
25899
typedef short ac__type_new_;
25903
if ((ac__type_new_ *) 0)
25905
if (sizeof (ac__type_new_))
25911
rm -f conftest.$ac_objext
25912
if { (ac_try="$ac_compile"
25913
case "(($ac_try" in
25914
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25915
*) ac_try_echo=$ac_try;;
25917
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25918
(eval "$ac_compile") 2>conftest.er1
25920
grep -v '^ *+' conftest.er1 >conftest.err
25922
cat conftest.err >&5
25923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924
(exit $ac_status); } && {
25925
test -z "$ac_c_werror_flag" ||
25926
test ! -s conftest.err
25927
} && test -s conftest.$ac_objext; then
25928
ac_cv_type_short=yes
25930
echo "$as_me: failed program was:" >&5
25931
sed 's/^/| /' conftest.$ac_ext >&5
25933
ac_cv_type_short=no
25936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25938
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25939
echo "${ECHO_T}$ac_cv_type_short" >&6; }
25941
# The cast to long int works around a bug in the HP C Compiler
25942
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25943
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25944
# This bug is HP SR number 8606223364.
25945
{ echo "$as_me:$LINENO: checking size of short" >&5
25946
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
25947
if test "${ac_cv_sizeof_short+set}" = set; then
25948
echo $ECHO_N "(cached) $ECHO_C" >&6
25950
if test "$cross_compiling" = yes; then
25951
# Depending upon the size, compute the lo and hi bounds.
25952
cat >conftest.$ac_ext <<_ACEOF
25955
cat confdefs.h >>conftest.$ac_ext
25956
cat >>conftest.$ac_ext <<_ACEOF
25957
/* end confdefs.h. */
25958
$ac_includes_default
25959
typedef short ac__type_sizeof_;
25963
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25970
rm -f conftest.$ac_objext
25971
if { (ac_try="$ac_compile"
25972
case "(($ac_try" in
25973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974
*) ac_try_echo=$ac_try;;
25976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25977
(eval "$ac_compile") 2>conftest.er1
25979
grep -v '^ *+' conftest.er1 >conftest.err
25981
cat conftest.err >&5
25982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983
(exit $ac_status); } && {
25984
test -z "$ac_c_werror_flag" ||
25985
test ! -s conftest.err
25986
} && test -s conftest.$ac_objext; then
25989
cat >conftest.$ac_ext <<_ACEOF
25992
cat confdefs.h >>conftest.$ac_ext
25993
cat >>conftest.$ac_ext <<_ACEOF
25994
/* end confdefs.h. */
25995
$ac_includes_default
25996
typedef short ac__type_sizeof_;
26000
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26007
rm -f conftest.$ac_objext
26008
if { (ac_try="$ac_compile"
26009
case "(($ac_try" in
26010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011
*) ac_try_echo=$ac_try;;
26013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014
(eval "$ac_compile") 2>conftest.er1
26016
grep -v '^ *+' conftest.er1 >conftest.err
26018
cat conftest.err >&5
26019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020
(exit $ac_status); } && {
26021
test -z "$ac_c_werror_flag" ||
26022
test ! -s conftest.err
26023
} && test -s conftest.$ac_objext; then
26024
ac_hi=$ac_mid; break
26026
echo "$as_me: failed program was:" >&5
26027
sed 's/^/| /' conftest.$ac_ext >&5
26029
ac_lo=`expr $ac_mid + 1`
26030
if test $ac_lo -le $ac_mid; then
26034
ac_mid=`expr 2 '*' $ac_mid + 1`
26037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26040
echo "$as_me: failed program was:" >&5
26041
sed 's/^/| /' conftest.$ac_ext >&5
26043
cat >conftest.$ac_ext <<_ACEOF
26046
cat confdefs.h >>conftest.$ac_ext
26047
cat >>conftest.$ac_ext <<_ACEOF
26048
/* end confdefs.h. */
26049
$ac_includes_default
26050
typedef short ac__type_sizeof_;
26054
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26061
rm -f conftest.$ac_objext
26062
if { (ac_try="$ac_compile"
26063
case "(($ac_try" in
26064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065
*) ac_try_echo=$ac_try;;
26067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068
(eval "$ac_compile") 2>conftest.er1
26070
grep -v '^ *+' conftest.er1 >conftest.err
26072
cat conftest.err >&5
26073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074
(exit $ac_status); } && {
26075
test -z "$ac_c_werror_flag" ||
26076
test ! -s conftest.err
26077
} && test -s conftest.$ac_objext; then
26080
cat >conftest.$ac_ext <<_ACEOF
26083
cat confdefs.h >>conftest.$ac_ext
26084
cat >>conftest.$ac_ext <<_ACEOF
26085
/* end confdefs.h. */
26086
$ac_includes_default
26087
typedef short ac__type_sizeof_;
26091
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26098
rm -f conftest.$ac_objext
26099
if { (ac_try="$ac_compile"
26100
case "(($ac_try" in
26101
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102
*) ac_try_echo=$ac_try;;
26104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26105
(eval "$ac_compile") 2>conftest.er1
26107
grep -v '^ *+' conftest.er1 >conftest.err
26109
cat conftest.err >&5
26110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111
(exit $ac_status); } && {
26112
test -z "$ac_c_werror_flag" ||
26113
test ! -s conftest.err
26114
} && test -s conftest.$ac_objext; then
26115
ac_lo=$ac_mid; break
26117
echo "$as_me: failed program was:" >&5
26118
sed 's/^/| /' conftest.$ac_ext >&5
26120
ac_hi=`expr '(' $ac_mid ')' - 1`
26121
if test $ac_mid -le $ac_hi; then
26125
ac_mid=`expr 2 '*' $ac_mid`
26128
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26131
echo "$as_me: failed program was:" >&5
26132
sed 's/^/| /' conftest.$ac_ext >&5
26137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26141
# Binary search between lo and hi bounds.
26142
while test "x$ac_lo" != "x$ac_hi"; do
26143
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26144
cat >conftest.$ac_ext <<_ACEOF
26147
cat confdefs.h >>conftest.$ac_ext
26148
cat >>conftest.$ac_ext <<_ACEOF
26149
/* end confdefs.h. */
26150
$ac_includes_default
26151
typedef short ac__type_sizeof_;
26155
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26162
rm -f conftest.$ac_objext
26163
if { (ac_try="$ac_compile"
26164
case "(($ac_try" in
26165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166
*) ac_try_echo=$ac_try;;
26168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169
(eval "$ac_compile") 2>conftest.er1
26171
grep -v '^ *+' conftest.er1 >conftest.err
26173
cat conftest.err >&5
26174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175
(exit $ac_status); } && {
26176
test -z "$ac_c_werror_flag" ||
26177
test ! -s conftest.err
26178
} && test -s conftest.$ac_objext; then
26181
echo "$as_me: failed program was:" >&5
26182
sed 's/^/| /' conftest.$ac_ext >&5
26184
ac_lo=`expr '(' $ac_mid ')' + 1`
26187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26190
?*) ac_cv_sizeof_short=$ac_lo;;
26191
'') if test "$ac_cv_type_short" = yes; then
26192
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26193
See \`config.log' for more details." >&5
26194
echo "$as_me: error: cannot compute sizeof (short)
26195
See \`config.log' for more details." >&2;}
26196
{ (exit 77); exit 77; }; }
26198
ac_cv_sizeof_short=0
26202
cat >conftest.$ac_ext <<_ACEOF
26205
cat confdefs.h >>conftest.$ac_ext
26206
cat >>conftest.$ac_ext <<_ACEOF
26207
/* end confdefs.h. */
26208
$ac_includes_default
26209
typedef short ac__type_sizeof_;
26210
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26211
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26213
#include <stdlib.h>
26218
FILE *f = fopen ("conftest.val", "w");
26221
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26223
long int i = longval ();
26224
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26226
fprintf (f, "%ld\n", i);
26230
unsigned long int i = ulongval ();
26231
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26233
fprintf (f, "%lu\n", i);
26235
return ferror (f) || fclose (f) != 0;
26241
rm -f conftest$ac_exeext
26242
if { (ac_try="$ac_link"
26243
case "(($ac_try" in
26244
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245
*) ac_try_echo=$ac_try;;
26247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248
(eval "$ac_link") 2>&5
26250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26252
{ (case "(($ac_try" in
26253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254
*) ac_try_echo=$ac_try;;
26256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257
(eval "$ac_try") 2>&5
26259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260
(exit $ac_status); }; }; then
26261
ac_cv_sizeof_short=`cat conftest.val`
26263
echo "$as_me: program exited with status $ac_status" >&5
26264
echo "$as_me: failed program was:" >&5
26265
sed 's/^/| /' conftest.$ac_ext >&5
26267
( exit $ac_status )
26268
if test "$ac_cv_type_short" = yes; then
26269
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26270
See \`config.log' for more details." >&5
26271
echo "$as_me: error: cannot compute sizeof (short)
26272
See \`config.log' for more details." >&2;}
26273
{ (exit 77); exit 77; }; }
26275
ac_cv_sizeof_short=0
26278
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26282
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26283
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
26287
cat >>confdefs.h <<_ACEOF
26288
#define SIZEOF_SHORT $ac_cv_sizeof_short
26291
{ echo "$as_me:$LINENO: checking for long" >&5
26292
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
26293
if test "${ac_cv_type_long+set}" = set; then
26294
echo $ECHO_N "(cached) $ECHO_C" >&6
26296
cat >conftest.$ac_ext <<_ACEOF
26299
cat confdefs.h >>conftest.$ac_ext
26300
cat >>conftest.$ac_ext <<_ACEOF
26301
/* end confdefs.h. */
26302
$ac_includes_default
26303
typedef long ac__type_new_;
26307
if ((ac__type_new_ *) 0)
26309
if (sizeof (ac__type_new_))
26315
rm -f conftest.$ac_objext
26316
if { (ac_try="$ac_compile"
26317
case "(($ac_try" in
26318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319
*) ac_try_echo=$ac_try;;
26321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322
(eval "$ac_compile") 2>conftest.er1
26324
grep -v '^ *+' conftest.er1 >conftest.err
26326
cat conftest.err >&5
26327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328
(exit $ac_status); } && {
26329
test -z "$ac_c_werror_flag" ||
26330
test ! -s conftest.err
26331
} && test -s conftest.$ac_objext; then
26332
ac_cv_type_long=yes
26334
echo "$as_me: failed program was:" >&5
26335
sed 's/^/| /' conftest.$ac_ext >&5
26340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26343
echo "${ECHO_T}$ac_cv_type_long" >&6; }
26345
# The cast to long int works around a bug in the HP C Compiler
26346
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26347
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26348
# This bug is HP SR number 8606223364.
26349
{ echo "$as_me:$LINENO: checking size of long" >&5
26350
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
26351
if test "${ac_cv_sizeof_long+set}" = set; then
26352
echo $ECHO_N "(cached) $ECHO_C" >&6
26354
if test "$cross_compiling" = yes; then
26355
# Depending upon the size, compute the lo and hi bounds.
26356
cat >conftest.$ac_ext <<_ACEOF
26359
cat confdefs.h >>conftest.$ac_ext
26360
cat >>conftest.$ac_ext <<_ACEOF
26361
/* end confdefs.h. */
26362
$ac_includes_default
26363
typedef long ac__type_sizeof_;
26367
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26374
rm -f conftest.$ac_objext
26375
if { (ac_try="$ac_compile"
26376
case "(($ac_try" in
26377
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26378
*) ac_try_echo=$ac_try;;
26380
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26381
(eval "$ac_compile") 2>conftest.er1
26383
grep -v '^ *+' conftest.er1 >conftest.err
26385
cat conftest.err >&5
26386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387
(exit $ac_status); } && {
26388
test -z "$ac_c_werror_flag" ||
26389
test ! -s conftest.err
26390
} && test -s conftest.$ac_objext; then
26393
cat >conftest.$ac_ext <<_ACEOF
26396
cat confdefs.h >>conftest.$ac_ext
26397
cat >>conftest.$ac_ext <<_ACEOF
26398
/* end confdefs.h. */
26399
$ac_includes_default
26400
typedef long ac__type_sizeof_;
26404
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26411
rm -f conftest.$ac_objext
26412
if { (ac_try="$ac_compile"
26413
case "(($ac_try" in
26414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26415
*) ac_try_echo=$ac_try;;
26417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26418
(eval "$ac_compile") 2>conftest.er1
26420
grep -v '^ *+' conftest.er1 >conftest.err
26422
cat conftest.err >&5
26423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424
(exit $ac_status); } && {
26425
test -z "$ac_c_werror_flag" ||
26426
test ! -s conftest.err
26427
} && test -s conftest.$ac_objext; then
26428
ac_hi=$ac_mid; break
26430
echo "$as_me: failed program was:" >&5
26431
sed 's/^/| /' conftest.$ac_ext >&5
26433
ac_lo=`expr $ac_mid + 1`
26434
if test $ac_lo -le $ac_mid; then
26438
ac_mid=`expr 2 '*' $ac_mid + 1`
26441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26444
echo "$as_me: failed program was:" >&5
26445
sed 's/^/| /' conftest.$ac_ext >&5
26447
cat >conftest.$ac_ext <<_ACEOF
26450
cat confdefs.h >>conftest.$ac_ext
26451
cat >>conftest.$ac_ext <<_ACEOF
26452
/* end confdefs.h. */
26453
$ac_includes_default
26454
typedef long ac__type_sizeof_;
26458
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26465
rm -f conftest.$ac_objext
26466
if { (ac_try="$ac_compile"
26467
case "(($ac_try" in
26468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469
*) ac_try_echo=$ac_try;;
26471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472
(eval "$ac_compile") 2>conftest.er1
26474
grep -v '^ *+' conftest.er1 >conftest.err
26476
cat conftest.err >&5
26477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478
(exit $ac_status); } && {
26479
test -z "$ac_c_werror_flag" ||
26480
test ! -s conftest.err
26481
} && test -s conftest.$ac_objext; then
26484
cat >conftest.$ac_ext <<_ACEOF
26487
cat confdefs.h >>conftest.$ac_ext
26488
cat >>conftest.$ac_ext <<_ACEOF
26489
/* end confdefs.h. */
26490
$ac_includes_default
26491
typedef long ac__type_sizeof_;
26495
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26502
rm -f conftest.$ac_objext
26503
if { (ac_try="$ac_compile"
26504
case "(($ac_try" in
26505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26506
*) ac_try_echo=$ac_try;;
26508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26509
(eval "$ac_compile") 2>conftest.er1
26511
grep -v '^ *+' conftest.er1 >conftest.err
26513
cat conftest.err >&5
26514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515
(exit $ac_status); } && {
26516
test -z "$ac_c_werror_flag" ||
26517
test ! -s conftest.err
26518
} && test -s conftest.$ac_objext; then
26519
ac_lo=$ac_mid; break
26521
echo "$as_me: failed program was:" >&5
26522
sed 's/^/| /' conftest.$ac_ext >&5
26524
ac_hi=`expr '(' $ac_mid ')' - 1`
26525
if test $ac_mid -le $ac_hi; then
26529
ac_mid=`expr 2 '*' $ac_mid`
26532
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26535
echo "$as_me: failed program was:" >&5
26536
sed 's/^/| /' conftest.$ac_ext >&5
26541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26545
# Binary search between lo and hi bounds.
26546
while test "x$ac_lo" != "x$ac_hi"; do
26547
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26548
cat >conftest.$ac_ext <<_ACEOF
26551
cat confdefs.h >>conftest.$ac_ext
26552
cat >>conftest.$ac_ext <<_ACEOF
26553
/* end confdefs.h. */
26554
$ac_includes_default
26555
typedef long ac__type_sizeof_;
26559
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26566
rm -f conftest.$ac_objext
26567
if { (ac_try="$ac_compile"
26568
case "(($ac_try" in
26569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26570
*) ac_try_echo=$ac_try;;
26572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26573
(eval "$ac_compile") 2>conftest.er1
26575
grep -v '^ *+' conftest.er1 >conftest.err
26577
cat conftest.err >&5
26578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579
(exit $ac_status); } && {
26580
test -z "$ac_c_werror_flag" ||
26581
test ! -s conftest.err
26582
} && test -s conftest.$ac_objext; then
26585
echo "$as_me: failed program was:" >&5
26586
sed 's/^/| /' conftest.$ac_ext >&5
26588
ac_lo=`expr '(' $ac_mid ')' + 1`
26591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26594
?*) ac_cv_sizeof_long=$ac_lo;;
26595
'') if test "$ac_cv_type_long" = yes; then
26596
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26597
See \`config.log' for more details." >&5
26598
echo "$as_me: error: cannot compute sizeof (long)
26599
See \`config.log' for more details." >&2;}
26600
{ (exit 77); exit 77; }; }
26602
ac_cv_sizeof_long=0
26606
cat >conftest.$ac_ext <<_ACEOF
26609
cat confdefs.h >>conftest.$ac_ext
26610
cat >>conftest.$ac_ext <<_ACEOF
26611
/* end confdefs.h. */
26612
$ac_includes_default
26613
typedef long ac__type_sizeof_;
26614
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26615
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26617
#include <stdlib.h>
26622
FILE *f = fopen ("conftest.val", "w");
26625
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26627
long int i = longval ();
26628
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26630
fprintf (f, "%ld\n", i);
26634
unsigned long int i = ulongval ();
26635
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26637
fprintf (f, "%lu\n", i);
26639
return ferror (f) || fclose (f) != 0;
26645
rm -f conftest$ac_exeext
26646
if { (ac_try="$ac_link"
26647
case "(($ac_try" in
26648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649
*) ac_try_echo=$ac_try;;
26651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652
(eval "$ac_link") 2>&5
26654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26656
{ (case "(($ac_try" in
26657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658
*) ac_try_echo=$ac_try;;
26660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661
(eval "$ac_try") 2>&5
26663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664
(exit $ac_status); }; }; then
26665
ac_cv_sizeof_long=`cat conftest.val`
26667
echo "$as_me: program exited with status $ac_status" >&5
26668
echo "$as_me: failed program was:" >&5
26669
sed 's/^/| /' conftest.$ac_ext >&5
26671
( exit $ac_status )
26672
if test "$ac_cv_type_long" = yes; then
26673
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26674
See \`config.log' for more details." >&5
26675
echo "$as_me: error: cannot compute sizeof (long)
26676
See \`config.log' for more details." >&2;}
26677
{ (exit 77); exit 77; }; }
26679
ac_cv_sizeof_long=0
26682
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26686
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26687
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
26691
cat >>confdefs.h <<_ACEOF
26692
#define SIZEOF_LONG $ac_cv_sizeof_long
26695
{ echo "$as_me:$LINENO: checking for char *" >&5
26696
echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
26697
if test "${ac_cv_type_char_p+set}" = set; then
26698
echo $ECHO_N "(cached) $ECHO_C" >&6
26700
cat >conftest.$ac_ext <<_ACEOF
26703
cat confdefs.h >>conftest.$ac_ext
26704
cat >>conftest.$ac_ext <<_ACEOF
26705
/* end confdefs.h. */
26706
$ac_includes_default
26707
typedef char * ac__type_new_;
26711
if ((ac__type_new_ *) 0)
26713
if (sizeof (ac__type_new_))
26719
rm -f conftest.$ac_objext
26720
if { (ac_try="$ac_compile"
26721
case "(($ac_try" in
26722
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723
*) ac_try_echo=$ac_try;;
26725
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726
(eval "$ac_compile") 2>conftest.er1
26728
grep -v '^ *+' conftest.er1 >conftest.err
26730
cat conftest.err >&5
26731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732
(exit $ac_status); } && {
26733
test -z "$ac_c_werror_flag" ||
26734
test ! -s conftest.err
26735
} && test -s conftest.$ac_objext; then
26736
ac_cv_type_char_p=yes
26738
echo "$as_me: failed program was:" >&5
26739
sed 's/^/| /' conftest.$ac_ext >&5
26741
ac_cv_type_char_p=no
26744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26746
{ echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
26747
echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
26749
# The cast to long int works around a bug in the HP C Compiler
26750
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26751
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26752
# This bug is HP SR number 8606223364.
26753
{ echo "$as_me:$LINENO: checking size of char *" >&5
26754
echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
26755
if test "${ac_cv_sizeof_char_p+set}" = set; then
26756
echo $ECHO_N "(cached) $ECHO_C" >&6
26758
if test "$cross_compiling" = yes; then
26759
# Depending upon the size, compute the lo and hi bounds.
26760
cat >conftest.$ac_ext <<_ACEOF
26763
cat confdefs.h >>conftest.$ac_ext
26764
cat >>conftest.$ac_ext <<_ACEOF
26765
/* end confdefs.h. */
26766
$ac_includes_default
26767
typedef char * ac__type_sizeof_;
26771
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26778
rm -f conftest.$ac_objext
26779
if { (ac_try="$ac_compile"
26780
case "(($ac_try" in
26781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782
*) ac_try_echo=$ac_try;;
26784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26785
(eval "$ac_compile") 2>conftest.er1
26787
grep -v '^ *+' conftest.er1 >conftest.err
26789
cat conftest.err >&5
26790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791
(exit $ac_status); } && {
26792
test -z "$ac_c_werror_flag" ||
26793
test ! -s conftest.err
26794
} && test -s conftest.$ac_objext; then
26797
cat >conftest.$ac_ext <<_ACEOF
26800
cat confdefs.h >>conftest.$ac_ext
26801
cat >>conftest.$ac_ext <<_ACEOF
26802
/* end confdefs.h. */
26803
$ac_includes_default
26804
typedef char * ac__type_sizeof_;
26808
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26815
rm -f conftest.$ac_objext
26816
if { (ac_try="$ac_compile"
26817
case "(($ac_try" in
26818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819
*) ac_try_echo=$ac_try;;
26821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822
(eval "$ac_compile") 2>conftest.er1
26824
grep -v '^ *+' conftest.er1 >conftest.err
26826
cat conftest.err >&5
26827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828
(exit $ac_status); } && {
26829
test -z "$ac_c_werror_flag" ||
26830
test ! -s conftest.err
26831
} && test -s conftest.$ac_objext; then
26832
ac_hi=$ac_mid; break
26834
echo "$as_me: failed program was:" >&5
26835
sed 's/^/| /' conftest.$ac_ext >&5
26837
ac_lo=`expr $ac_mid + 1`
26838
if test $ac_lo -le $ac_mid; then
26842
ac_mid=`expr 2 '*' $ac_mid + 1`
26845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26848
echo "$as_me: failed program was:" >&5
26849
sed 's/^/| /' conftest.$ac_ext >&5
26851
cat >conftest.$ac_ext <<_ACEOF
26854
cat confdefs.h >>conftest.$ac_ext
26855
cat >>conftest.$ac_ext <<_ACEOF
26856
/* end confdefs.h. */
26857
$ac_includes_default
26858
typedef char * ac__type_sizeof_;
26862
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26869
rm -f conftest.$ac_objext
26870
if { (ac_try="$ac_compile"
26871
case "(($ac_try" in
26872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873
*) ac_try_echo=$ac_try;;
26875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876
(eval "$ac_compile") 2>conftest.er1
26878
grep -v '^ *+' conftest.er1 >conftest.err
26880
cat conftest.err >&5
26881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882
(exit $ac_status); } && {
26883
test -z "$ac_c_werror_flag" ||
26884
test ! -s conftest.err
26885
} && test -s conftest.$ac_objext; then
26888
cat >conftest.$ac_ext <<_ACEOF
26891
cat confdefs.h >>conftest.$ac_ext
26892
cat >>conftest.$ac_ext <<_ACEOF
26893
/* end confdefs.h. */
26894
$ac_includes_default
26895
typedef char * ac__type_sizeof_;
26899
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26906
rm -f conftest.$ac_objext
26907
if { (ac_try="$ac_compile"
26908
case "(($ac_try" in
26909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910
*) ac_try_echo=$ac_try;;
26912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26913
(eval "$ac_compile") 2>conftest.er1
26915
grep -v '^ *+' conftest.er1 >conftest.err
26917
cat conftest.err >&5
26918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919
(exit $ac_status); } && {
26920
test -z "$ac_c_werror_flag" ||
26921
test ! -s conftest.err
26922
} && test -s conftest.$ac_objext; then
26923
ac_lo=$ac_mid; break
26925
echo "$as_me: failed program was:" >&5
26926
sed 's/^/| /' conftest.$ac_ext >&5
26928
ac_hi=`expr '(' $ac_mid ')' - 1`
26929
if test $ac_mid -le $ac_hi; then
26933
ac_mid=`expr 2 '*' $ac_mid`
26936
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26939
echo "$as_me: failed program was:" >&5
26940
sed 's/^/| /' conftest.$ac_ext >&5
26945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26949
# Binary search between lo and hi bounds.
26950
while test "x$ac_lo" != "x$ac_hi"; do
26951
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26952
cat >conftest.$ac_ext <<_ACEOF
26955
cat confdefs.h >>conftest.$ac_ext
26956
cat >>conftest.$ac_ext <<_ACEOF
26957
/* end confdefs.h. */
26958
$ac_includes_default
26959
typedef char * ac__type_sizeof_;
26963
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26970
rm -f conftest.$ac_objext
26971
if { (ac_try="$ac_compile"
26972
case "(($ac_try" in
26973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26974
*) ac_try_echo=$ac_try;;
26976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26977
(eval "$ac_compile") 2>conftest.er1
26979
grep -v '^ *+' conftest.er1 >conftest.err
26981
cat conftest.err >&5
26982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983
(exit $ac_status); } && {
26984
test -z "$ac_c_werror_flag" ||
26985
test ! -s conftest.err
26986
} && test -s conftest.$ac_objext; then
26989
echo "$as_me: failed program was:" >&5
26990
sed 's/^/| /' conftest.$ac_ext >&5
26992
ac_lo=`expr '(' $ac_mid ')' + 1`
26995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26998
?*) ac_cv_sizeof_char_p=$ac_lo;;
26999
'') if test "$ac_cv_type_char_p" = yes; then
27000
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27001
See \`config.log' for more details." >&5
27002
echo "$as_me: error: cannot compute sizeof (char *)
27003
See \`config.log' for more details." >&2;}
27004
{ (exit 77); exit 77; }; }
27006
ac_cv_sizeof_char_p=0
27010
cat >conftest.$ac_ext <<_ACEOF
27013
cat confdefs.h >>conftest.$ac_ext
27014
cat >>conftest.$ac_ext <<_ACEOF
27015
/* end confdefs.h. */
27016
$ac_includes_default
27017
typedef char * ac__type_sizeof_;
27018
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27019
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27021
#include <stdlib.h>
27026
FILE *f = fopen ("conftest.val", "w");
27029
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27031
long int i = longval ();
27032
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27034
fprintf (f, "%ld\n", i);
27038
unsigned long int i = ulongval ();
27039
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27041
fprintf (f, "%lu\n", i);
27043
return ferror (f) || fclose (f) != 0;
27049
rm -f conftest$ac_exeext
27050
if { (ac_try="$ac_link"
27051
case "(($ac_try" in
27052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053
*) ac_try_echo=$ac_try;;
27055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056
(eval "$ac_link") 2>&5
27058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27060
{ (case "(($ac_try" in
27061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062
*) ac_try_echo=$ac_try;;
27064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065
(eval "$ac_try") 2>&5
27067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068
(exit $ac_status); }; }; then
27069
ac_cv_sizeof_char_p=`cat conftest.val`
27071
echo "$as_me: program exited with status $ac_status" >&5
27072
echo "$as_me: failed program was:" >&5
27073
sed 's/^/| /' conftest.$ac_ext >&5
27075
( exit $ac_status )
27076
if test "$ac_cv_type_char_p" = yes; then
27077
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27078
See \`config.log' for more details." >&5
27079
echo "$as_me: error: cannot compute sizeof (char *)
27080
See \`config.log' for more details." >&2;}
27081
{ (exit 77); exit 77; }; }
27083
ac_cv_sizeof_char_p=0
27086
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27090
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
27091
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
27095
cat >>confdefs.h <<_ACEOF
27096
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
27101
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27102
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
27103
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27104
echo $ECHO_N "(cached) $ECHO_C" >&6
27106
ac_check_lib_save_LIBS=$LIBS
27108
cat >conftest.$ac_ext <<_ACEOF
27111
cat confdefs.h >>conftest.$ac_ext
27112
cat >>conftest.$ac_ext <<_ACEOF
27113
/* end confdefs.h. */
27115
/* Override any GCC internal prototype to avoid an error.
27116
Use char because int might match the return type of a GCC
27117
builtin and then its argument prototype would still apply. */
27130
rm -f conftest.$ac_objext conftest$ac_exeext
27131
if { (ac_try="$ac_link"
27132
case "(($ac_try" in
27133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134
*) ac_try_echo=$ac_try;;
27136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137
(eval "$ac_link") 2>conftest.er1
27139
grep -v '^ *+' conftest.er1 >conftest.err
27141
cat conftest.err >&5
27142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143
(exit $ac_status); } && {
27144
test -z "$ac_c_werror_flag" ||
27145
test ! -s conftest.err
27146
} && test -s conftest$ac_exeext &&
27147
$as_test_x conftest$ac_exeext; then
27148
ac_cv_lib_dl_dlopen=yes
27150
echo "$as_me: failed program was:" >&5
27151
sed 's/^/| /' conftest.$ac_ext >&5
27153
ac_cv_lib_dl_dlopen=no
27156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27157
conftest$ac_exeext conftest.$ac_ext
27158
LIBS=$ac_check_lib_save_LIBS
27160
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27161
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
27162
if test $ac_cv_lib_dl_dlopen = yes; then
27165
ac_cv_have_dlfcn=yes
27170
{ echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
27171
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6; }
27172
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
27173
echo $ECHO_N "(cached) $ECHO_C" >&6
27175
ac_check_lib_save_LIBS=$LIBS
27177
cat >conftest.$ac_ext <<_ACEOF
27180
cat confdefs.h >>conftest.$ac_ext
27181
cat >>conftest.$ac_ext <<_ACEOF
27182
/* end confdefs.h. */
27184
/* Override any GCC internal prototype to avoid an error.
27185
Use char because int might match the return type of a GCC
27186
builtin and then its argument prototype would still apply. */
27190
char shl_unload ();
27194
return shl_unload ();
27199
rm -f conftest.$ac_objext conftest$ac_exeext
27200
if { (ac_try="$ac_link"
27201
case "(($ac_try" in
27202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203
*) ac_try_echo=$ac_try;;
27205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206
(eval "$ac_link") 2>conftest.er1
27208
grep -v '^ *+' conftest.er1 >conftest.err
27210
cat conftest.err >&5
27211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212
(exit $ac_status); } && {
27213
test -z "$ac_c_werror_flag" ||
27214
test ! -s conftest.err
27215
} && test -s conftest$ac_exeext &&
27216
$as_test_x conftest$ac_exeext; then
27217
ac_cv_lib_dld_shl_unload=yes
27219
echo "$as_me: failed program was:" >&5
27220
sed 's/^/| /' conftest.$ac_ext >&5
27222
ac_cv_lib_dld_shl_unload=no
27225
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27226
conftest$ac_exeext conftest.$ac_ext
27227
LIBS=$ac_check_lib_save_LIBS
27229
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
27230
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6; }
27231
if test $ac_cv_lib_dld_shl_unload = yes; then
27234
ac_cv_have_shload=yes
27244
{ echo "$as_me:$LINENO: checking for size_t" >&5
27245
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27246
if test "${ac_cv_type_size_t+set}" = set; then
27247
echo $ECHO_N "(cached) $ECHO_C" >&6
27249
cat >conftest.$ac_ext <<_ACEOF
27252
cat confdefs.h >>conftest.$ac_ext
27253
cat >>conftest.$ac_ext <<_ACEOF
27254
/* end confdefs.h. */
27255
$ac_includes_default
27256
typedef size_t ac__type_new_;
27260
if ((ac__type_new_ *) 0)
27262
if (sizeof (ac__type_new_))
27268
rm -f conftest.$ac_objext
27269
if { (ac_try="$ac_compile"
27270
case "(($ac_try" in
27271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27272
*) ac_try_echo=$ac_try;;
27274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27275
(eval "$ac_compile") 2>conftest.er1
27277
grep -v '^ *+' conftest.er1 >conftest.err
27279
cat conftest.err >&5
27280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281
(exit $ac_status); } && {
27282
test -z "$ac_c_werror_flag" ||
27283
test ! -s conftest.err
27284
} && test -s conftest.$ac_objext; then
27285
ac_cv_type_size_t=yes
27287
echo "$as_me: failed program was:" >&5
27288
sed 's/^/| /' conftest.$ac_ext >&5
27290
ac_cv_type_size_t=no
27293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27295
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27296
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27298
# The cast to long int works around a bug in the HP C Compiler
27299
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27300
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27301
# This bug is HP SR number 8606223364.
27302
{ echo "$as_me:$LINENO: checking size of size_t" >&5
27303
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27304
if test "${ac_cv_sizeof_size_t+set}" = set; then
27305
echo $ECHO_N "(cached) $ECHO_C" >&6
27307
if test "$cross_compiling" = yes; then
27308
# Depending upon the size, compute the lo and hi bounds.
27309
cat >conftest.$ac_ext <<_ACEOF
27312
cat confdefs.h >>conftest.$ac_ext
27313
cat >>conftest.$ac_ext <<_ACEOF
27314
/* end confdefs.h. */
27315
$ac_includes_default
27316
typedef size_t ac__type_sizeof_;
27320
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27327
rm -f conftest.$ac_objext
27328
if { (ac_try="$ac_compile"
27329
case "(($ac_try" in
27330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331
*) ac_try_echo=$ac_try;;
27333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334
(eval "$ac_compile") 2>conftest.er1
27336
grep -v '^ *+' conftest.er1 >conftest.err
27338
cat conftest.err >&5
27339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340
(exit $ac_status); } && {
27341
test -z "$ac_c_werror_flag" ||
27342
test ! -s conftest.err
27343
} && test -s conftest.$ac_objext; then
27346
cat >conftest.$ac_ext <<_ACEOF
27349
cat confdefs.h >>conftest.$ac_ext
27350
cat >>conftest.$ac_ext <<_ACEOF
27351
/* end confdefs.h. */
27352
$ac_includes_default
27353
typedef size_t ac__type_sizeof_;
27357
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27364
rm -f conftest.$ac_objext
27365
if { (ac_try="$ac_compile"
27366
case "(($ac_try" in
27367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368
*) ac_try_echo=$ac_try;;
27370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371
(eval "$ac_compile") 2>conftest.er1
27373
grep -v '^ *+' conftest.er1 >conftest.err
27375
cat conftest.err >&5
27376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377
(exit $ac_status); } && {
27378
test -z "$ac_c_werror_flag" ||
27379
test ! -s conftest.err
27380
} && test -s conftest.$ac_objext; then
27381
ac_hi=$ac_mid; break
27383
echo "$as_me: failed program was:" >&5
27384
sed 's/^/| /' conftest.$ac_ext >&5
27386
ac_lo=`expr $ac_mid + 1`
27387
if test $ac_lo -le $ac_mid; then
27391
ac_mid=`expr 2 '*' $ac_mid + 1`
27394
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27397
echo "$as_me: failed program was:" >&5
27398
sed 's/^/| /' conftest.$ac_ext >&5
27400
cat >conftest.$ac_ext <<_ACEOF
27403
cat confdefs.h >>conftest.$ac_ext
27404
cat >>conftest.$ac_ext <<_ACEOF
27405
/* end confdefs.h. */
27406
$ac_includes_default
27407
typedef size_t ac__type_sizeof_;
27411
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27418
rm -f conftest.$ac_objext
27419
if { (ac_try="$ac_compile"
27420
case "(($ac_try" in
27421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422
*) ac_try_echo=$ac_try;;
27424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425
(eval "$ac_compile") 2>conftest.er1
27427
grep -v '^ *+' conftest.er1 >conftest.err
27429
cat conftest.err >&5
27430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431
(exit $ac_status); } && {
27432
test -z "$ac_c_werror_flag" ||
27433
test ! -s conftest.err
27434
} && test -s conftest.$ac_objext; then
27437
cat >conftest.$ac_ext <<_ACEOF
27440
cat confdefs.h >>conftest.$ac_ext
27441
cat >>conftest.$ac_ext <<_ACEOF
27442
/* end confdefs.h. */
27443
$ac_includes_default
27444
typedef size_t ac__type_sizeof_;
27448
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27455
rm -f conftest.$ac_objext
27456
if { (ac_try="$ac_compile"
27457
case "(($ac_try" in
27458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27459
*) ac_try_echo=$ac_try;;
27461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462
(eval "$ac_compile") 2>conftest.er1
27464
grep -v '^ *+' conftest.er1 >conftest.err
27466
cat conftest.err >&5
27467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468
(exit $ac_status); } && {
27469
test -z "$ac_c_werror_flag" ||
27470
test ! -s conftest.err
27471
} && test -s conftest.$ac_objext; then
27472
ac_lo=$ac_mid; break
27474
echo "$as_me: failed program was:" >&5
27475
sed 's/^/| /' conftest.$ac_ext >&5
27477
ac_hi=`expr '(' $ac_mid ')' - 1`
27478
if test $ac_mid -le $ac_hi; then
27482
ac_mid=`expr 2 '*' $ac_mid`
27485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27488
echo "$as_me: failed program was:" >&5
27489
sed 's/^/| /' conftest.$ac_ext >&5
27494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27498
# Binary search between lo and hi bounds.
27499
while test "x$ac_lo" != "x$ac_hi"; do
27500
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27501
cat >conftest.$ac_ext <<_ACEOF
27504
cat confdefs.h >>conftest.$ac_ext
27505
cat >>conftest.$ac_ext <<_ACEOF
27506
/* end confdefs.h. */
27507
$ac_includes_default
27508
typedef size_t ac__type_sizeof_;
27512
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27519
rm -f conftest.$ac_objext
27520
if { (ac_try="$ac_compile"
27521
case "(($ac_try" in
27522
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523
*) ac_try_echo=$ac_try;;
27525
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526
(eval "$ac_compile") 2>conftest.er1
27528
grep -v '^ *+' conftest.er1 >conftest.err
27530
cat conftest.err >&5
27531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532
(exit $ac_status); } && {
27533
test -z "$ac_c_werror_flag" ||
27534
test ! -s conftest.err
27535
} && test -s conftest.$ac_objext; then
27538
echo "$as_me: failed program was:" >&5
27539
sed 's/^/| /' conftest.$ac_ext >&5
27541
ac_lo=`expr '(' $ac_mid ')' + 1`
27544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27547
?*) ac_cv_sizeof_size_t=$ac_lo;;
27548
'') if test "$ac_cv_type_size_t" = yes; then
27549
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27550
See \`config.log' for more details." >&5
27551
echo "$as_me: error: cannot compute sizeof (size_t)
27552
See \`config.log' for more details." >&2;}
27553
{ (exit 77); exit 77; }; }
27555
ac_cv_sizeof_size_t=0
27559
cat >conftest.$ac_ext <<_ACEOF
27562
cat confdefs.h >>conftest.$ac_ext
27563
cat >>conftest.$ac_ext <<_ACEOF
27564
/* end confdefs.h. */
27565
$ac_includes_default
27566
typedef size_t ac__type_sizeof_;
27567
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27568
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27570
#include <stdlib.h>
27575
FILE *f = fopen ("conftest.val", "w");
27578
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27580
long int i = longval ();
27581
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27583
fprintf (f, "%ld\n", i);
27587
unsigned long int i = ulongval ();
27588
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27590
fprintf (f, "%lu\n", i);
27592
return ferror (f) || fclose (f) != 0;
27598
rm -f conftest$ac_exeext
27599
if { (ac_try="$ac_link"
27600
case "(($ac_try" in
27601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27602
*) ac_try_echo=$ac_try;;
27604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27605
(eval "$ac_link") 2>&5
27607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27609
{ (case "(($ac_try" in
27610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27611
*) ac_try_echo=$ac_try;;
27613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27614
(eval "$ac_try") 2>&5
27616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617
(exit $ac_status); }; }; then
27618
ac_cv_sizeof_size_t=`cat conftest.val`
27620
echo "$as_me: program exited with status $ac_status" >&5
27621
echo "$as_me: failed program was:" >&5
27622
sed 's/^/| /' conftest.$ac_ext >&5
27624
( exit $ac_status )
27625
if test "$ac_cv_type_size_t" = yes; then
27626
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27627
See \`config.log' for more details." >&5
27628
echo "$as_me: error: cannot compute sizeof (size_t)
27629
See \`config.log' for more details." >&2;}
27630
{ (exit 77); exit 77; }; }
27632
ac_cv_sizeof_size_t=0
27635
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27639
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27640
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
27644
cat >>confdefs.h <<_ACEOF
27645
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27649
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
27650
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
27651
if test "${ac_cv_type_unsigned_long+set}" = set; then
27652
echo $ECHO_N "(cached) $ECHO_C" >&6
27654
cat >conftest.$ac_ext <<_ACEOF
27657
cat confdefs.h >>conftest.$ac_ext
27658
cat >>conftest.$ac_ext <<_ACEOF
27659
/* end confdefs.h. */
27660
$ac_includes_default
27661
typedef unsigned long ac__type_new_;
27665
if ((ac__type_new_ *) 0)
27667
if (sizeof (ac__type_new_))
27673
rm -f conftest.$ac_objext
27674
if { (ac_try="$ac_compile"
27675
case "(($ac_try" in
27676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677
*) ac_try_echo=$ac_try;;
27679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680
(eval "$ac_compile") 2>conftest.er1
27682
grep -v '^ *+' conftest.er1 >conftest.err
27684
cat conftest.err >&5
27685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686
(exit $ac_status); } && {
27687
test -z "$ac_c_werror_flag" ||
27688
test ! -s conftest.err
27689
} && test -s conftest.$ac_objext; then
27690
ac_cv_type_unsigned_long=yes
27692
echo "$as_me: failed program was:" >&5
27693
sed 's/^/| /' conftest.$ac_ext >&5
27695
ac_cv_type_unsigned_long=no
27698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27700
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
27701
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
27703
# The cast to long int works around a bug in the HP C Compiler
27704
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27705
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27706
# This bug is HP SR number 8606223364.
27707
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
27708
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
27709
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
27710
echo $ECHO_N "(cached) $ECHO_C" >&6
27712
if test "$cross_compiling" = yes; then
27713
# Depending upon the size, compute the lo and hi bounds.
27714
cat >conftest.$ac_ext <<_ACEOF
27717
cat confdefs.h >>conftest.$ac_ext
27718
cat >>conftest.$ac_ext <<_ACEOF
27719
/* end confdefs.h. */
27720
$ac_includes_default
27721
typedef unsigned long ac__type_sizeof_;
27725
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27732
rm -f conftest.$ac_objext
27733
if { (ac_try="$ac_compile"
27734
case "(($ac_try" in
27735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736
*) ac_try_echo=$ac_try;;
27738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739
(eval "$ac_compile") 2>conftest.er1
27741
grep -v '^ *+' conftest.er1 >conftest.err
27743
cat conftest.err >&5
27744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745
(exit $ac_status); } && {
27746
test -z "$ac_c_werror_flag" ||
27747
test ! -s conftest.err
27748
} && test -s conftest.$ac_objext; then
27751
cat >conftest.$ac_ext <<_ACEOF
27754
cat confdefs.h >>conftest.$ac_ext
27755
cat >>conftest.$ac_ext <<_ACEOF
27756
/* end confdefs.h. */
27757
$ac_includes_default
27758
typedef unsigned long ac__type_sizeof_;
27762
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27769
rm -f conftest.$ac_objext
27770
if { (ac_try="$ac_compile"
27771
case "(($ac_try" in
27772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773
*) ac_try_echo=$ac_try;;
27775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776
(eval "$ac_compile") 2>conftest.er1
27778
grep -v '^ *+' conftest.er1 >conftest.err
27780
cat conftest.err >&5
27781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782
(exit $ac_status); } && {
27783
test -z "$ac_c_werror_flag" ||
27784
test ! -s conftest.err
27785
} && test -s conftest.$ac_objext; then
27786
ac_hi=$ac_mid; break
27788
echo "$as_me: failed program was:" >&5
27789
sed 's/^/| /' conftest.$ac_ext >&5
27791
ac_lo=`expr $ac_mid + 1`
27792
if test $ac_lo -le $ac_mid; then
27796
ac_mid=`expr 2 '*' $ac_mid + 1`
27799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27802
echo "$as_me: failed program was:" >&5
27803
sed 's/^/| /' conftest.$ac_ext >&5
27805
cat >conftest.$ac_ext <<_ACEOF
27808
cat confdefs.h >>conftest.$ac_ext
27809
cat >>conftest.$ac_ext <<_ACEOF
27810
/* end confdefs.h. */
27811
$ac_includes_default
27812
typedef unsigned long ac__type_sizeof_;
27816
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27823
rm -f conftest.$ac_objext
27824
if { (ac_try="$ac_compile"
27825
case "(($ac_try" in
27826
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827
*) ac_try_echo=$ac_try;;
27829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830
(eval "$ac_compile") 2>conftest.er1
27832
grep -v '^ *+' conftest.er1 >conftest.err
27834
cat conftest.err >&5
27835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836
(exit $ac_status); } && {
27837
test -z "$ac_c_werror_flag" ||
27838
test ! -s conftest.err
27839
} && test -s conftest.$ac_objext; then
27842
cat >conftest.$ac_ext <<_ACEOF
27845
cat confdefs.h >>conftest.$ac_ext
27846
cat >>conftest.$ac_ext <<_ACEOF
27847
/* end confdefs.h. */
27848
$ac_includes_default
27849
typedef unsigned long ac__type_sizeof_;
27853
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27860
rm -f conftest.$ac_objext
27861
if { (ac_try="$ac_compile"
27862
case "(($ac_try" in
27863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27864
*) ac_try_echo=$ac_try;;
27866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27867
(eval "$ac_compile") 2>conftest.er1
27869
grep -v '^ *+' conftest.er1 >conftest.err
27871
cat conftest.err >&5
27872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873
(exit $ac_status); } && {
27874
test -z "$ac_c_werror_flag" ||
27875
test ! -s conftest.err
27876
} && test -s conftest.$ac_objext; then
27877
ac_lo=$ac_mid; break
27879
echo "$as_me: failed program was:" >&5
27880
sed 's/^/| /' conftest.$ac_ext >&5
27882
ac_hi=`expr '(' $ac_mid ')' - 1`
27883
if test $ac_mid -le $ac_hi; then
27887
ac_mid=`expr 2 '*' $ac_mid`
27890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893
echo "$as_me: failed program was:" >&5
27894
sed 's/^/| /' conftest.$ac_ext >&5
27899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27903
# Binary search between lo and hi bounds.
27904
while test "x$ac_lo" != "x$ac_hi"; do
27905
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27906
cat >conftest.$ac_ext <<_ACEOF
27909
cat confdefs.h >>conftest.$ac_ext
27910
cat >>conftest.$ac_ext <<_ACEOF
27911
/* end confdefs.h. */
27912
$ac_includes_default
27913
typedef unsigned long ac__type_sizeof_;
27917
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27924
rm -f conftest.$ac_objext
27925
if { (ac_try="$ac_compile"
27926
case "(($ac_try" in
27927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928
*) ac_try_echo=$ac_try;;
27930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931
(eval "$ac_compile") 2>conftest.er1
27933
grep -v '^ *+' conftest.er1 >conftest.err
27935
cat conftest.err >&5
27936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937
(exit $ac_status); } && {
27938
test -z "$ac_c_werror_flag" ||
27939
test ! -s conftest.err
27940
} && test -s conftest.$ac_objext; then
27943
echo "$as_me: failed program was:" >&5
27944
sed 's/^/| /' conftest.$ac_ext >&5
27946
ac_lo=`expr '(' $ac_mid ')' + 1`
27949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27952
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
27953
'') if test "$ac_cv_type_unsigned_long" = yes; then
27954
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
27955
See \`config.log' for more details." >&5
27956
echo "$as_me: error: cannot compute sizeof (unsigned long)
27957
See \`config.log' for more details." >&2;}
27958
{ (exit 77); exit 77; }; }
27960
ac_cv_sizeof_unsigned_long=0
27964
cat >conftest.$ac_ext <<_ACEOF
27967
cat confdefs.h >>conftest.$ac_ext
27968
cat >>conftest.$ac_ext <<_ACEOF
27969
/* end confdefs.h. */
27970
$ac_includes_default
27971
typedef unsigned long ac__type_sizeof_;
27972
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27973
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27975
#include <stdlib.h>
27980
FILE *f = fopen ("conftest.val", "w");
27983
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27985
long int i = longval ();
27986
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27988
fprintf (f, "%ld\n", i);
27992
unsigned long int i = ulongval ();
27993
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27995
fprintf (f, "%lu\n", i);
27997
return ferror (f) || fclose (f) != 0;
28003
rm -f conftest$ac_exeext
28004
if { (ac_try="$ac_link"
28005
case "(($ac_try" in
28006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28007
*) ac_try_echo=$ac_try;;
28009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28010
(eval "$ac_link") 2>&5
28012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28014
{ (case "(($ac_try" in
28015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28016
*) ac_try_echo=$ac_try;;
28018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28019
(eval "$ac_try") 2>&5
28021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022
(exit $ac_status); }; }; then
28023
ac_cv_sizeof_unsigned_long=`cat conftest.val`
28025
echo "$as_me: program exited with status $ac_status" >&5
28026
echo "$as_me: failed program was:" >&5
28027
sed 's/^/| /' conftest.$ac_ext >&5
28029
( exit $ac_status )
28030
if test "$ac_cv_type_unsigned_long" = yes; then
28031
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
28032
See \`config.log' for more details." >&5
28033
echo "$as_me: error: cannot compute sizeof (unsigned long)
28034
See \`config.log' for more details." >&2;}
28035
{ (exit 77); exit 77; }; }
28037
ac_cv_sizeof_unsigned_long=0
28040
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28044
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
28045
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
28049
cat >>confdefs.h <<_ACEOF
28050
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28055
{ echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
28056
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6; }
28057
cat >conftest.$ac_ext <<_ACEOF
28060
cat confdefs.h >>conftest.$ac_ext
28061
cat >>conftest.$ac_ext <<_ACEOF
28062
/* end confdefs.h. */
28068
#if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
28076
rm -f conftest.$ac_objext
28077
if { (ac_try="$ac_compile"
28078
case "(($ac_try" in
28079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080
*) ac_try_echo=$ac_try;;
28082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083
(eval "$ac_compile") 2>conftest.er1
28085
grep -v '^ *+' conftest.er1 >conftest.err
28087
cat conftest.err >&5
28088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089
(exit $ac_status); } && {
28090
test -z "$ac_c_werror_flag" ||
28091
test ! -s conftest.err
28092
} && test -s conftest.$ac_objext; then
28093
{ echo "$as_me:$LINENO: result: yes" >&5
28094
echo "${ECHO_T}yes" >&6; }
28096
echo "$as_me: failed program was:" >&5
28097
sed 's/^/| /' conftest.$ac_ext >&5
28100
{ echo "$as_me:$LINENO: result: no" >&5
28101
echo "${ECHO_T}no" >&6; }
28102
{ { echo "$as_me:$LINENO: error:
28103
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28104
does not apply. Please mail kde-devel@kde.org with a description of your system!
28106
echo "$as_me: error:
28107
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28108
does not apply. Please mail kde-devel@kde.org with a description of your system!
28110
{ (exit 1); exit 1; }; }
28114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28117
{ echo "$as_me:$LINENO: checking for PIE support" >&5
28118
echo $ECHO_N "checking for PIE support... $ECHO_C" >&6; }
28119
if test "${kde_cv_val_pie_support+set}" = set; then
28120
echo $ECHO_N "(cached) $ECHO_C" >&6
28125
ac_cpp='$CXXCPP $CPPFLAGS'
28126
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28127
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28128
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28130
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
28133
safe_CXXFLAGS=$CXXFLAGS
28134
safe_LDFLAGS=$LDFLAGS
28135
CXXFLAGS="$CXXFLAGS -fPIE"
28136
LDFLAGS="$LDFLAGS -pie"
28138
cat >conftest.$ac_ext <<_ACEOF
28141
cat confdefs.h >>conftest.$ac_ext
28142
cat >>conftest.$ac_ext <<_ACEOF
28143
/* end confdefs.h. */
28153
rm -f conftest.$ac_objext conftest$ac_exeext
28154
if { (ac_try="$ac_link"
28155
case "(($ac_try" in
28156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157
*) ac_try_echo=$ac_try;;
28159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160
(eval "$ac_link") 2>conftest.er1
28162
grep -v '^ *+' conftest.er1 >conftest.err
28164
cat conftest.err >&5
28165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166
(exit $ac_status); } && {
28167
test -z "$ac_cxx_werror_flag" ||
28168
test ! -s conftest.err
28169
} && test -s conftest$ac_exeext &&
28170
$as_test_x conftest$ac_exeext; then
28171
kde_cv_val_pie_support=yes
28173
echo "$as_me: failed program was:" >&5
28174
sed 's/^/| /' conftest.$ac_ext >&5
28176
kde_cv_val_pie_support=no
28179
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28180
conftest$ac_exeext conftest.$ac_ext
28182
CXXFLAGS=$safe_CXXFLAGS
28183
LDFLAGS=$safe_LDFLAGS
28185
ac_cpp='$CPP $CPPFLAGS'
28186
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28187
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28188
ac_compiler_gnu=$ac_cv_c_compiler_gnu
28192
{ echo "$as_me:$LINENO: result: $kde_cv_val_pie_support" >&5
28193
echo "${ECHO_T}$kde_cv_val_pie_support" >&6; }
28195
{ echo "$as_me:$LINENO: checking if enabling -pie/fPIE support" >&5
28196
echo $ECHO_N "checking if enabling -pie/fPIE support... $ECHO_C" >&6; }
28198
# Check whether --enable-pie was given.
28199
if test "${enable_pie+set}" = set; then
28200
enableval=$enable_pie; kde_has_pie_support=$enableval
28202
kde_has_pie_support=detect
28206
if test "$kde_has_pie_support" = "detect"; then
28207
kde_has_pie_support=$kde_cv_val_pie_support
28210
{ echo "$as_me:$LINENO: result: $kde_has_pie_support" >&5
28211
echo "${ECHO_T}$kde_has_pie_support" >&6; }
28219
if test "$kde_has_pie_support" = "yes"; then
28220
KDE_USE_FPIE="-fPIE"
28225
# darwin needs this to initialize the environment
28227
for ac_header in crt_externs.h
28229
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28230
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28231
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28232
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28233
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28234
echo $ECHO_N "(cached) $ECHO_C" >&6
28236
ac_res=`eval echo '${'$as_ac_Header'}'`
28237
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28238
echo "${ECHO_T}$ac_res" >&6; }
28240
# Is the header compilable?
28241
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28242
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28243
cat >conftest.$ac_ext <<_ACEOF
28246
cat confdefs.h >>conftest.$ac_ext
28247
cat >>conftest.$ac_ext <<_ACEOF
28248
/* end confdefs.h. */
28249
$ac_includes_default
28250
#include <$ac_header>
28252
rm -f conftest.$ac_objext
28253
if { (ac_try="$ac_compile"
28254
case "(($ac_try" in
28255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256
*) ac_try_echo=$ac_try;;
28258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259
(eval "$ac_compile") 2>conftest.er1
28261
grep -v '^ *+' conftest.er1 >conftest.err
28263
cat conftest.err >&5
28264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265
(exit $ac_status); } && {
28266
test -z "$ac_c_werror_flag" ||
28267
test ! -s conftest.err
28268
} && test -s conftest.$ac_objext; then
28269
ac_header_compiler=yes
28271
echo "$as_me: failed program was:" >&5
28272
sed 's/^/| /' conftest.$ac_ext >&5
28274
ac_header_compiler=no
28277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28278
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28279
echo "${ECHO_T}$ac_header_compiler" >&6; }
28281
# Is the header present?
28282
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28283
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28284
cat >conftest.$ac_ext <<_ACEOF
28287
cat confdefs.h >>conftest.$ac_ext
28288
cat >>conftest.$ac_ext <<_ACEOF
28289
/* end confdefs.h. */
28290
#include <$ac_header>
28292
if { (ac_try="$ac_cpp conftest.$ac_ext"
28293
case "(($ac_try" in
28294
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28295
*) ac_try_echo=$ac_try;;
28297
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28300
grep -v '^ *+' conftest.er1 >conftest.err
28302
cat conftest.err >&5
28303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304
(exit $ac_status); } >/dev/null && {
28305
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28306
test ! -s conftest.err
28308
ac_header_preproc=yes
28310
echo "$as_me: failed program was:" >&5
28311
sed 's/^/| /' conftest.$ac_ext >&5
28313
ac_header_preproc=no
28316
rm -f conftest.err conftest.$ac_ext
28317
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28318
echo "${ECHO_T}$ac_header_preproc" >&6; }
28320
# So? What about this header?
28321
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28323
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28324
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28325
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28326
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28327
ac_header_preproc=yes
28330
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28331
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28332
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28333
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28334
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28335
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28336
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28337
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28338
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28339
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28340
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28341
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28345
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28346
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28347
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28348
echo $ECHO_N "(cached) $ECHO_C" >&6
28350
eval "$as_ac_Header=\$ac_header_preproc"
28352
ac_res=`eval echo '${'$as_ac_Header'}'`
28353
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28354
echo "${ECHO_T}$ac_res" >&6; }
28357
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28358
cat >>confdefs.h <<_ACEOF
28359
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28366
{ echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
28367
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6; }
28368
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
28369
echo $ECHO_N "(cached) $ECHO_C" >&6
28371
cat >conftest.$ac_ext <<_ACEOF
28374
cat confdefs.h >>conftest.$ac_ext
28375
cat >>conftest.$ac_ext <<_ACEOF
28376
/* end confdefs.h. */
28377
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
28378
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28379
#define _NSGetEnviron innocuous__NSGetEnviron
28381
/* System header to define __stub macros and hopefully few prototypes,
28382
which can conflict with char _NSGetEnviron (); below.
28383
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28384
<limits.h> exists even on freestanding compilers. */
28387
# include <limits.h>
28389
# include <assert.h>
28392
#undef _NSGetEnviron
28394
/* Override any GCC internal prototype to avoid an error.
28395
Use char because int might match the return type of a GCC
28396
builtin and then its argument prototype would still apply. */
28400
char _NSGetEnviron ();
28401
/* The GNU C library defines this for functions which it implements
28402
to always fail with ENOSYS. Some functions are actually named
28403
something starting with __ and the normal name is an alias. */
28404
#if defined __stub__NSGetEnviron || defined __stub____NSGetEnviron
28411
return _NSGetEnviron ();
28416
rm -f conftest.$ac_objext conftest$ac_exeext
28417
if { (ac_try="$ac_link"
28418
case "(($ac_try" in
28419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420
*) ac_try_echo=$ac_try;;
28422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423
(eval "$ac_link") 2>conftest.er1
28425
grep -v '^ *+' conftest.er1 >conftest.err
28427
cat conftest.err >&5
28428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429
(exit $ac_status); } && {
28430
test -z "$ac_c_werror_flag" ||
28431
test ! -s conftest.err
28432
} && test -s conftest$ac_exeext &&
28433
$as_test_x conftest$ac_exeext; then
28434
ac_cv_func__NSGetEnviron=yes
28436
echo "$as_me: failed program was:" >&5
28437
sed 's/^/| /' conftest.$ac_ext >&5
28439
ac_cv_func__NSGetEnviron=no
28442
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28443
conftest$ac_exeext conftest.$ac_ext
28445
{ echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
28446
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6; }
28447
if test $ac_cv_func__NSGetEnviron = yes; then
28449
cat >>confdefs.h <<\_ACEOF
28450
#define HAVE_NSGETENVIRON 1
28464
for ac_func in vsnprintf snprintf
28466
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28467
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28468
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28469
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28470
echo $ECHO_N "(cached) $ECHO_C" >&6
28472
cat >conftest.$ac_ext <<_ACEOF
28475
cat confdefs.h >>conftest.$ac_ext
28476
cat >>conftest.$ac_ext <<_ACEOF
28477
/* end confdefs.h. */
28478
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28479
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28480
#define $ac_func innocuous_$ac_func
28482
/* System header to define __stub macros and hopefully few prototypes,
28483
which can conflict with char $ac_func (); below.
28484
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28485
<limits.h> exists even on freestanding compilers. */
28488
# include <limits.h>
28490
# include <assert.h>
28495
/* Override any GCC internal prototype to avoid an error.
28496
Use char because int might match the return type of a GCC
28497
builtin and then its argument prototype would still apply. */
28502
/* The GNU C library defines this for functions which it implements
28503
to always fail with ENOSYS. Some functions are actually named
28504
something starting with __ and the normal name is an alias. */
28505
#if defined __stub_$ac_func || defined __stub___$ac_func
28512
return $ac_func ();
28517
rm -f conftest.$ac_objext conftest$ac_exeext
28518
if { (ac_try="$ac_link"
28519
case "(($ac_try" in
28520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521
*) ac_try_echo=$ac_try;;
28523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28524
(eval "$ac_link") 2>conftest.er1
28526
grep -v '^ *+' conftest.er1 >conftest.err
28528
cat conftest.err >&5
28529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530
(exit $ac_status); } && {
28531
test -z "$ac_c_werror_flag" ||
28532
test ! -s conftest.err
28533
} && test -s conftest$ac_exeext &&
28534
$as_test_x conftest$ac_exeext; then
28535
eval "$as_ac_var=yes"
28537
echo "$as_me: failed program was:" >&5
28538
sed 's/^/| /' conftest.$ac_ext >&5
28540
eval "$as_ac_var=no"
28543
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28544
conftest$ac_exeext conftest.$ac_ext
28546
ac_res=`eval echo '${'$as_ac_var'}'`
28547
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28548
echo "${ECHO_T}$ac_res" >&6; }
28549
if test `eval echo '${'$as_ac_var'}'` = yes; then
28550
cat >>confdefs.h <<_ACEOF
28551
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28565
# Check whether --enable-embedded was given.
28566
if test "${enable_embedded+set}" = set; then
28567
enableval=$enable_embedded; kde_use_qt_emb=$enableval
28574
# Check whether --enable-qtopia was given.
28575
if test "${enable_qtopia+set}" = set; then
28576
enableval=$enable_qtopia; kde_use_qt_emb_palm=$enableval
28578
kde_use_qt_emb_palm=no
28583
# Check whether --enable-mac was given.
28584
if test "${enable_mac+set}" = set; then
28585
enableval=$enable_mac; kde_use_qt_mac=$enableval
28592
# used to disable x11-specific stuff on special platforms
28595
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28597
include_x11_FALSE='#'
28599
include_x11_TRUE='#'
28604
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28606
{ echo "$as_me:$LINENO: checking for X" >&5
28607
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
28609
if test "${kde_cv_have_x+set}" = set; then
28610
echo $ECHO_N "(cached) $ECHO_C" >&6
28612
# One or both of the vars are not set, and there is no cached value.
28613
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
28616
kde_x_includes=$x_includes
28618
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
28621
kde_x_libraries=$x_libraries
28624
# below we use the standard autoconf calls
28625
ac_x_libraries=$kde_x_libraries
28626
ac_x_includes=$kde_x_includes
28631
if test "$ac_x_includes" = NO; then
28632
# Guess where to find include files, by looking for this one X11 .h file.
28633
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
28635
# First, try using that file with no special directory specified.
28636
cat >conftest.$ac_ext <<_ACEOF
28639
cat confdefs.h >>conftest.$ac_ext
28640
cat >>conftest.$ac_ext <<_ACEOF
28641
/* end confdefs.h. */
28642
#include <$x_direct_test_include>
28644
if { (ac_try="$ac_cpp conftest.$ac_ext"
28645
case "(($ac_try" in
28646
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647
*) ac_try_echo=$ac_try;;
28649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28652
grep -v '^ *+' conftest.er1 >conftest.err
28654
cat conftest.err >&5
28655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656
(exit $ac_status); } >/dev/null && {
28657
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28658
test ! -s conftest.err
28660
# We can compile using X headers with no special include directory.
28663
echo "$as_me: failed program was:" >&5
28664
sed 's/^/| /' conftest.$ac_ext >&5
28666
# Look for the header file in a standard set of common directories.
28667
# Check X11 before X11Rn because it is often a symlink to the current release.
28670
/usr/X11R6/include \
28671
/usr/X11R5/include \
28672
/usr/X11R4/include \
28675
/usr/include/X11R6 \
28676
/usr/include/X11R5 \
28677
/usr/include/X11R4 \
28679
/usr/local/X11/include \
28680
/usr/local/X11R6/include \
28681
/usr/local/X11R5/include \
28682
/usr/local/X11R4/include \
28684
/usr/local/include/X11 \
28685
/usr/local/include/X11R6 \
28686
/usr/local/include/X11R5 \
28687
/usr/local/include/X11R4 \
28689
/usr/X386/include \
28690
/usr/x386/include \
28691
/usr/XFree86/include/X11 \
28694
/usr/local/include \
28695
/usr/unsupported/include \
28696
/usr/athena/include \
28697
/usr/local/x11r5/include \
28698
/usr/lpp/Xamples/include \
28700
/usr/openwin/include \
28701
/usr/openwin/share/include \
28704
if test -r "$ac_dir/$x_direct_test_include"; then
28705
ac_x_includes=$ac_dir
28711
rm -f conftest.err conftest.$ac_ext
28712
fi # $ac_x_includes = NO
28714
if test "$ac_x_libraries" = NO; then
28715
# Check for the libraries.
28717
test -z "$x_direct_test_library" && x_direct_test_library=Xt
28718
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
28720
# See if we find them without any special options.
28721
# Don't add to $LIBS permanently.
28722
ac_save_LIBS="$LIBS"
28723
LIBS="-l$x_direct_test_library $LIBS"
28724
cat >conftest.$ac_ext <<_ACEOF
28727
cat confdefs.h >>conftest.$ac_ext
28728
cat >>conftest.$ac_ext <<_ACEOF
28729
/* end confdefs.h. */
28730
#include <X11/Intrinsic.h>
28734
${x_direct_test_function}(1)
28739
rm -f conftest.$ac_objext conftest$ac_exeext
28740
if { (ac_try="$ac_link"
28741
case "(($ac_try" in
28742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743
*) ac_try_echo=$ac_try;;
28745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746
(eval "$ac_link") 2>conftest.er1
28748
grep -v '^ *+' conftest.er1 >conftest.err
28750
cat conftest.err >&5
28751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752
(exit $ac_status); } && {
28753
test -z "$ac_c_werror_flag" ||
28754
test ! -s conftest.err
28755
} && test -s conftest$ac_exeext &&
28756
$as_test_x conftest$ac_exeext; then
28757
LIBS="$ac_save_LIBS"
28758
# We can link X programs with no special library path.
28761
echo "$as_me: failed program was:" >&5
28762
sed 's/^/| /' conftest.$ac_ext >&5
28764
LIBS="$ac_save_LIBS"
28765
# First see if replacing the include by lib works.
28766
# Check X11 before X11Rn because it is often a symlink to the current release.
28767
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
28768
/usr/X11/lib${kdelibsuff} \
28769
/usr/X11R6/lib${kdelibsuff} \
28770
/usr/X11R5/lib${kdelibsuff} \
28771
/usr/X11R4/lib${kdelibsuff} \
28773
/usr/lib${kdelibsuff}/X11 \
28774
/usr/lib${kdelibsuff}/X11R6 \
28775
/usr/lib${kdelibsuff}/X11R5 \
28776
/usr/lib${kdelibsuff}/X11R4 \
28778
/usr/local/X11/lib${kdelibsuff} \
28779
/usr/local/X11R6/lib${kdelibsuff} \
28780
/usr/local/X11R5/lib${kdelibsuff} \
28781
/usr/local/X11R4/lib${kdelibsuff} \
28783
/usr/local/lib${kdelibsuff}/X11 \
28784
/usr/local/lib${kdelibsuff}/X11R6 \
28785
/usr/local/lib${kdelibsuff}/X11R5 \
28786
/usr/local/lib${kdelibsuff}/X11R4 \
28788
/usr/X386/lib${kdelibsuff} \
28789
/usr/x386/lib${kdelibsuff} \
28790
/usr/XFree86/lib${kdelibsuff}/X11 \
28792
/usr/lib${kdelibsuff} \
28793
/usr/local/lib${kdelibsuff} \
28794
/usr/unsupported/lib${kdelibsuff} \
28795
/usr/athena/lib${kdelibsuff} \
28796
/usr/local/x11r5/lib${kdelibsuff} \
28797
/usr/lpp/Xamples/lib${kdelibsuff} \
28798
/lib/usr/lib${kdelibsuff}/X11 \
28800
/usr/openwin/lib${kdelibsuff} \
28801
/usr/openwin/share/lib${kdelibsuff} \
28804
for ac_extension in a so sl; do
28805
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
28806
ac_x_libraries=$ac_dir
28813
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28814
conftest$ac_exeext conftest.$ac_ext
28815
fi # $ac_x_libraries = NO
28823
rm -f -r conftest.dir
28824
if mkdir conftest.dir; then
28826
cat >Imakefile <<'_ACEOF'
28828
@echo incroot='${INCROOT}'
28830
@echo usrlibdir='${USRLIBDIR}'
28832
@echo libdir='${LIBDIR}'
28834
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28835
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28836
for ac_var in incroot usrlibdir libdir; do
28837
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28839
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28840
for ac_extension in a so sl; do
28841
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
28842
test -f "$ac_im_libdir/libX11.$ac_extension"; then
28843
ac_im_usrlibdir=$ac_im_libdir; break
28846
# Screen out bogus values from the imake configuration. They are
28847
# bogus both because they are the default anyway, and because
28848
# using them would break gcc on systems where it needs fixed includes.
28849
case $ac_im_incroot in
28850
/usr/include) ac_x_includes= ;;
28851
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28853
case $ac_im_usrlibdir in
28854
/usr/lib | /lib) ;;
28855
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28859
rm -f -r conftest.dir
28862
if test -z "$ac_x_includes"; then
28865
if test -z "$ac_x_libraries"; then
28866
ac_x_libraries="/usr/lib${kdelibsuff}"
28869
#from now on we use our own again
28871
# when the user already gave --x-includes, we ignore
28872
# what the standard autoconf macros told us.
28873
if test "$kde_x_includes" = NO; then
28874
kde_x_includes=$ac_x_includes
28877
# for --x-libraries too
28878
if test "$kde_x_libraries" = NO; then
28879
kde_x_libraries=$ac_x_libraries
28882
if test "$kde_x_includes" = NO; then
28883
{ { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
28884
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
28885
{ (exit 1); exit 1; }; }
28888
if test "$kde_x_libraries" = NO; then
28889
{ { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
28890
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
28891
{ (exit 1); exit 1; }; }
28894
# Record where we found X for the cache.
28895
kde_cv_have_x="have_x=yes \
28896
kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
28900
eval "$kde_cv_have_x"
28902
if test "$have_x" != yes; then
28903
{ echo "$as_me:$LINENO: result: $have_x" >&5
28904
echo "${ECHO_T}$have_x" >&6; }
28907
{ echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
28908
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6; }
28911
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
28913
x_includes="."; else
28914
x_includes=$kde_x_includes
28915
X_INCLUDES="-I$x_includes"
28918
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
28920
x_libraries="/usr/lib"; else
28921
x_libraries=$kde_x_libraries
28922
X_LDFLAGS="-L$x_libraries"
28924
all_includes="$X_INCLUDES"
28925
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
28927
# Check for libraries that X11R6 Xt/Xaw programs need.
28928
ac_save_LDFLAGS="$LDFLAGS"
28929
LDFLAGS="$LDFLAGS $X_LDFLAGS"
28930
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28931
# check for ICE first), but we must link in the order -lSM -lICE or
28932
# we get undefined symbols. So assume we have SM if we have ICE.
28933
# These have to be linked with before -lX11, unlike the other
28934
# libraries we check for below, so use a different variable.
28935
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
28936
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28937
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
28938
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28939
echo $ECHO_N "(cached) $ECHO_C" >&6
28941
ac_check_lib_save_LIBS=$LIBS
28942
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28943
cat >conftest.$ac_ext <<_ACEOF
28946
cat confdefs.h >>conftest.$ac_ext
28947
cat >>conftest.$ac_ext <<_ACEOF
28948
/* end confdefs.h. */
28950
/* Override any GCC internal prototype to avoid an error.
28951
Use char because int might match the return type of a GCC
28952
builtin and then its argument prototype would still apply. */
28956
char IceConnectionNumber ();
28960
return IceConnectionNumber ();
28965
rm -f conftest.$ac_objext conftest$ac_exeext
28966
if { (ac_try="$ac_link"
28967
case "(($ac_try" in
28968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969
*) ac_try_echo=$ac_try;;
28971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972
(eval "$ac_link") 2>conftest.er1
28974
grep -v '^ *+' conftest.er1 >conftest.err
28976
cat conftest.err >&5
28977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978
(exit $ac_status); } && {
28979
test -z "$ac_c_werror_flag" ||
28980
test ! -s conftest.err
28981
} && test -s conftest$ac_exeext &&
28982
$as_test_x conftest$ac_exeext; then
28983
ac_cv_lib_ICE_IceConnectionNumber=yes
28985
echo "$as_me: failed program was:" >&5
28986
sed 's/^/| /' conftest.$ac_ext >&5
28988
ac_cv_lib_ICE_IceConnectionNumber=no
28991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28992
conftest$ac_exeext conftest.$ac_ext
28993
LIBS=$ac_check_lib_save_LIBS
28995
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28996
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28997
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29001
LDFLAGS="$ac_save_LDFLAGS"
29003
LIB_X11='-lX11 $(LIBSOCKET)'
29005
{ echo "$as_me:$LINENO: checking for libXext" >&5
29006
echo $ECHO_N "checking for libXext... $ECHO_C" >&6; }
29007
if test "${kde_cv_have_libXext+set}" = set; then
29008
echo $ECHO_N "(cached) $ECHO_C" >&6
29011
kde_ldflags_safe="$LDFLAGS"
29012
kde_libs_safe="$LIBS"
29014
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
29015
LIBS="-lXext -lX11 $LIBSOCKET"
29017
cat >conftest.$ac_ext <<_ACEOF
29020
cat confdefs.h >>conftest.$ac_ext
29021
cat >>conftest.$ac_ext <<_ACEOF
29022
/* end confdefs.h. */
29025
#ifdef STDC_HEADERS
29026
# include <stdlib.h>
29033
printf("hello Xext\n");
29039
rm -f conftest.$ac_objext conftest$ac_exeext
29040
if { (ac_try="$ac_link"
29041
case "(($ac_try" in
29042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29043
*) ac_try_echo=$ac_try;;
29045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29046
(eval "$ac_link") 2>conftest.er1
29048
grep -v '^ *+' conftest.er1 >conftest.err
29050
cat conftest.err >&5
29051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052
(exit $ac_status); } && {
29053
test -z "$ac_c_werror_flag" ||
29054
test ! -s conftest.err
29055
} && test -s conftest$ac_exeext &&
29056
$as_test_x conftest$ac_exeext; then
29057
kde_cv_have_libXext=yes
29059
echo "$as_me: failed program was:" >&5
29060
sed 's/^/| /' conftest.$ac_ext >&5
29062
kde_cv_have_libXext=no
29066
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29067
conftest$ac_exeext conftest.$ac_ext
29069
LDFLAGS=$kde_ldflags_safe
29070
LIBS=$kde_libs_safe
29075
{ echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
29076
echo "${ECHO_T}$kde_cv_have_libXext" >&6; }
29078
if test "$kde_cv_have_libXext" = "no"; then
29079
{ { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
29080
can't find it itself, we stop here assuming that make wouldn't find
29082
echo "$as_me: error: We need a working libXext to proceed. Since configure
29083
can't find it itself, we stop here assuming that make wouldn't find
29084
them either." >&2;}
29085
{ (exit 1); exit 1; }; }
29091
elif test "$kde_use_qt_emb" = "yes"; then
29093
CXXFLAGS="$CXXFLAGS -fno-rtti"
29094
QTE_NORTTI="-fno-rtti -DQWS"
29104
elif test "$kde_use_qt_mac" = "yes"; then
29105
CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
29106
CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
29132
if test -n "$PTHREAD_LIBS"; then
29133
if test "x$PTHREAD_LIBS" = "x-pthread" ; then
29134
LIBPTHREAD="PTHREAD"
29136
PTHREAD_LIBS_save="$PTHREAD_LIBS"
29137
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
29138
{ echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
29139
echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6; }
29141
kde_save_LDFLAGS="$LDFLAGS"
29142
kde_save_LIBS="$LIBS"
29143
LDFLAGS="$LDFLAGS $all_libraries"
29145
aix*) LDFLAGS="-brtl $LDFLAGS"
29146
test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
29149
as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
29150
{ echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
29151
echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6; }
29152
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29153
echo $ECHO_N "(cached) $ECHO_C" >&6
29155
ac_check_lib_save_LIBS=$LIBS
29156
LIBS="-l$PTHREAD_LIBS $LIBS"
29157
cat >conftest.$ac_ext <<_ACEOF
29160
cat confdefs.h >>conftest.$ac_ext
29161
cat >>conftest.$ac_ext <<_ACEOF
29162
/* end confdefs.h. */
29164
/* Override any GCC internal prototype to avoid an error.
29165
Use char because int might match the return type of a GCC
29166
builtin and then its argument prototype would still apply. */
29170
char pthread_create ();
29174
return pthread_create ();
29179
rm -f conftest.$ac_objext conftest$ac_exeext
29180
if { (ac_try="$ac_link"
29181
case "(($ac_try" in
29182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183
*) ac_try_echo=$ac_try;;
29185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29186
(eval "$ac_link") 2>conftest.er1
29188
grep -v '^ *+' conftest.er1 >conftest.err
29190
cat conftest.err >&5
29191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192
(exit $ac_status); } && {
29193
test -z "$ac_c_werror_flag" ||
29194
test ! -s conftest.err
29195
} && test -s conftest$ac_exeext &&
29196
$as_test_x conftest$ac_exeext; then
29197
eval "$as_ac_Lib=yes"
29199
echo "$as_me: failed program was:" >&5
29200
sed 's/^/| /' conftest.$ac_ext >&5
29202
eval "$as_ac_Lib=no"
29205
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29206
conftest$ac_exeext conftest.$ac_ext
29207
LIBS=$ac_check_lib_save_LIBS
29209
ac_res=`eval echo '${'$as_ac_Lib'}'`
29210
{ echo "$as_me:$LINENO: result: $ac_res" >&5
29211
echo "${ECHO_T}$ac_res" >&6; }
29212
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29213
LIBPTHREAD="$PTHREAD_LIBS_save"
29216
LDFLAGS="$kde_save_LDFLAGS"
29217
LIBS="$kde_save_LIBS"
29219
PTHREAD_LIBS="$PTHREAD_LIBS_save"
29223
if test -z "$LIBPTHREAD"; then
29224
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29225
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29226
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29227
echo $ECHO_N "(cached) $ECHO_C" >&6
29229
ac_check_lib_save_LIBS=$LIBS
29230
LIBS="-lpthread $LIBS"
29231
cat >conftest.$ac_ext <<_ACEOF
29234
cat confdefs.h >>conftest.$ac_ext
29235
cat >>conftest.$ac_ext <<_ACEOF
29236
/* end confdefs.h. */
29238
/* Override any GCC internal prototype to avoid an error.
29239
Use char because int might match the return type of a GCC
29240
builtin and then its argument prototype would still apply. */
29244
char pthread_create ();
29248
return pthread_create ();
29253
rm -f conftest.$ac_objext conftest$ac_exeext
29254
if { (ac_try="$ac_link"
29255
case "(($ac_try" in
29256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29257
*) ac_try_echo=$ac_try;;
29259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29260
(eval "$ac_link") 2>conftest.er1
29262
grep -v '^ *+' conftest.er1 >conftest.err
29264
cat conftest.err >&5
29265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266
(exit $ac_status); } && {
29267
test -z "$ac_c_werror_flag" ||
29268
test ! -s conftest.err
29269
} && test -s conftest$ac_exeext &&
29270
$as_test_x conftest$ac_exeext; then
29271
ac_cv_lib_pthread_pthread_create=yes
29273
echo "$as_me: failed program was:" >&5
29274
sed 's/^/| /' conftest.$ac_ext >&5
29276
ac_cv_lib_pthread_pthread_create=no
29279
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29280
conftest$ac_exeext conftest.$ac_ext
29281
LIBS=$ac_check_lib_save_LIBS
29283
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29284
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29285
if test $ac_cv_lib_pthread_pthread_create = yes; then
29286
LIBPTHREAD="-lpthread"
29291
if test -z "$LIBPTHREAD" ; then
29292
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29293
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29294
kde_safe_libs=$LIBS
29295
LIBS="$LIBS -lpthread"
29296
cat >conftest.$ac_ext <<_ACEOF
29299
cat confdefs.h >>conftest.$ac_ext
29300
cat >>conftest.$ac_ext <<_ACEOF
29301
/* end confdefs.h. */
29302
#include <pthread.h>
29306
(void)pthread_create(0,0,0,0);
29311
rm -f conftest.$ac_objext conftest$ac_exeext
29312
if { (ac_try="$ac_link"
29313
case "(($ac_try" in
29314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315
*) ac_try_echo=$ac_try;;
29317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318
(eval "$ac_link") 2>conftest.er1
29320
grep -v '^ *+' conftest.er1 >conftest.err
29322
cat conftest.err >&5
29323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324
(exit $ac_status); } && {
29325
test -z "$ac_c_werror_flag" ||
29326
test ! -s conftest.err
29327
} && test -s conftest$ac_exeext &&
29328
$as_test_x conftest$ac_exeext; then
29330
{ echo "$as_me:$LINENO: result: yes" >&5
29331
echo "${ECHO_T}yes" >&6; }
29332
LIBPTHREAD="-lpthread"
29334
echo "$as_me: failed program was:" >&5
29335
sed 's/^/| /' conftest.$ac_ext >&5
29338
{ echo "$as_me:$LINENO: result: no" >&5
29339
echo "${ECHO_T}no" >&6; }
29342
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29343
conftest$ac_exeext conftest.$ac_ext
29344
LIBS=$kde_safe_libs
29347
if test "x$LIBPTHREAD" = "xPTHREAD" ; then
29355
if test -z "$LIBPTHREAD"; then
29357
{ echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
29358
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
29359
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
29360
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29361
echo $ECHO_N "(cached) $ECHO_C" >&6
29366
ac_cpp='$CXXCPP $CPPFLAGS'
29367
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29371
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29374
save_CXXFLAGS="$CXXFLAGS"
29375
CXXFLAGS="$CXXFLAGS -pthread"
29376
cat >conftest.$ac_ext <<_ACEOF
29379
cat confdefs.h >>conftest.$ac_ext
29380
cat >>conftest.$ac_ext <<_ACEOF
29381
/* end confdefs.h. */
29391
rm -f conftest.$ac_objext conftest$ac_exeext
29392
if { (ac_try="$ac_link"
29393
case "(($ac_try" in
29394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29395
*) ac_try_echo=$ac_try;;
29397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29398
(eval "$ac_link") 2>conftest.er1
29400
grep -v '^ *+' conftest.er1 >conftest.err
29402
cat conftest.err >&5
29403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404
(exit $ac_status); } && {
29405
test -z "$ac_cxx_werror_flag" ||
29406
test ! -s conftest.err
29407
} && test -s conftest$ac_exeext &&
29408
$as_test_x conftest$ac_exeext; then
29409
eval "kde_cv_prog_cxx_$kde_cache=yes"
29411
echo "$as_me: failed program was:" >&5
29412
sed 's/^/| /' conftest.$ac_ext >&5
29417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29418
conftest$ac_exeext conftest.$ac_ext
29419
CXXFLAGS="$save_CXXFLAGS"
29421
ac_cpp='$CPP $CPPFLAGS'
29422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
29429
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29430
{ echo "$as_me:$LINENO: result: yes" >&5
29431
echo "${ECHO_T}yes" >&6; }
29433
USE_THREADS="-D_THREAD_SAFE -pthread"
29435
{ echo "$as_me:$LINENO: result: no" >&5
29436
echo "${ECHO_T}no" >&6; }
29448
{ echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
29449
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
29450
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
29451
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29452
echo $ECHO_N "(cached) $ECHO_C" >&6
29457
ac_cpp='$CXXCPP $CPPFLAGS'
29458
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29462
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29465
save_CXXFLAGS="$CXXFLAGS"
29466
CXXFLAGS="$CXXFLAGS -mt"
29467
cat >conftest.$ac_ext <<_ACEOF
29470
cat confdefs.h >>conftest.$ac_ext
29471
cat >>conftest.$ac_ext <<_ACEOF
29472
/* end confdefs.h. */
29482
rm -f conftest.$ac_objext conftest$ac_exeext
29483
if { (ac_try="$ac_link"
29484
case "(($ac_try" in
29485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486
*) ac_try_echo=$ac_try;;
29488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29489
(eval "$ac_link") 2>conftest.er1
29491
grep -v '^ *+' conftest.er1 >conftest.err
29493
cat conftest.err >&5
29494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495
(exit $ac_status); } && {
29496
test -z "$ac_cxx_werror_flag" ||
29497
test ! -s conftest.err
29498
} && test -s conftest$ac_exeext &&
29499
$as_test_x conftest$ac_exeext; then
29500
eval "kde_cv_prog_cxx_$kde_cache=yes"
29502
echo "$as_me: failed program was:" >&5
29503
sed 's/^/| /' conftest.$ac_ext >&5
29508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29509
conftest$ac_exeext conftest.$ac_ext
29510
CXXFLAGS="$save_CXXFLAGS"
29512
ac_cpp='$CPP $CPPFLAGS'
29513
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29514
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29515
ac_compiler_gnu=$ac_cv_c_compiler_gnu
29520
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29521
{ echo "$as_me:$LINENO: result: yes" >&5
29522
echo "${ECHO_T}yes" >&6; }
29526
{ echo "$as_me:$LINENO: result: no" >&5
29527
echo "${ECHO_T}no" >&6; }
29532
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
29535
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
29538
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
29539
LIBPTHREAD="$LIBPTHREAD -lc_r"
29541
linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
29542
if test "$CXX" = "KCC"; then
29543
CXXFLAGS="$CXXFLAGS --thread_safe"
29544
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
29554
{ echo "$as_me:$LINENO: checking for extra includes" >&5
29555
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6; }
29557
# Check whether --with-extra-includes was given.
29558
if test "${with_extra_includes+set}" = set; then
29559
withval=$with_extra_includes; kde_use_extra_includes="$withval"
29561
kde_use_extra_includes=NONE
29565
kde_extra_includes=
29566
if test -n "$kde_use_extra_includes" && \
29567
test "$kde_use_extra_includes" != "NONE"; then
29571
for dir in $kde_use_extra_includes; do
29572
kde_extra_includes="$kde_extra_includes $dir"
29573
USER_INCLUDES="$USER_INCLUDES -I$dir"
29576
kde_use_extra_includes="added"
29578
kde_use_extra_includes="no"
29582
{ echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
29583
echo "${ECHO_T}$kde_use_extra_includes" >&6; }
29586
{ echo "$as_me:$LINENO: checking for extra libs" >&5
29587
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6; }
29589
# Check whether --with-extra-libs was given.
29590
if test "${with_extra_libs+set}" = set; then
29591
withval=$with_extra_libs; kde_use_extra_libs=$withval
29593
kde_use_extra_libs=NONE
29597
if test -n "$kde_use_extra_libs" && \
29598
test "$kde_use_extra_libs" != "NONE"; then
29602
for dir in $kde_use_extra_libs; do
29603
kde_extra_libs="$kde_extra_libs $dir"
29604
KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
29605
USER_LDFLAGS="$USER_LDFLAGS -L$dir"
29608
kde_use_extra_libs="added"
29610
kde_use_extra_libs="no"
29615
{ echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
29616
echo "${ECHO_T}$kde_use_extra_libs" >&6; }
29621
{ echo "$as_me:$LINENO: checking for libz" >&5
29622
echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
29623
if test "${ac_cv_lib_z+set}" = set; then
29624
echo $ECHO_N "(cached) $ECHO_C" >&6
29627
kde_save_LIBS="$LIBS"
29628
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
29629
kde_save_CFLAGS="$CFLAGS"
29630
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29631
cat >conftest.$ac_ext <<_ACEOF
29634
cat confdefs.h >>conftest.$ac_ext
29635
cat >>conftest.$ac_ext <<_ACEOF
29636
/* end confdefs.h. */
29645
gzFile f = (gzFile) 0;
29646
/* this would segfault.. but we only link, don't run */
29647
(void) gzgets(f, buf, sizeof(buf));
29649
return (zlibVersion() == ZLIB_VERSION);
29655
rm -f conftest.$ac_objext conftest$ac_exeext
29656
if { (ac_try="$ac_link"
29657
case "(($ac_try" in
29658
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659
*) ac_try_echo=$ac_try;;
29661
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662
(eval "$ac_link") 2>conftest.er1
29664
grep -v '^ *+' conftest.er1 >conftest.err
29666
cat conftest.err >&5
29667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668
(exit $ac_status); } && {
29669
test -z "$ac_c_werror_flag" ||
29670
test ! -s conftest.err
29671
} && test -s conftest$ac_exeext &&
29672
$as_test_x conftest$ac_exeext; then
29673
eval "ac_cv_lib_z='-lz'"
29675
echo "$as_me: failed program was:" >&5
29676
sed 's/^/| /' conftest.$ac_ext >&5
29678
eval "ac_cv_lib_z=no"
29681
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29682
conftest$ac_exeext conftest.$ac_ext
29683
LIBS="$kde_save_LIBS"
29684
CFLAGS="$kde_save_CFLAGS"
29687
if test ! "$ac_cv_lib_z" = no; then
29689
cat >>confdefs.h <<_ACEOF
29690
#define HAVE_LIBZ 1
29693
LIBZ="$ac_cv_lib_z"
29694
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
29695
echo "${ECHO_T}$ac_cv_lib_z" >&6; }
29697
{ { echo "$as_me:$LINENO: error: not found.
29698
Possibly configure picks up an outdated version
29699
installed by XFree86. Remove it from your system.
29701
Check your installation and look into config.log" >&5
29702
echo "$as_me: error: not found.
29703
Possibly configure picks up an outdated version
29704
installed by XFree86. Remove it from your system.
29706
Check your installation and look into config.log" >&2;}
29707
{ (exit 1); exit 1; }; }
29715
{ echo "$as_me:$LINENO: checking for libpng" >&5
29716
echo $ECHO_N "checking for libpng... $ECHO_C" >&6; }
29717
if test "${ac_cv_lib_png+set}" = set; then
29718
echo $ECHO_N "(cached) $ECHO_C" >&6
29721
kde_save_LIBS="$LIBS"
29722
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29723
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
29725
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
29727
kde_save_CFLAGS="$CFLAGS"
29728
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29730
cat >conftest.$ac_ext <<_ACEOF
29733
cat confdefs.h >>conftest.$ac_ext
29734
cat >>conftest.$ac_ext <<_ACEOF
29735
/* end confdefs.h. */
29743
png_structp png_ptr = png_create_read_struct( /* image ptr */
29744
PNG_LIBPNG_VER_STRING, 0, 0, 0 );
29745
return( png_ptr != 0 );
29751
rm -f conftest.$ac_objext conftest$ac_exeext
29752
if { (ac_try="$ac_link"
29753
case "(($ac_try" in
29754
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755
*) ac_try_echo=$ac_try;;
29757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758
(eval "$ac_link") 2>conftest.er1
29760
grep -v '^ *+' conftest.er1 >conftest.err
29762
cat conftest.err >&5
29763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764
(exit $ac_status); } && {
29765
test -z "$ac_c_werror_flag" ||
29766
test ! -s conftest.err
29767
} && test -s conftest$ac_exeext &&
29768
$as_test_x conftest$ac_exeext; then
29769
eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
29771
echo "$as_me: failed program was:" >&5
29772
sed 's/^/| /' conftest.$ac_ext >&5
29774
eval "ac_cv_lib_png=no"
29778
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29779
conftest$ac_exeext conftest.$ac_ext
29780
LIBS="$kde_save_LIBS"
29781
CFLAGS="$kde_save_CFLAGS"
29784
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
29786
cat >>confdefs.h <<_ACEOF
29787
#define HAVE_LIBPNG 1
29790
LIBPNG="$ac_cv_lib_png"
29792
{ echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
29793
echo "${ECHO_T}$ac_cv_lib_png" >&6; }
29795
{ echo "$as_me:$LINENO: result: no" >&5
29796
echo "${ECHO_T}no" >&6; }
29803
{ echo "$as_me:$LINENO: checking for libjpeg6b" >&5
29804
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6; }
29805
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
29806
echo $ECHO_N "(cached) $ECHO_C" >&6
29809
ac_save_LIBS="$LIBS"
29810
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
29811
ac_save_CFLAGS="$CFLAGS"
29812
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29813
cat >conftest.$ac_ext <<_ACEOF
29816
cat confdefs.h >>conftest.$ac_ext
29817
cat >>conftest.$ac_ext <<_ACEOF
29818
/* end confdefs.h. */
29823
void jpeg_CreateDecompress();
29831
jpeg_CreateDecompress();
29836
rm -f conftest.$ac_objext conftest$ac_exeext
29837
if { (ac_try="$ac_link"
29838
case "(($ac_try" in
29839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29840
*) ac_try_echo=$ac_try;;
29842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29843
(eval "$ac_link") 2>conftest.er1
29845
grep -v '^ *+' conftest.er1 >conftest.err
29847
cat conftest.err >&5
29848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849
(exit $ac_status); } && {
29850
test -z "$ac_c_werror_flag" ||
29851
test ! -s conftest.err
29852
} && test -s conftest$ac_exeext &&
29853
$as_test_x conftest$ac_exeext; then
29854
eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
29856
echo "$as_me: failed program was:" >&5
29857
sed 's/^/| /' conftest.$ac_ext >&5
29859
eval "ac_cv_lib_jpeg_6b=no"
29862
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29863
conftest$ac_exeext conftest.$ac_ext
29864
LIBS="$ac_save_LIBS"
29865
CFLAGS="$ac_save_CFLAGS"
29870
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
29871
LIBJPEG="$ac_cv_lib_jpeg_6b"
29872
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
29873
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6; }
29875
{ echo "$as_me:$LINENO: result: no" >&5
29876
echo "${ECHO_T}no" >&6; }
29878
{ echo "$as_me:$LINENO: checking for libjpeg" >&5
29879
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6; }
29880
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
29881
echo $ECHO_N "(cached) $ECHO_C" >&6
29884
ac_save_LIBS="$LIBS"
29885
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
29886
ac_save_CFLAGS="$CFLAGS"
29887
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29888
cat >conftest.$ac_ext <<_ACEOF
29891
cat confdefs.h >>conftest.$ac_ext
29892
cat >>conftest.$ac_ext <<_ACEOF
29893
/* end confdefs.h. */
29898
void jpeg_CreateDecompress();
29906
jpeg_CreateDecompress();
29911
rm -f conftest.$ac_objext conftest$ac_exeext
29912
if { (ac_try="$ac_link"
29913
case "(($ac_try" in
29914
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915
*) ac_try_echo=$ac_try;;
29917
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918
(eval "$ac_link") 2>conftest.er1
29920
grep -v '^ *+' conftest.er1 >conftest.err
29922
cat conftest.err >&5
29923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924
(exit $ac_status); } && {
29925
test -z "$ac_c_werror_flag" ||
29926
test ! -s conftest.err
29927
} && test -s conftest$ac_exeext &&
29928
$as_test_x conftest$ac_exeext; then
29929
eval "ac_cv_lib_jpeg_normal=-ljpeg"
29931
echo "$as_me: failed program was:" >&5
29932
sed 's/^/| /' conftest.$ac_ext >&5
29934
eval "ac_cv_lib_jpeg_normal=no"
29937
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29938
conftest$ac_exeext conftest.$ac_ext
29939
LIBS="$ac_save_LIBS"
29940
CFLAGS="$ac_save_CFLAGS"
29945
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
29946
LIBJPEG="$ac_cv_lib_jpeg_normal"
29947
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
29948
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6; }
29950
{ echo "$as_me:$LINENO: result: no" >&5
29951
echo "${ECHO_T}no" >&6; }
29964
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
29967
for i in $jpeg_incdirs;
29969
for j in jpeglib.h;
29971
echo "configure: 29971: $i/$j" >&5
29972
if test -r "$i/$j"; then
29973
echo "taking that" >&5
29980
test "x$jpeg_incdir" = xNO && jpeg_incdir=
29982
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
29984
cat >>confdefs.h <<_ACEOF
29985
#define HAVE_LIBJPEG 1
29989
if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
29990
{ echo "$as_me:$LINENO: WARNING:
29991
There is an installation error in jpeg support. You seem to have only one
29992
of either the headers _or_ the libraries installed. You may need to either
29993
provide correct --with-extra-... options, or the development package of
29994
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
29995
Disabling JPEG support.
29997
echo "$as_me: WARNING:
29998
There is an installation error in jpeg support. You seem to have only one
29999
of either the headers _or_ the libraries installed. You may need to either
30000
provide correct --with-extra-... options, or the development package of
30001
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
30002
Disabling JPEG support.
30005
{ echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
30006
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
30018
{ echo "$as_me:$LINENO: checking for perl" >&5
30019
echo $ECHO_N "checking for perl... $ECHO_C" >&6; }
30020
if test -n "$PERL"; then
30021
kde_cv_path="$PERL";
30023
kde_cache=`echo perl | sed 'y%./+-%__p_%'`
30025
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30026
echo $ECHO_N "(cached) $ECHO_C" >&6
30033
for dir in $PATH; do
30036
if test -z ""; then dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
30037
else dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
30041
for dir in $dirs; do
30042
if test -x "$dir/perl"; then
30045
evalstr="$dir/perl 2>&1 "
30046
if eval $evalstr; then
30047
kde_cv_path="$dir/perl"
30051
kde_cv_path="$dir/perl"
30057
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30063
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30067
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30068
{ echo "$as_me:$LINENO: result: not found" >&5
30069
echo "${ECHO_T}not found" >&6; }
30071
{ { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
30072
We need perl to generate some code." >&5
30073
echo "$as_me: error: No Perl found in your $PATH.
30074
We need perl to generate some code." >&2;}
30075
{ (exit 1); exit 1; }; }
30078
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30079
echo "${ECHO_T}$kde_cv_path" >&6; }
30093
# Check whether --enable-mt was given.
30094
if test "${enable_mt+set}" = set; then
30095
enableval=$enable_mt; kde_use_qt_mt=$enableval
30098
if test $kde_qtver = 3; then
30113
if test "x$kde_use_qt_mt" = "xyes"; then
30117
if test -z "$LIBPTHREAD"; then
30118
if test -z "$USE_THREADS"; then
30119
kde_check_threading_default=no
30121
kde_check_threading_default=yes
30124
kde_check_threading_default=yes
30126
# Check whether --enable-threading was given.
30127
if test "${enable_threading+set}" = set; then
30128
enableval=$enable_threading; kde_use_threading=$enableval
30130
kde_use_threading=$kde_check_threading_default
30133
if test "x$kde_use_threading" = "xyes"; then
30135
cat >>confdefs.h <<\_ACEOF
30136
#define HAVE_LIBPTHREAD 1
30141
if test "x$kde_use_threading" = "xyes"; then
30142
CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
30143
KDE_MT_LDFLAGS="$USE_THREADS"
30144
KDE_MT_LIBS="$LIBPTHREAD"
30152
kde_qt_was_given=yes
30154
if test -z "$LIBQT_GLOB"; then
30155
if test "x$kde_use_qt_emb" = "xyes"; then
30156
LIBQT_GLOB="libqte.*"
30158
LIBQT_GLOB="libqt.*"
30162
if test "x$kde_use_qt_emb" = "xyes"; then
30168
kde_int_qt="-l$qtlib"
30170
if test -z "$LIBQPE"; then
30171
if test "x$kde_use_qt_emb" = "xyes"; then
30172
if test "x$kde_use_qt_emb_palm" = "xyes"; then
30183
if test "x$kde_use_qt_mt" = "xyes"; then
30184
LIBQT="-l$qtlib-mt"
30185
kde_int_qt="-l$qtlib-mt"
30186
LIBQT_GLOB="lib$qtlib-mt.*"
30187
USING_QT_MT="using -mt"
30192
if test $kde_qtver != 1; then
30196
LIBQT="$LIBQT $LIBPNG $LIBJPEG"
30199
if test $kde_qtver = 3; then
30201
LIBQT="$LIBQT $LIBDL"
30204
{ echo "$as_me:$LINENO: checking for Qt" >&5
30205
echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
30207
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30208
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
30210
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
30214
# Check whether --with-qt-dir was given.
30215
if test "${with_qt_dir+set}" = set; then
30216
withval=$with_qt_dir; ac_qt_includes="$withval"/include
30217
ac_qt_libraries="$withval"/lib${kdelibsuff}
30218
ac_qt_bindir="$withval"/bin
30224
# Check whether --with-qt-includes was given.
30225
if test "${with_qt_includes+set}" = set; then
30226
withval=$with_qt_includes;
30227
ac_qt_includes="$withval"
30232
kde_qt_libs_given=no
30235
# Check whether --with-qt-libraries was given.
30236
if test "${with_qt_libraries+set}" = set; then
30237
withval=$with_qt_libraries; ac_qt_libraries="$withval"
30238
kde_qt_libs_given=yes
30243
if test "${ac_cv_have_qt+set}" = set; then
30244
echo $ECHO_N "(cached) $ECHO_C" >&6
30246
#try to guess Qt locations
30249
for dir in $kde_qt_dirs; do
30250
qt_incdirs="$qt_incdirs $dir/include $dir"
30252
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
30253
if test ! "$ac_qt_includes" = "NO"; then
30254
qt_incdirs="$ac_qt_includes $qt_incdirs"
30257
if test "$kde_qtver" != "1"; then
30258
kde_qt_header=qstyle.h
30260
kde_qt_header=qglobal.h
30265
for i in $qt_incdirs;
30267
for j in $kde_qt_header;
30269
echo "configure: 30269: $i/$j" >&5
30270
if test -r "$i/$j"; then
30271
echo "taking that" >&5
30278
ac_qt_includes="$qt_incdir"
30281
for dir in $kde_qt_dirs; do
30282
qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
30284
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
30285
if test ! "$ac_qt_libraries" = "NO"; then
30286
qt_libdir=$ac_qt_libraries
30288
qt_libdirs="$ac_qt_libraries $qt_libdirs"
30289
# if the Qt was given, the chance is too big that libqt.* doesn't exist
30291
for dir in $qt_libdirs; do
30292
try="ls -1 $dir/${LIBQT_GLOB}"
30293
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
30296
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30297
if test -e "$a"; then
30298
LIBQT="$LIBQT ${kde_int_qt}_incremental"
30303
ac_qt_libraries="$qt_libdir"
30307
ac_cpp='$CXXCPP $CPPFLAGS'
30308
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30309
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30310
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30312
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30316
ac_cxxflags_safe="$CXXFLAGS"
30317
ac_ldflags_safe="$LDFLAGS"
30318
ac_libs_safe="$LIBS"
30320
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
30321
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
30322
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
30326
cat > conftest.$ac_ext <<EOF
30327
#include "confdefs.h"
30328
#include <qglobal.h>
30329
#include <qapplication.h>
30331
if test "$kde_qtver" = "2"; then
30332
cat >> conftest.$ac_ext <<EOF
30333
#include <qevent.h>
30334
#include <qstring.h>
30335
#include <qstyle.h>
30338
if test $kde_qtsubver -gt 0; then
30339
cat >> conftest.$ac_ext <<EOF
30340
#if QT_VERSION < 210
30347
if test "$kde_qtver" = "3"; then
30348
cat >> conftest.$ac_ext <<EOF
30349
#include <qcursor.h>
30350
#include <qstylefactory.h>
30351
#include <private/qucomextra_p.h>
30355
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30356
cat >> conftest.$ac_ext <<EOF
30362
if test "$kde_qtver" = "2"; then
30363
cat >> conftest.$ac_ext <<EOF
30364
QStringList *t = new QStringList();
30367
if test $kde_qtsubver -gt 0; then
30368
cat >> conftest.$ac_ext <<EOF
30370
s.setLatin1("Elvis is alive", 14);
30374
if test "$kde_qtver" = "3"; then
30375
cat >> conftest.$ac_ext <<EOF
30376
(void)QStyleFactory::create(QString::null);
30377
QCursor c(Qt::WhatsThisCursor);
30380
cat >> conftest.$ac_ext <<EOF
30386
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30387
(eval $ac_link) 2>&5
30389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390
(exit $ac_status); } && test -s conftest; then
30393
echo "configure: failed program was:" >&5
30394
cat conftest.$ac_ext >&5
30395
ac_qt_libraries="NO"
30398
CXXFLAGS="$ac_cxxflags_safe"
30399
LDFLAGS="$ac_ldflags_safe"
30400
LIBS="$ac_libs_safe"
30403
ac_cpp='$CPP $CPPFLAGS'
30404
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30405
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30406
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30408
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
30409
ac_cv_have_qt="have_qt=no"
30412
if test "$ac_qt_includes" = NO; then
30413
if test "$ac_qt_libraries" = NO; then
30414
ac_qt_notfound="(headers and libraries)";
30416
ac_qt_notfound="(headers)";
30419
if test "x$kde_use_qt_mt" = "xyes"; then
30421
Make sure that you have compiled Qt with thread support!"
30422
ac_qt_notfound="(library $qtlib-mt)";
30424
ac_qt_notfound="(library $qtlib)";
30428
{ { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30429
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
30430
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30431
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
30432
{ (exit 1); exit 1; }; }
30440
eval "$ac_cv_have_qt"
30442
if test "$have_qt" != yes; then
30443
{ echo "$as_me:$LINENO: result: $have_qt" >&5
30444
echo "${ECHO_T}$have_qt" >&6; };
30446
ac_cv_have_qt="have_qt=yes \
30447
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
30448
{ echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
30449
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
30451
qt_libraries="$ac_qt_libraries"
30452
qt_includes="$ac_qt_includes"
30455
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
30458
{ echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
30459
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6; }
30460
if test "${kde_cv_qt_direct+set}" = set; then
30461
echo $ECHO_N "(cached) $ECHO_C" >&6
30466
ac_cpp='$CXXCPP $CPPFLAGS'
30467
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30468
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30469
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30471
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30474
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
30475
ac_LIBRARY_PATH="$LIBRARY_PATH"
30476
ac_cxxflags_safe="$CXXFLAGS"
30477
ac_ldflags_safe="$LDFLAGS"
30478
ac_libs_safe="$LIBS"
30480
CXXFLAGS="$CXXFLAGS -I$qt_includes"
30481
LDFLAGS="$LDFLAGS $X_LDFLAGS"
30482
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30483
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
30485
LIBS="$LIBQT $LIBSOCKET"
30488
export LD_LIBRARY_PATH
30490
export LIBRARY_PATH
30494
cat > conftest.$ac_ext <<EOF
30495
#include "confdefs.h"
30496
#include <qglobal.h>
30497
#include <qapplication.h>
30499
if test "$kde_qtver" = "2"; then
30500
cat >> conftest.$ac_ext <<EOF
30501
#include <qevent.h>
30502
#include <qstring.h>
30503
#include <qstyle.h>
30506
if test $kde_qtsubver -gt 0; then
30507
cat >> conftest.$ac_ext <<EOF
30508
#if QT_VERSION < 210
30515
if test "$kde_qtver" = "3"; then
30516
cat >> conftest.$ac_ext <<EOF
30517
#include <qcursor.h>
30518
#include <qstylefactory.h>
30519
#include <private/qucomextra_p.h>
30523
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30524
cat >> conftest.$ac_ext <<EOF
30530
if test "$kde_qtver" = "2"; then
30531
cat >> conftest.$ac_ext <<EOF
30532
QStringList *t = new QStringList();
30535
if test $kde_qtsubver -gt 0; then
30536
cat >> conftest.$ac_ext <<EOF
30538
s.setLatin1("Elvis is alive", 14);
30542
if test "$kde_qtver" = "3"; then
30543
cat >> conftest.$ac_ext <<EOF
30544
(void)QStyleFactory::create(QString::null);
30545
QCursor c(Qt::WhatsThisCursor);
30548
cat >> conftest.$ac_ext <<EOF
30554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30555
(eval $ac_link) 2>&5
30557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558
(exit $ac_status); } && test -s conftest; then
30559
kde_cv_qt_direct="yes"
30561
kde_cv_qt_direct="no"
30562
echo "configure: failed program was:" >&5
30563
cat conftest.$ac_ext >&5
30567
CXXFLAGS="$ac_cxxflags_safe"
30568
LDFLAGS="$ac_ldflags_safe"
30569
LIBS="$ac_libs_safe"
30571
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
30572
export LD_LIBRARY_PATH
30573
LIBRARY_PATH="$ac_LIBRARY_PATH"
30574
export LIBRARY_PATH
30576
ac_cpp='$CPP $CPPFLAGS'
30577
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30578
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30579
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30585
if test "$kde_cv_qt_direct" = "yes"; then
30586
{ echo "$as_me:$LINENO: result: yes" >&5
30587
echo "${ECHO_T}yes" >&6; }
30590
{ echo "$as_me:$LINENO: result: no" >&5
30591
echo "${ECHO_T}no" >&6; }
30600
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
30603
QT_INCLUDES="-I$qt_includes"
30604
all_includes="$QT_INCLUDES $all_includes"
30607
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
30610
QT_LDFLAGS="-L$qt_libraries"
30611
all_libraries="$QT_LDFLAGS $all_libraries"
30613
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
30620
for dir in $kde_qt_dirs; do
30621
qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
30623
qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
30624
if test ! "$ac_qt_bindir" = "NO"; then
30625
qt_bindirs="$ac_qt_bindir $qt_bindirs"
30629
{ echo "$as_me:$LINENO: checking for moc" >&5
30630
echo $ECHO_N "checking for moc... $ECHO_C" >&6; }
30631
if test -n "$MOC"; then
30632
kde_cv_path="$MOC";
30634
kde_cache=`echo moc | sed 'y%./+-%__p_%'`
30636
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30637
echo $ECHO_N "(cached) $ECHO_C" >&6
30644
for dir in $PATH; do
30647
if test -z ""; then dirs="$qt_bindirs $dirs"
30648
else dirs="$dirs $qt_bindirs"
30652
for dir in $dirs; do
30653
if test -x "$dir/moc"; then
30656
evalstr="$dir/moc 2>&1 "
30657
if eval $evalstr; then
30658
kde_cv_path="$dir/moc"
30662
kde_cv_path="$dir/moc"
30668
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30674
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30678
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30679
{ echo "$as_me:$LINENO: result: not found" >&5
30680
echo "${ECHO_T}not found" >&6; }
30682
{ { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
30683
Please check whether you installed Qt correctly.
30684
You need to have a running moc binary.
30685
configure tried to run $ac_cv_path_moc and the test didn't
30686
succeed. If configure shouldn't have tried this one, set
30687
the environment variable MOC to the right one before running
30690
echo "$as_me: error: No Qt meta object compiler (moc) found!
30691
Please check whether you installed Qt correctly.
30692
You need to have a running moc binary.
30693
configure tried to run $ac_cv_path_moc and the test didn't
30694
succeed. If configure shouldn't have tried this one, set
30695
the environment variable MOC to the right one before running
30698
{ (exit 1); exit 1; }; }
30701
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30702
echo "${ECHO_T}$kde_cv_path" >&6; }
30707
if test -z "$UIC_NOT_NEEDED"; then
30709
{ echo "$as_me:$LINENO: checking for uic" >&5
30710
echo $ECHO_N "checking for uic... $ECHO_C" >&6; }
30711
if test -n "$UIC_PATH"; then
30712
kde_cv_path="$UIC_PATH";
30714
kde_cache=`echo uic | sed 'y%./+-%__p_%'`
30716
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30717
echo $ECHO_N "(cached) $ECHO_C" >&6
30724
for dir in $PATH; do
30727
if test -z ""; then dirs="$qt_bindirs $dirs"
30728
else dirs="$dirs $qt_bindirs"
30732
for dir in $dirs; do
30733
if test -x "$dir/uic"; then
30736
evalstr="$dir/uic 2>&1 "
30737
if eval $evalstr; then
30738
kde_cv_path="$dir/uic"
30742
kde_cv_path="$dir/uic"
30748
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30754
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30758
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30759
{ echo "$as_me:$LINENO: result: not found" >&5
30760
echo "${ECHO_T}not found" >&6; }
30763
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30764
echo "${ECHO_T}$kde_cv_path" >&6; }
30765
UIC_PATH=$kde_cv_path
30769
if test -z "$UIC_PATH" ; then
30771
{ echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
30772
Please check whether you installed Qt correctly.
30773
You need to have a running uic binary.
30774
configure tried to run $ac_cv_path_uic and the test didn't
30775
succeed. If configure shouldn't have tried this one, set
30776
the environment variable UIC to the right one before running
30779
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
30780
Please check whether you installed Qt correctly.
30781
You need to have a running uic binary.
30782
configure tried to run $ac_cv_path_uic and the test didn't
30783
succeed. If configure shouldn't have tried this one, set
30784
the environment variable UIC to the right one before running
30792
if test $kde_qtver = 3; then
30794
{ echo "$as_me:$LINENO: checking whether uic supports -L " >&5
30795
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6; }
30796
kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
30797
if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30798
echo $ECHO_N "(cached) $ECHO_C" >&6
30801
cat >conftest.ui <<EOT
30802
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30804
ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
30805
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30806
(eval $ac_uic_testrun) 2>&5
30808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809
(exit $ac_status); }; then
30810
eval "kde_cv_prog_uic_$kde_cache=yes"
30812
eval "kde_cv_prog_uic_$kde_cache=no"
30819
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30820
{ echo "$as_me:$LINENO: result: yes" >&5
30821
echo "${ECHO_T}yes" >&6; }
30823
ac_uic_supports_libpath=yes
30825
{ echo "$as_me:$LINENO: result: no" >&5
30826
echo "${ECHO_T}no" >&6; }
30828
ac_uic_supports_libpath=no
30832
{ echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
30833
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6; }
30834
kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
30835
if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30836
echo $ECHO_N "(cached) $ECHO_C" >&6
30839
cat >conftest.ui <<EOT
30840
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30842
ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null"
30843
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30844
(eval $ac_uic_testrun) 2>&5
30846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847
(exit $ac_status); }; then
30848
eval "kde_cv_prog_uic_$kde_cache=yes"
30850
eval "kde_cv_prog_uic_$kde_cache=no"
30857
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30858
{ echo "$as_me:$LINENO: result: yes" >&5
30859
echo "${ECHO_T}yes" >&6; }
30861
ac_uic_supports_nounload=yes
30863
{ echo "$as_me:$LINENO: result: no" >&5
30864
echo "${ECHO_T}no" >&6; }
30866
ac_uic_supports_nounload=no
30870
if test x$ac_uic_supports_libpath = xyes; then
30871
UIC="$UIC -L \$(kde_widgetdir)"
30873
if test x$ac_uic_supports_nounload = xyes; then
30874
UIC="$UIC -nounload"
30879
UIC="echo uic not available: "
30886
if test $kde_qtver = 3; then
30894
if test -n "$LIBJPEG"; then
30895
{ echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
30896
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6; }
30897
if test "${kde_cv_qt_jpeg+set}" = set; then
30898
echo $ECHO_N "(cached) $ECHO_C" >&6
30903
ac_cpp='$CXXCPP $CPPFLAGS'
30904
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30905
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30906
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30908
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30911
ac_save_LIBS="$LIBS"
30912
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
30913
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
30914
ac_save_CXXFLAGS="$CXXFLAGS"
30915
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
30916
cat >conftest.$ac_ext <<_ACEOF
30919
cat confdefs.h >>conftest.$ac_ext
30920
cat >>conftest.$ac_ext <<_ACEOF
30921
/* end confdefs.h. */
30922
#include <qapplication.h>
30929
QApplication app(argc, argv);
30934
rm -f conftest.$ac_objext conftest$ac_exeext
30935
if { (ac_try="$ac_link"
30936
case "(($ac_try" in
30937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938
*) ac_try_echo=$ac_try;;
30940
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941
(eval "$ac_link") 2>conftest.er1
30943
grep -v '^ *+' conftest.er1 >conftest.err
30945
cat conftest.err >&5
30946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947
(exit $ac_status); } && {
30948
test -z "$ac_cxx_werror_flag" ||
30949
test ! -s conftest.err
30950
} && test -s conftest$ac_exeext &&
30951
$as_test_x conftest$ac_exeext; then
30952
eval "kde_cv_qt_jpeg=no"
30954
echo "$as_me: failed program was:" >&5
30955
sed 's/^/| /' conftest.$ac_ext >&5
30957
eval "kde_cv_qt_jpeg=yes"
30960
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30961
conftest$ac_exeext conftest.$ac_ext
30962
LIBS="$ac_save_LIBS"
30963
CXXFLAGS="$ac_save_CXXFLAGS"
30965
ac_cpp='$CPP $CPPFLAGS'
30966
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30967
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30968
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30975
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
30976
{ echo "$as_me:$LINENO: result: yes" >&5
30977
echo "${ECHO_T}yes" >&6; }
30978
LIBJPEG_QT='$(LIBJPEG)'
30980
{ echo "$as_me:$LINENO: result: no" >&5
30981
echo "${ECHO_T}no" >&6; }
30987
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30988
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
30990
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
30992
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
30993
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30994
if test -e "$a"; then
30995
LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
31012
{ echo "$as_me:$LINENO: checking for rpath" >&5
31013
echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
31014
# Check whether --enable-rpath was given.
31015
if test "${enable_rpath+set}" = set; then
31016
enableval=$enable_rpath; USE_RPATH=$enableval
31022
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
31024
KDE_RPATH="-R \$(libdir)"
31026
if test "$kde_libraries" != "$libdir"; then
31027
KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
31030
if test -n "$qt_libraries"; then
31031
KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
31033
if test -n "$X_LDFLAGS"; then
31034
X_RPATH="-R \$(x_libraries)"
31035
KDE_RPATH="$KDE_RPATH $X_RPATH"
31037
if test -n "$KDE_EXTRA_RPATH"; then
31038
KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
31044
{ echo "$as_me:$LINENO: result: $USE_RPATH" >&5
31045
echo "${ECHO_T}$USE_RPATH" >&6; }
31047
{ echo "$as_me:$LINENO: checking for KDE" >&5
31048
echo $ECHO_N "checking for KDE... $ECHO_C" >&6; }
31050
if test "${prefix}" != NONE; then
31051
kde_includes=${includedir}
31054
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31056
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
31060
kde_libraries=${libdir}
31063
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31065
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
31076
if test "${ac_cv_have_kde+set}" = set; then
31077
echo $ECHO_N "(cached) $ECHO_C" >&6
31079
#try to guess kde locations
31081
if test "$kde_qtver" = 1; then
31082
kde_check_header="ksock.h"
31083
kde_check_lib="libkdecore.la"
31085
kde_check_header="ksharedptr.h"
31086
kde_check_lib="libkio.la"
31089
if test -z ""; then
31091
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
31092
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
31093
kde_incdirs="$ac_kde_includes $kde_incdirs"
31096
for i in $kde_incdirs;
31098
for j in $kde_check_header;
31100
echo "configure: 31100: $i/$j" >&5
31101
if test -r "$i/$j"; then
31102
echo "taking that" >&5
31109
ac_kde_includes="$kde_incdir"
31111
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
31112
{ { echo "$as_me:$LINENO: error:
31113
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31114
So, check this please and use another prefix!" >&5
31115
echo "$as_me: error:
31116
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31117
So, check this please and use another prefix!" >&2;}
31118
{ (exit 1); exit 1; }; }
31121
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
31122
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
31123
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
31126
for i in $kde_libdirs;
31128
for j in $kde_check_lib;
31130
echo "configure: 31130: $i/$j" >&5
31131
if test -r "$i/$j"; then
31132
echo "taking that" >&5
31139
ac_kde_libraries="$kde_libdir"
31144
for i in $kde_libdirs;
31146
for j in "kde3/plugins/designer/kdewidgets.la";
31148
echo "configure: 31148: $i/$j" >&5
31149
if test -r "$i/$j"; then
31150
echo "taking that" >&5
31158
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
31159
{ { echo "$as_me:$LINENO: error:
31160
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31161
So, check this please and use another prefix!" >&5
31162
echo "$as_me: error:
31163
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31164
So, check this please and use another prefix!" >&2;}
31165
{ (exit 1); exit 1; }; }
31168
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
31169
{ { echo "$as_me:$LINENO: error:
31170
I can't find the designer plugins. These are required and should have been installed
31172
echo "$as_me: error:
31173
I can't find the designer plugins. These are required and should have been installed
31175
{ (exit 1); exit 1; }; }
31178
if test -n "$kde_widgetdir"; then
31179
kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
31183
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
31184
ac_cv_have_kde="have_kde=no"
31186
ac_cv_have_kde="have_kde=yes \
31187
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
31191
ac_cv_have_kde="have_kde=no"
31197
eval "$ac_cv_have_kde"
31199
if test "$have_kde" != "yes"; then
31200
if test "${prefix}" = NONE; then
31201
ac_kde_prefix="$ac_default_prefix"
31203
ac_kde_prefix="$prefix"
31205
if test "$exec_prefix" = NONE; then
31206
ac_kde_exec_prefix="$ac_kde_prefix"
31207
{ echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
31208
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6; }
31210
ac_kde_exec_prefix="$exec_prefix"
31211
{ echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
31212
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
31215
kde_libraries="${libdir}"
31216
kde_includes="${includedir}"
31219
ac_cv_have_kde="have_kde=yes \
31220
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
31221
{ echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
31222
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
31224
kde_libraries="$ac_kde_libraries"
31225
kde_includes="$ac_kde_includes"
31230
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
31233
KDE_INCLUDES="-I$kde_includes"
31234
all_includes="$KDE_INCLUDES $all_includes"
31237
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
31239
KDE_LDFLAGS="-L$kde_libraries"
31240
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
31241
all_libraries="$KDE_LDFLAGS $all_libraries"
31249
all_libraries="$all_libraries $USER_LDFLAGS"
31250
all_includes="$all_includes $USER_INCLUDES"
31254
if test -z ""; then
31258
if test x$ac_uic_supports_libpath = xyes; then
31260
{ echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
31261
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6; }
31262
if test "${kde_cv_uic_plugins+set}" = set; then
31263
echo $ECHO_N "(cached) $ECHO_C" >&6
31266
cat > actest.ui << EOF
31267
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
31268
<class>NewConnectionDialog</class>
31269
<widget class="QDialog">
31270
<widget class="KLineEdit">
31271
<property name="name">
31272
<cstring>testInput</cstring>
31281
kde_cv_uic_plugins=no
31282
kde_line="$UIC_PATH -L $kde_widgetdir"
31283
if test x$ac_uic_supports_nounload = xyes; then
31284
kde_line="$kde_line -nounload"
31286
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
31287
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
31288
(eval $kde_line) 2>&5
31290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291
(exit $ac_status); }; then
31292
# if you're trying to debug this check and think it's incorrect,
31293
# better check your installation. The check _is_ correct - your
31294
# installation is not.
31295
if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
31296
kde_cv_uic_plugins=yes
31299
rm -f actest.ui actest.cpp
31304
{ echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
31305
echo "${ECHO_T}$kde_cv_uic_plugins" >&6; }
31306
if test "$kde_cv_uic_plugins" != yes; then
31307
{ { echo "$as_me:$LINENO: error:
31308
you need to install kdelibs first.
31310
If you did install kdelibs, then the Qt version that is picked up by
31311
this configure is not the same version you used to compile kdelibs.
31312
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31313
_same Qt version_, compiled with the _same compiler_ and the same Qt
31314
configuration settings.
31316
echo "$as_me: error:
31317
you need to install kdelibs first.
31319
If you did install kdelibs, then the Qt version that is picked up by
31320
this configure is not the same version you used to compile kdelibs.
31321
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31322
_same Qt version_, compiled with the _same compiler_ and the same Qt
31323
configuration settings.
31325
{ (exit 1); exit 1; }; }
31331
ac_kde_libraries="$kde_libdir"
31337
# Check whether --enable-path-check was given.
31338
if test "${enable_path_check+set}" = set; then
31339
enableval=$enable_path_check;
31340
if test "$enableval" = "no";
31341
then ac_use_path_checking="default"
31342
else ac_use_path_checking=""
31347
if test "$kde_qtver" = 1;
31348
then ac_use_path_checking=""
31349
else ac_use_path_checking="default"
31359
{ echo "$as_me:$LINENO: checking for KDE paths" >&5
31360
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6; }
31362
kde_cached_paths=yes
31363
if test "${kde_cv_all_paths+set}" = set; then
31364
echo $ECHO_N "(cached) $ECHO_C" >&6
31368
if test "$ac_use_path_checking" = "default"; then
31370
if test -z "$kde_htmldir"; then
31371
kde_htmldir='\${datadir}/doc/HTML'
31373
if test -z "$kde_appsdir"; then
31374
kde_appsdir='\${datadir}/applnk'
31376
if test -z "$kde_icondir"; then
31377
kde_icondir='\${datadir}/icons'
31379
if test -z "$kde_sounddir"; then
31380
kde_sounddir='\${datadir}/sounds'
31382
if test -z "$kde_datadir"; then
31383
kde_datadir='\${datadir}/apps'
31385
if test -z "$kde_locale"; then
31386
kde_locale='\${datadir}/locale'
31388
if test -z "$kde_cgidir"; then
31389
kde_cgidir='\${exec_prefix}/cgi-bin'
31391
if test -z "$kde_confdir"; then
31392
kde_confdir='\${datadir}/config'
31394
if test -z "$kde_kcfgdir"; then
31395
kde_kcfgdir='\${datadir}/config.kcfg'
31397
if test -z "$kde_mimedir"; then
31398
kde_mimedir='\${datadir}/mimelnk'
31400
if test -z "$kde_toolbardir"; then
31401
kde_toolbardir='\${datadir}/toolbar'
31403
if test -z "$kde_wallpaperdir"; then
31404
kde_wallpaperdir='\${datadir}/wallpapers'
31406
if test -z "$kde_templatesdir"; then
31407
kde_templatesdir='\${datadir}/templates'
31409
if test -z "$kde_bindir"; then
31410
kde_bindir='\${exec_prefix}/bin'
31412
if test -z "$kde_servicesdir"; then
31413
kde_servicesdir='\${datadir}/services'
31415
if test -z "$kde_servicetypesdir"; then
31416
kde_servicetypesdir='\${datadir}/servicetypes'
31418
if test -z "$kde_moduledir"; then
31419
if test "$kde_qtver" = "2"; then
31420
kde_moduledir='\${libdir}/kde2'
31422
kde_moduledir='\${libdir}/kde3'
31425
if test -z "$kde_styledir"; then
31426
kde_styledir='\${libdir}/kde3/plugins/styles'
31428
if test -z "$kde_widgetdir"; then
31429
kde_widgetdir='\${libdir}/kde3/plugins/designer'
31431
if test -z "$xdg_appsdir"; then
31432
xdg_appsdir='\${datadir}/applications/kde'
31434
if test -z "$xdg_menudir"; then
31435
xdg_menudir='\${sysconfdir}/xdg/menus'
31437
if test -z "$xdg_directorydir"; then
31438
xdg_directorydir='\${datadir}/desktop-directories'
31442
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31443
kde_htmldir=\"$kde_htmldir\" \
31444
kde_appsdir=\"$kde_appsdir\" \
31445
kde_icondir=\"$kde_icondir\" \
31446
kde_sounddir=\"$kde_sounddir\" \
31447
kde_datadir=\"$kde_datadir\" \
31448
kde_locale=\"$kde_locale\" \
31449
kde_cgidir=\"$kde_cgidir\" \
31450
kde_confdir=\"$kde_confdir\" \
31451
kde_kcfgdir=\"$kde_kcfgdir\" \
31452
kde_mimedir=\"$kde_mimedir\" \
31453
kde_toolbardir=\"$kde_toolbardir\" \
31454
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31455
kde_templatesdir=\"$kde_templatesdir\" \
31456
kde_bindir=\"$kde_bindir\" \
31457
kde_servicesdir=\"$kde_servicesdir\" \
31458
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31459
kde_moduledir=\"$kde_moduledir\" \
31460
kde_styledir=\"$kde_styledir\" \
31461
kde_widgetdir=\"$kde_widgetdir\" \
31462
xdg_appsdir=\"$xdg_appsdir\" \
31463
xdg_menudir=\"$xdg_menudir\" \
31464
xdg_directorydir=\"$xdg_directorydir\" \
31465
kde_result=defaults"
31470
if test $kde_qtver = 1; then
31471
{ echo "$as_me:$LINENO: result: compiling" >&5
31472
echo "${ECHO_T}compiling" >&6; }
31475
{ echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31476
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31479
ac_cpp='$CXXCPP $CPPFLAGS'
31480
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31481
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31482
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31484
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31487
cat > conftest.$ac_ext <<EOF
31488
#ifdef STDC_HEADERS
31489
# include <stdlib.h>
31492
#include "confdefs.h"
31496
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31497
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31498
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31499
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31500
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31501
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31502
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31503
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31504
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31505
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31506
printf("kde_wallpaperdir=\\"%s\\"\n",
31507
KApplication::kde_wallpaperdir().data());
31508
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31509
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31510
printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31511
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31512
printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31513
printf("kde_styledir=\\"/tmp/dummy\\"\n");
31514
printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31515
printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31516
printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31517
printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31518
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31523
ac_save_CPPFLAGS=$CPPFLAGS
31524
CPPFLAGS="$all_includes $CPPFLAGS"
31525
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31526
(eval $ac_compile) 2>&5
31528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529
(exit $ac_status); }; then
31530
{ echo "$as_me:$LINENO: result: yes" >&5
31531
echo "${ECHO_T}yes" >&6; }
31533
{ { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31534
Check, if you installed the KDE header files correctly.
31535
For more details about this problem, look at the end of config.log." >&5
31536
echo "$as_me: error: your system is not able to compile a small KDE application!
31537
Check, if you installed the KDE header files correctly.
31538
For more details about this problem, look at the end of config.log." >&2;}
31539
{ (exit 1); exit 1; }; }
31541
CPPFLAGS=$ac_save_CPPFLAGS
31544
ac_cpp='$CPP $CPPFLAGS'
31545
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31546
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31547
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31553
if test -n "$USE_RPATH"; then
31555
if test -n "$kde_libraries"; then
31556
KDE_TEST_RPATH="-R $kde_libraries"
31559
if test -n "$qt_libraries"; then
31560
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31563
if test -n "$x_libraries"; then
31564
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31567
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31570
{ echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31571
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31572
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31575
(eval $ac_link) 2>&5
31577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578
(exit $ac_status); } && test -s conftest; then
31579
{ echo "$as_me:$LINENO: result: yes" >&5
31580
echo "${ECHO_T}yes" >&6; }
31582
{ { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31583
Check, if your compiler is installed correctly and if you have used the
31584
same compiler to compile Qt and kdelibs as you did use now.
31585
For more details about this problem, look at the end of config.log." >&5
31586
echo "$as_me: error: your system fails at linking a small KDE application!
31587
Check, if your compiler is installed correctly and if you have used the
31588
same compiler to compile Qt and kdelibs as you did use now.
31589
For more details about this problem, look at the end of config.log." >&2;}
31590
{ (exit 1); exit 1; }; }
31593
if eval `KDEDIR= ./conftest 2>&5`; then
31596
kde_result=problems
31599
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31600
kde_have_all_paths=yes
31603
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31604
kde_htmldir=\"$kde_htmldir\" \
31605
kde_appsdir=\"$kde_appsdir\" \
31606
kde_icondir=\"$kde_icondir\" \
31607
kde_sounddir=\"$kde_sounddir\" \
31608
kde_datadir=\"$kde_datadir\" \
31609
kde_locale=\"$kde_locale\" \
31610
kde_cgidir=\"$kde_cgidir\" \
31611
kde_confdir=\"$kde_confdir\" \
31612
kde_kcfgdir=\"$kde_kcfgdir\" \
31613
kde_mimedir=\"$kde_mimedir\" \
31614
kde_toolbardir=\"$kde_toolbardir\" \
31615
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31616
kde_templatesdir=\"$kde_templatesdir\" \
31617
kde_bindir=\"$kde_bindir\" \
31618
kde_servicesdir=\"$kde_servicesdir\" \
31619
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31620
kde_moduledir=\"$kde_moduledir\" \
31621
kde_styledir=\"$kde_styledir\" \
31622
kde_widgetdir=\"$kde_widgetdir\" \
31623
xdg_appsdir=\"$xdg_appsdir\" \
31624
xdg_menudir=\"$xdg_menudir\" \
31625
xdg_directorydir=\"$xdg_directorydir\" \
31626
kde_result=$kde_result"
31631
{ { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31632
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31633
{ (exit 1); exit 1; }; }
31638
kde_cached_paths=no
31642
eval "$kde_cv_all_paths"
31643
if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31644
test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31645
test -z "$kde_datadir" || test -z "$kde_locale" ||
31646
test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31647
test -z "$kde_kcfgdir" ||
31648
test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31649
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31650
test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31651
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31652
test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31653
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31654
test "x$kde_have_all_paths" != "xyes"; then
31655
kde_have_all_paths=no
31658
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
31659
# wrong values were cached, may be, we can set better ones
31661
kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
31662
kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir=
31663
kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
31664
kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
31665
kde_have_all_paths=
31668
xdg_appsdir = xdg_menudir= xdg_directorydir=
31670
if test "$ac_use_path_checking" = "default"; then
31672
if test -z "$kde_htmldir"; then
31673
kde_htmldir='\${datadir}/doc/HTML'
31675
if test -z "$kde_appsdir"; then
31676
kde_appsdir='\${datadir}/applnk'
31678
if test -z "$kde_icondir"; then
31679
kde_icondir='\${datadir}/icons'
31681
if test -z "$kde_sounddir"; then
31682
kde_sounddir='\${datadir}/sounds'
31684
if test -z "$kde_datadir"; then
31685
kde_datadir='\${datadir}/apps'
31687
if test -z "$kde_locale"; then
31688
kde_locale='\${datadir}/locale'
31690
if test -z "$kde_cgidir"; then
31691
kde_cgidir='\${exec_prefix}/cgi-bin'
31693
if test -z "$kde_confdir"; then
31694
kde_confdir='\${datadir}/config'
31696
if test -z "$kde_kcfgdir"; then
31697
kde_kcfgdir='\${datadir}/config.kcfg'
31699
if test -z "$kde_mimedir"; then
31700
kde_mimedir='\${datadir}/mimelnk'
31702
if test -z "$kde_toolbardir"; then
31703
kde_toolbardir='\${datadir}/toolbar'
31705
if test -z "$kde_wallpaperdir"; then
31706
kde_wallpaperdir='\${datadir}/wallpapers'
31708
if test -z "$kde_templatesdir"; then
31709
kde_templatesdir='\${datadir}/templates'
31711
if test -z "$kde_bindir"; then
31712
kde_bindir='\${exec_prefix}/bin'
31714
if test -z "$kde_servicesdir"; then
31715
kde_servicesdir='\${datadir}/services'
31717
if test -z "$kde_servicetypesdir"; then
31718
kde_servicetypesdir='\${datadir}/servicetypes'
31720
if test -z "$kde_moduledir"; then
31721
if test "$kde_qtver" = "2"; then
31722
kde_moduledir='\${libdir}/kde2'
31724
kde_moduledir='\${libdir}/kde3'
31727
if test -z "$kde_styledir"; then
31728
kde_styledir='\${libdir}/kde3/plugins/styles'
31730
if test -z "$kde_widgetdir"; then
31731
kde_widgetdir='\${libdir}/kde3/plugins/designer'
31733
if test -z "$xdg_appsdir"; then
31734
xdg_appsdir='\${datadir}/applications/kde'
31736
if test -z "$xdg_menudir"; then
31737
xdg_menudir='\${sysconfdir}/xdg/menus'
31739
if test -z "$xdg_directorydir"; then
31740
xdg_directorydir='\${datadir}/desktop-directories'
31744
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31745
kde_htmldir=\"$kde_htmldir\" \
31746
kde_appsdir=\"$kde_appsdir\" \
31747
kde_icondir=\"$kde_icondir\" \
31748
kde_sounddir=\"$kde_sounddir\" \
31749
kde_datadir=\"$kde_datadir\" \
31750
kde_locale=\"$kde_locale\" \
31751
kde_cgidir=\"$kde_cgidir\" \
31752
kde_confdir=\"$kde_confdir\" \
31753
kde_kcfgdir=\"$kde_kcfgdir\" \
31754
kde_mimedir=\"$kde_mimedir\" \
31755
kde_toolbardir=\"$kde_toolbardir\" \
31756
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31757
kde_templatesdir=\"$kde_templatesdir\" \
31758
kde_bindir=\"$kde_bindir\" \
31759
kde_servicesdir=\"$kde_servicesdir\" \
31760
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31761
kde_moduledir=\"$kde_moduledir\" \
31762
kde_styledir=\"$kde_styledir\" \
31763
kde_widgetdir=\"$kde_widgetdir\" \
31764
xdg_appsdir=\"$xdg_appsdir\" \
31765
xdg_menudir=\"$xdg_menudir\" \
31766
xdg_directorydir=\"$xdg_directorydir\" \
31767
kde_result=defaults"
31772
if test $kde_qtver = 1; then
31773
{ echo "$as_me:$LINENO: result: compiling" >&5
31774
echo "${ECHO_T}compiling" >&6; }
31777
{ echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31778
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31781
ac_cpp='$CXXCPP $CPPFLAGS'
31782
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31783
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31784
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31786
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31789
cat > conftest.$ac_ext <<EOF
31790
#ifdef STDC_HEADERS
31791
# include <stdlib.h>
31794
#include "confdefs.h"
31798
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31799
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31800
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31801
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31802
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31803
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31804
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31805
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31806
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31807
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31808
printf("kde_wallpaperdir=\\"%s\\"\n",
31809
KApplication::kde_wallpaperdir().data());
31810
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31811
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31812
printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31813
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31814
printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31815
printf("kde_styledir=\\"/tmp/dummy\\"\n");
31816
printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31817
printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31818
printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31819
printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31820
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31825
ac_save_CPPFLAGS=$CPPFLAGS
31826
CPPFLAGS="$all_includes $CPPFLAGS"
31827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31828
(eval $ac_compile) 2>&5
31830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831
(exit $ac_status); }; then
31832
{ echo "$as_me:$LINENO: result: yes" >&5
31833
echo "${ECHO_T}yes" >&6; }
31835
{ { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31836
Check, if you installed the KDE header files correctly.
31837
For more details about this problem, look at the end of config.log." >&5
31838
echo "$as_me: error: your system is not able to compile a small KDE application!
31839
Check, if you installed the KDE header files correctly.
31840
For more details about this problem, look at the end of config.log." >&2;}
31841
{ (exit 1); exit 1; }; }
31843
CPPFLAGS=$ac_save_CPPFLAGS
31846
ac_cpp='$CPP $CPPFLAGS'
31847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31855
if test -n "$USE_RPATH"; then
31857
if test -n "$kde_libraries"; then
31858
KDE_TEST_RPATH="-R $kde_libraries"
31861
if test -n "$qt_libraries"; then
31862
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31865
if test -n "$x_libraries"; then
31866
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31869
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31872
{ echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31873
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31874
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31876
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31877
(eval $ac_link) 2>&5
31879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880
(exit $ac_status); } && test -s conftest; then
31881
{ echo "$as_me:$LINENO: result: yes" >&5
31882
echo "${ECHO_T}yes" >&6; }
31884
{ { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31885
Check, if your compiler is installed correctly and if you have used the
31886
same compiler to compile Qt and kdelibs as you did use now.
31887
For more details about this problem, look at the end of config.log." >&5
31888
echo "$as_me: error: your system fails at linking a small KDE application!
31889
Check, if your compiler is installed correctly and if you have used the
31890
same compiler to compile Qt and kdelibs as you did use now.
31891
For more details about this problem, look at the end of config.log." >&2;}
31892
{ (exit 1); exit 1; }; }
31895
if eval `KDEDIR= ./conftest 2>&5`; then
31898
kde_result=problems
31901
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31902
kde_have_all_paths=yes
31905
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31906
kde_htmldir=\"$kde_htmldir\" \
31907
kde_appsdir=\"$kde_appsdir\" \
31908
kde_icondir=\"$kde_icondir\" \
31909
kde_sounddir=\"$kde_sounddir\" \
31910
kde_datadir=\"$kde_datadir\" \
31911
kde_locale=\"$kde_locale\" \
31912
kde_cgidir=\"$kde_cgidir\" \
31913
kde_confdir=\"$kde_confdir\" \
31914
kde_kcfgdir=\"$kde_kcfgdir\" \
31915
kde_mimedir=\"$kde_mimedir\" \
31916
kde_toolbardir=\"$kde_toolbardir\" \
31917
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31918
kde_templatesdir=\"$kde_templatesdir\" \
31919
kde_bindir=\"$kde_bindir\" \
31920
kde_servicesdir=\"$kde_servicesdir\" \
31921
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31922
kde_moduledir=\"$kde_moduledir\" \
31923
kde_styledir=\"$kde_styledir\" \
31924
kde_widgetdir=\"$kde_widgetdir\" \
31925
xdg_appsdir=\"$xdg_appsdir\" \
31926
xdg_menudir=\"$xdg_menudir\" \
31927
xdg_directorydir=\"$xdg_directorydir\" \
31928
kde_result=$kde_result"
31933
{ { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31934
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31935
{ (exit 1); exit 1; }; }
31940
eval "$kde_cv_all_paths"
31941
if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31942
test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31943
test -z "$kde_datadir" || test -z "$kde_locale" ||
31944
test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31945
test -z "$kde_kcfgdir" ||
31946
test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31947
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31948
test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31949
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31950
test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31951
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31952
test "x$kde_have_all_paths" != "xyes"; then
31953
kde_have_all_paths=no
31956
kde_result="$kde_result (cache overridden)"
31958
if test "$kde_have_all_paths" = "no"; then
31959
{ { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
31960
Since it had compiled and linked before, it must be a strange problem on your system.
31961
Look at config.log for details. If you are not able to fix this, look at
31962
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31963
(If you're using an egcs version on Linux, you may update binutils!)
31965
echo "$as_me: error: configure could not run a little KDE program to test the environment.
31966
Since it had compiled and linked before, it must be a strange problem on your system.
31967
Look at config.log for details. If you are not able to fix this, look at
31968
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31969
(If you're using an egcs version on Linux, you may update binutils!)
31971
{ (exit 1); exit 1; }; }
31974
{ echo "$as_me:$LINENO: result: $kde_result" >&5
31975
echo "${ECHO_T}$kde_result" >&6; }
31982
# Check whether --with-arts was given.
31983
if test "${with_arts+set}" = set; then
31984
withval=$with_arts; build_arts=$withval
31992
if test "$build_arts" '!=' "no"; then
31994
include_ARTS_FALSE='#'
31996
include_ARTS_TRUE='#'
31997
include_ARTS_FALSE=
32000
if test "$build_arts" = "no"; then
32002
cat >>confdefs.h <<\_ACEOF
32003
#define WITHOUT_ARTS 1
32009
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
32010
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
32011
if test -n "$KDEDIRS"; then
32014
for dir in $KDEDIRS; do
32015
kde_default_bindirs="$dir/bin $kde_default_bindirs "
32020
kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
32022
{ echo "$as_me:$LINENO: checking for dcopidl" >&5
32023
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6; }
32024
if test -n "$DCOPIDL"; then
32025
kde_cv_path="$DCOPIDL";
32027
kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
32029
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32030
echo $ECHO_N "(cached) $ECHO_C" >&6
32037
for dir in $PATH; do
32040
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32041
else dirs="$dirs $kde_default_bindirs"
32045
for dir in $dirs; do
32046
if test -x "$dir/dcopidl"; then
32049
evalstr="$dir/dcopidl 2>&1 "
32050
if eval $evalstr; then
32051
kde_cv_path="$dir/dcopidl"
32055
kde_cv_path="$dir/dcopidl"
32061
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32067
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32071
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32072
{ echo "$as_me:$LINENO: result: not found" >&5
32073
echo "${ECHO_T}not found" >&6; }
32075
{ { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
32076
Please check whether you installed KDE correctly.
32078
echo "$as_me: error: The important program dcopidl was not found!
32079
Please check whether you installed KDE correctly.
32081
{ (exit 1); exit 1; }; }
32084
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32085
echo "${ECHO_T}$kde_cv_path" >&6; }
32086
DCOPIDL=$kde_cv_path
32091
{ echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
32092
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6; }
32093
if test -n "$DCOPIDL2CPP"; then
32094
kde_cv_path="$DCOPIDL2CPP";
32096
kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
32098
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32099
echo $ECHO_N "(cached) $ECHO_C" >&6
32106
for dir in $PATH; do
32109
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32110
else dirs="$dirs $kde_default_bindirs"
32114
for dir in $dirs; do
32115
if test -x "$dir/dcopidl2cpp"; then
32118
evalstr="$dir/dcopidl2cpp 2>&1 "
32119
if eval $evalstr; then
32120
kde_cv_path="$dir/dcopidl2cpp"
32124
kde_cv_path="$dir/dcopidl2cpp"
32130
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32136
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32140
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32141
{ echo "$as_me:$LINENO: result: not found" >&5
32142
echo "${ECHO_T}not found" >&6; }
32144
{ { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
32145
Please check whether you installed KDE correctly.
32147
echo "$as_me: error: The important program dcopidl2cpp was not found!
32148
Please check whether you installed KDE correctly.
32150
{ (exit 1); exit 1; }; }
32153
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32154
echo "${ECHO_T}$kde_cv_path" >&6; }
32155
DCOPIDL2CPP=$kde_cv_path
32159
if test "$build_arts" '!=' "no"; then
32161
{ echo "$as_me:$LINENO: checking for mcopidl" >&5
32162
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6; }
32163
if test -n "$MCOPIDL"; then
32164
kde_cv_path="$MCOPIDL";
32166
kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
32168
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32169
echo $ECHO_N "(cached) $ECHO_C" >&6
32176
for dir in $PATH; do
32179
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32180
else dirs="$dirs $kde_default_bindirs"
32184
for dir in $dirs; do
32185
if test -x "$dir/mcopidl"; then
32188
evalstr="$dir/mcopidl 2>&1 "
32189
if eval $evalstr; then
32190
kde_cv_path="$dir/mcopidl"
32194
kde_cv_path="$dir/mcopidl"
32200
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32206
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32210
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32211
{ echo "$as_me:$LINENO: result: not found" >&5
32212
echo "${ECHO_T}not found" >&6; }
32214
{ { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
32215
Please check whether you installed aRts correctly or use
32216
--without-arts to compile without aRts support (this will remove functionality).
32218
echo "$as_me: error: The important program mcopidl was not found!
32219
Please check whether you installed aRts correctly or use
32220
--without-arts to compile without aRts support (this will remove functionality).
32222
{ (exit 1); exit 1; }; }
32225
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32226
echo "${ECHO_T}$kde_cv_path" >&6; }
32227
MCOPIDL=$kde_cv_path
32232
{ echo "$as_me:$LINENO: checking for artsc-config" >&5
32233
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6; }
32234
if test -n "$ARTSCCONFIG"; then
32235
kde_cv_path="$ARTSCCONFIG";
32237
kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
32239
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32240
echo $ECHO_N "(cached) $ECHO_C" >&6
32247
for dir in $PATH; do
32250
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32251
else dirs="$dirs $kde_default_bindirs"
32255
for dir in $dirs; do
32256
if test -x "$dir/artsc-config"; then
32259
evalstr="$dir/artsc-config 2>&1 "
32260
if eval $evalstr; then
32261
kde_cv_path="$dir/artsc-config"
32265
kde_cv_path="$dir/artsc-config"
32271
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32277
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32281
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32282
{ echo "$as_me:$LINENO: result: not found" >&5
32283
echo "${ECHO_T}not found" >&6; }
32285
{ { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
32286
Please check whether you installed aRts correctly or use
32287
--without-arts to compile without aRts support (this will remove functionality).
32289
echo "$as_me: error: The important program artsc-config was not found!
32290
Please check whether you installed aRts correctly or use
32291
--without-arts to compile without aRts support (this will remove functionality).
32293
{ (exit 1); exit 1; }; }
32296
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32297
echo "${ECHO_T}$kde_cv_path" >&6; }
32298
ARTSCCONFIG=$kde_cv_path
32304
{ echo "$as_me:$LINENO: checking for meinproc" >&5
32305
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6; }
32306
if test -n "$MEINPROC"; then
32307
kde_cv_path="$MEINPROC";
32309
kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
32311
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32312
echo $ECHO_N "(cached) $ECHO_C" >&6
32319
for dir in $PATH; do
32322
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32323
else dirs="$dirs $kde_default_bindirs"
32327
for dir in $dirs; do
32328
if test -x "$dir/meinproc"; then
32331
evalstr="$dir/meinproc 2>&1 "
32332
if eval $evalstr; then
32333
kde_cv_path="$dir/meinproc"
32337
kde_cv_path="$dir/meinproc"
32343
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32349
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32353
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32354
{ echo "$as_me:$LINENO: result: not found" >&5
32355
echo "${ECHO_T}not found" >&6; }
32358
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32359
echo "${ECHO_T}$kde_cv_path" >&6; }
32360
MEINPROC=$kde_cv_path
32367
if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
32371
if test "$kde_qtver" = "3"; then
32372
if test "$kde_qtsubver" -le 1; then
32375
if test "$kde_qtsubver" -le 2; then
32378
if test "$KDECONFIG" != "compiled"; then
32379
if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
32386
if test -n "$kde32ornewer"; then
32388
{ echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
32389
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6; }
32390
if test -n "$KCONFIG_COMPILER"; then
32391
kde_cv_path="$KCONFIG_COMPILER";
32393
kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
32395
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32396
echo $ECHO_N "(cached) $ECHO_C" >&6
32403
for dir in $PATH; do
32406
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32407
else dirs="$dirs $kde_default_bindirs"
32411
for dir in $dirs; do
32412
if test -x "$dir/kconfig_compiler"; then
32415
evalstr="$dir/kconfig_compiler 2>&1 "
32416
if eval $evalstr; then
32417
kde_cv_path="$dir/kconfig_compiler"
32421
kde_cv_path="$dir/kconfig_compiler"
32427
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32433
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32437
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32438
{ echo "$as_me:$LINENO: result: not found" >&5
32439
echo "${ECHO_T}not found" >&6; }
32441
{ { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
32442
Please check whether you installed KDE correctly.
32444
echo "$as_me: error: The important program kconfig_compiler was not found!
32445
Please check whether you installed KDE correctly.
32447
{ (exit 1); exit 1; }; }
32450
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32451
echo "${ECHO_T}$kde_cv_path" >&6; }
32452
KCONFIG_COMPILER=$kde_cv_path
32457
{ echo "$as_me:$LINENO: checking for dcopidlng" >&5
32458
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6; }
32459
if test -n "$DCOPIDLNG"; then
32460
kde_cv_path="$DCOPIDLNG";
32462
kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
32464
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32465
echo $ECHO_N "(cached) $ECHO_C" >&6
32472
for dir in $PATH; do
32475
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32476
else dirs="$dirs $kde_default_bindirs"
32480
for dir in $dirs; do
32481
if test -x "$dir/dcopidlng"; then
32484
evalstr="$dir/dcopidlng 2>&1 "
32485
if eval $evalstr; then
32486
kde_cv_path="$dir/dcopidlng"
32490
kde_cv_path="$dir/dcopidlng"
32496
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32502
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32506
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32507
{ echo "$as_me:$LINENO: result: not found" >&5
32508
echo "${ECHO_T}not found" >&6; }
32510
{ { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
32511
Please check whether you installed KDE correctly.
32513
echo "$as_me: error: The important program dcopidlng was not found!
32514
Please check whether you installed KDE correctly.
32516
{ (exit 1); exit 1; }; }
32519
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32520
echo "${ECHO_T}$kde_cv_path" >&6; }
32521
DCOPIDLNG=$kde_cv_path
32526
if test -n "$kde33ornewer"; then
32528
{ echo "$as_me:$LINENO: checking for makekdewidgets" >&5
32529
echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6; }
32530
if test -n "$MAKEKDEWIDGETS"; then
32531
kde_cv_path="$MAKEKDEWIDGETS";
32533
kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
32535
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32536
echo $ECHO_N "(cached) $ECHO_C" >&6
32543
for dir in $PATH; do
32546
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32547
else dirs="$dirs $kde_default_bindirs"
32551
for dir in $dirs; do
32552
if test -x "$dir/makekdewidgets"; then
32555
evalstr="$dir/makekdewidgets 2>&1 "
32556
if eval $evalstr; then
32557
kde_cv_path="$dir/makekdewidgets"
32561
kde_cv_path="$dir/makekdewidgets"
32567
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32573
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32577
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32578
{ echo "$as_me:$LINENO: result: not found" >&5
32579
echo "${ECHO_T}not found" >&6; }
32581
{ { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
32582
Please check whether you installed KDE correctly.
32584
echo "$as_me: error: The important program makekdewidgets was not found!
32585
Please check whether you installed KDE correctly.
32587
{ (exit 1); exit 1; }; }
32590
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32591
echo "${ECHO_T}$kde_cv_path" >&6; }
32592
MAKEKDEWIDGETS=$kde_cv_path
32599
{ echo "$as_me:$LINENO: checking for xmllint" >&5
32600
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6; }
32601
if test -n "$XMLLINT"; then
32602
kde_cv_path="$XMLLINT";
32604
kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
32606
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32607
echo $ECHO_N "(cached) $ECHO_C" >&6
32614
for dir in $PATH; do
32617
if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
32618
else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
32622
for dir in $dirs; do
32623
if test -x "$dir/xmllint"; then
32626
evalstr="$dir/xmllint 2>&1 "
32627
if eval $evalstr; then
32628
kde_cv_path="$dir/xmllint"
32632
kde_cv_path="$dir/xmllint"
32638
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32644
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32648
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32649
{ echo "$as_me:$LINENO: result: not found" >&5
32650
echo "${ECHO_T}not found" >&6; }
32653
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32654
echo "${ECHO_T}$kde_cv_path" >&6; }
32655
XMLLINT=$kde_cv_path
32660
if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
32661
kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
32662
test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
32664
KDE_XSL_STYLESHEET=NO
32665
for i in $kde_sharedirs;
32667
for j in apps/ksgmltools2/customization/kde-chunk.xsl;
32669
echo "configure: 32669: $i/$j" >&5
32670
if test -r "$i/$j"; then
32671
echo "taking that" >&5
32672
KDE_XSL_STYLESHEET=$i
32678
if test "$KDE_XSL_STYLESHEET" = "NO"; then
32679
KDE_XSL_STYLESHEET=""
32681
KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
32685
DCOP_DEPENDENCIES='$(DCOPIDL)'
32686
if test -n "$kde32ornewer"; then
32687
KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
32688
DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
32724
kdeinitdir='$(kde_moduledir)'
32728
if test "$kde_qtver" = 1; then
32729
kde_minidir="$kde_icondir/mini"
32731
# for KDE 1 - this breaks KDE2 apps using minidir, but
32732
# that's the plan ;-/
32733
kde_minidir="/dev/null"
32741
if test $kde_qtver = 3; then
32743
*cygwin*) lib_kded="-lkdeinit_kded" ;;
32748
LIB_KDECORE="-lkdecore"
32750
LIB_KDEUI="-lkdeui"
32762
LIB_KHTML="-lkhtml"
32764
LIB_KSPELL="-lkspell"
32766
LIB_KPARTS="-lkparts"
32768
LIB_KDEPRINT="-lkdeprint"
32770
LIB_KUTILS="-lkutils"
32772
LIB_KDEPIM="-lkdepim"
32774
LIB_KIMPROXY="-lkimproxy"
32776
LIB_KNEWSTUFF="-lknewstuff"
32778
LIB_KDNSSD="-lkdnssd"
32780
LIB_KUNITTEST="-lkunittest"
32782
# these are for backward compatibility
32783
LIB_KSYCOCA="-lkio"
32787
elif test $kde_qtver = 2; then
32788
LIB_KDECORE="-lkdecore"
32790
LIB_KDEUI="-lkdeui"
32794
LIB_KSYCOCA="-lksycoca"
32798
LIB_KFILE="-lkfile"
32802
LIB_KHTML="-lkhtml"
32804
LIB_KSPELL="-lkspell"
32806
LIB_KPARTS="-lkparts"
32808
LIB_KDEPRINT="-lkdeprint"
32811
LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
32813
LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
32815
LIB_KFM="-lkfm $(LIB_KDECORE)"
32817
LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
32819
LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
32827
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32828
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32829
if test "${ac_cv_c_bigendian+set}" = set; then
32830
echo $ECHO_N "(cached) $ECHO_C" >&6
32832
# See if sys/param.h defines the BYTE_ORDER macro.
32833
cat >conftest.$ac_ext <<_ACEOF
32836
cat confdefs.h >>conftest.$ac_ext
32837
cat >>conftest.$ac_ext <<_ACEOF
32838
/* end confdefs.h. */
32839
#include <sys/types.h>
32840
#include <sys/param.h>
32845
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32846
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32847
bogus endian macros
32854
rm -f conftest.$ac_objext
32855
if { (ac_try="$ac_compile"
32856
case "(($ac_try" in
32857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858
*) ac_try_echo=$ac_try;;
32860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861
(eval "$ac_compile") 2>conftest.er1
32863
grep -v '^ *+' conftest.er1 >conftest.err
32865
cat conftest.err >&5
32866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867
(exit $ac_status); } && {
32868
test -z "$ac_c_werror_flag" ||
32869
test ! -s conftest.err
32870
} && test -s conftest.$ac_objext; then
32871
# It does; now see whether it defined to BIG_ENDIAN or not.
32872
cat >conftest.$ac_ext <<_ACEOF
32875
cat confdefs.h >>conftest.$ac_ext
32876
cat >>conftest.$ac_ext <<_ACEOF
32877
/* end confdefs.h. */
32878
#include <sys/types.h>
32879
#include <sys/param.h>
32884
#if BYTE_ORDER != BIG_ENDIAN
32892
rm -f conftest.$ac_objext
32893
if { (ac_try="$ac_compile"
32894
case "(($ac_try" in
32895
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896
*) ac_try_echo=$ac_try;;
32898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899
(eval "$ac_compile") 2>conftest.er1
32901
grep -v '^ *+' conftest.er1 >conftest.err
32903
cat conftest.err >&5
32904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905
(exit $ac_status); } && {
32906
test -z "$ac_c_werror_flag" ||
32907
test ! -s conftest.err
32908
} && test -s conftest.$ac_objext; then
32909
ac_cv_c_bigendian=yes
32911
echo "$as_me: failed program was:" >&5
32912
sed 's/^/| /' conftest.$ac_ext >&5
32914
ac_cv_c_bigendian=no
32917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32919
echo "$as_me: failed program was:" >&5
32920
sed 's/^/| /' conftest.$ac_ext >&5
32922
# It does not; compile a test program.
32923
if test "$cross_compiling" = yes; then
32924
# try to guess the endianness by grepping values into an object file
32925
ac_cv_c_bigendian=unknown
32926
cat >conftest.$ac_ext <<_ACEOF
32929
cat confdefs.h >>conftest.$ac_ext
32930
cat >>conftest.$ac_ext <<_ACEOF
32931
/* end confdefs.h. */
32932
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
32933
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
32934
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
32935
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
32936
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
32937
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
32941
_ascii (); _ebcdic ();
32946
rm -f conftest.$ac_objext
32947
if { (ac_try="$ac_compile"
32948
case "(($ac_try" in
32949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32950
*) ac_try_echo=$ac_try;;
32952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32953
(eval "$ac_compile") 2>conftest.er1
32955
grep -v '^ *+' conftest.er1 >conftest.err
32957
cat conftest.err >&5
32958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959
(exit $ac_status); } && {
32960
test -z "$ac_c_werror_flag" ||
32961
test ! -s conftest.err
32962
} && test -s conftest.$ac_objext; then
32963
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
32964
ac_cv_c_bigendian=yes
32966
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
32967
if test "$ac_cv_c_bigendian" = unknown; then
32968
ac_cv_c_bigendian=no
32970
# finding both strings is unlikely to happen, but who knows?
32971
ac_cv_c_bigendian=unknown
32975
echo "$as_me: failed program was:" >&5
32976
sed 's/^/| /' conftest.$ac_ext >&5
32981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32983
cat >conftest.$ac_ext <<_ACEOF
32986
cat confdefs.h >>conftest.$ac_ext
32987
cat >>conftest.$ac_ext <<_ACEOF
32988
/* end confdefs.h. */
32989
$ac_includes_default
32994
/* Are we little or big endian? From Harbison&Steele. */
32998
char c[sizeof (long int)];
33001
return u.c[sizeof (long int) - 1] == 1;
33007
rm -f conftest$ac_exeext
33008
if { (ac_try="$ac_link"
33009
case "(($ac_try" in
33010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33011
*) ac_try_echo=$ac_try;;
33013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33014
(eval "$ac_link") 2>&5
33016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33018
{ (case "(($ac_try" in
33019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020
*) ac_try_echo=$ac_try;;
33022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023
(eval "$ac_try") 2>&5
33025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026
(exit $ac_status); }; }; then
33027
ac_cv_c_bigendian=no
33029
echo "$as_me: program exited with status $ac_status" >&5
33030
echo "$as_me: failed program was:" >&5
33031
sed 's/^/| /' conftest.$ac_ext >&5
33033
( exit $ac_status )
33034
ac_cv_c_bigendian=yes
33036
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33044
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33045
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33046
case $ac_cv_c_bigendian in
33049
cat >>confdefs.h <<\_ACEOF
33050
#define WORDS_BIGENDIAN 1
33056
{ { echo "$as_me:$LINENO: error: unknown endianness
33057
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33058
echo "$as_me: error: unknown endianness
33059
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33060
{ (exit 1); exit 1; }; } ;;
33064
{ echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
33065
echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6; }
33066
if test "${ac_cv_maxpathlen+set}" = set; then
33067
echo $ECHO_N "(cached) $ECHO_C" >&6
33070
cat > conftest.$ac_ext <<EOF
33071
#ifdef STDC_HEADERS
33072
# include <stdlib.h>
33075
#include <sys/param.h>
33077
#define MAXPATHLEN 1024
33080
KDE_HELLO MAXPATHLEN
33084
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
33086
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087
(eval $ac_try) 2>&5
33089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090
(exit $ac_status); } && test -s conftest.out; then
33091
ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
33093
ac_cv_maxpathlen=1024
33101
{ echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
33102
echo "${ECHO_T}$ac_cv_maxpathlen" >&6; }
33104
cat >>confdefs.h <<_ACEOF
33105
#define KDEMAXPATHLEN $ac_cv_maxpathlen
33110
NEED_LIBGCRYPT_API=1
33111
NEED_LIBGCRYPT_VERSION=1.1.98
33113
##libgcrypt is our generic crypto library
33116
# Check whether --with-libgcrypt-prefix was given.
33117
if test "${with_libgcrypt_prefix+set}" = set; then
33118
withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
33120
libgcrypt_config_prefix=""
33123
if test x$libgcrypt_config_prefix != x ; then
33124
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
33125
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
33129
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
33130
set dummy libgcrypt-config; ac_word=$2
33131
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33133
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
33134
echo $ECHO_N "(cached) $ECHO_C" >&6
33136
case $LIBGCRYPT_CONFIG in
33138
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
33141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33142
for as_dir in $PATH
33145
test -z "$as_dir" && as_dir=.
33146
for ac_exec_ext in '' $ac_executable_extensions; do
33147
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33148
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33149
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33156
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
33160
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
33161
if test -n "$LIBGCRYPT_CONFIG"; then
33162
{ echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
33163
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
33165
{ echo "$as_me:$LINENO: result: no" >&5
33166
echo "${ECHO_T}no" >&6; }
33170
tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
33171
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
33172
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
33173
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
33175
req_libgcrypt_api=0
33176
min_libgcrypt_version="$tmp"
33179
{ echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
33180
echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
33182
if test "$LIBGCRYPT_CONFIG" != "no" ; then
33183
req_major=`echo $min_libgcrypt_version | \
33184
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
33185
req_minor=`echo $min_libgcrypt_version | \
33186
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
33187
req_micro=`echo $min_libgcrypt_version | \
33188
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
33189
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
33190
major=`echo $libgcrypt_config_version | \
33191
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
33192
minor=`echo $libgcrypt_config_version | \
33193
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
33194
micro=`echo $libgcrypt_config_version | \
33195
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
33196
if test "$major" -gt "$req_major"; then
33199
if test "$major" -eq "$req_major"; then
33200
if test "$minor" -gt "$req_minor"; then
33203
if test "$minor" -eq "$req_minor"; then
33204
if test "$micro" -ge "$req_micro"; then
33212
if test $ok = yes; then
33213
{ echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
33214
echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
33216
{ echo "$as_me:$LINENO: result: no" >&5
33217
echo "${ECHO_T}no" >&6; }
33219
if test $ok = yes; then
33220
# If we have a recent libgcrypt, we should also check that the
33221
# API is compatible
33222
if test "$req_libgcrypt_api" -gt 0 ; then
33223
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
33224
if test "$tmp" -gt 0 ; then
33225
{ echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
33226
echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
33227
if test "$req_libgcrypt_api" -eq "$tmp" ; then
33228
{ echo "$as_me:$LINENO: result: okay" >&5
33229
echo "${ECHO_T}okay" >&6; }
33232
{ echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
33233
echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
33238
if test $ok = yes; then
33239
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
33240
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
33243
LIBGCRYPT_CFLAGS=""
33252
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
33255
if test ! -s $srcdir/subdirs; then
33256
files=`cd $srcdir && ls -1`
33257
dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
33259
echo $i >> $srcdir/subdirs
33264
if test -s $srcdir/inst-apps; then
33265
ac_topsubdirs="`cat $srcdir/inst-apps`"
33266
elif test -s $srcdir/subdirs; then
33267
ac_topsubdirs="`cat $srcdir/subdirs`"
33270
for i in $ac_topsubdirs; do
33271
{ echo "$as_me:$LINENO: checking if $i should be compiled" >&5
33272
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6; }
33273
if test -d $srcdir/$i; then
33275
for j in $DO_NOT_COMPILE; do
33276
if test $i = $j; then
33283
{ echo "$as_me:$LINENO: result: $install_it" >&5
33284
echo "${ECHO_T}$install_it" >&6; }
33285
vari=`echo $i | sed -e 's,[-+.@],_,g'`
33286
if test $install_it = "yes"; then
33287
TOPSUBDIRS="$TOPSUBDIRS $i"
33288
eval "$vari""_SUBDIR_included=yes"
33290
eval "$vari""_SUBDIR_included=no"
33296
ac_config_files="$ac_config_files Makefile"
33298
ac_config_files="$ac_config_files doc/Makefile"
33300
ac_config_files="$ac_config_files doc/de/Makefile"
33302
ac_config_files="$ac_config_files doc/en/Makefile"
33304
ac_config_files="$ac_config_files doc/fr/Makefile"
33306
ac_config_files="$ac_config_files doc/sv/Makefile"
33308
ac_config_files="$ac_config_files po/Makefile"
33310
ac_config_files="$ac_config_files src/Makefile"
33312
ac_config_files="$ac_config_files src/icons/Makefile"
33314
cat >confcache <<\_ACEOF
33315
# This file is a shell script that caches the results of configure
33316
# tests run on this system so they can be shared between configure
33317
# scripts and configure runs, see configure's option --config-cache.
33318
# It is not useful on other systems. If it contains results you don't
33319
# want to keep, you may remove or edit it.
33321
# config.status only pays attention to the cache file if you give it
33322
# the --recheck option to rerun configure.
33324
# `ac_cv_env_foo' variables (set or unset) will be overridden when
33325
# loading this file, other *unset* `ac_cv_foo' will be assigned the
33326
# following values.
33330
# The following way of writing the cache mishandles newlines in values,
33331
# but we know of no workaround that is simple, portable, and efficient.
33332
# So, we kill variables containing newlines.
33333
# Ultrix sh set writes to stderr and can't be redirected directly,
33334
# and sets the high bit in the cache file unless we assign to the vars.
33336
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33337
eval ac_val=\$$ac_var
33341
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33342
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33345
_ | IFS | as_nl) ;; #(
33346
*) $as_unset $ac_var ;;
33352
case $as_nl`(ac_space=' '; set) 2>&1` in #(
33353
*${as_nl}ac_space=\ *)
33354
# `set' does not quote correctly, so add quotes (double-quote
33355
# substitution turns \\\\ into \\, and sed turns \\ into \).
33358
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33361
# `set' quotes correctly as required by POSIX, so do not add quotes.
33362
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33371
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33373
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33375
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33376
if test -w "$cache_file"; then
33377
test "x$cache_file" != "x/dev/null" &&
33378
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
33379
echo "$as_me: updating cache $cache_file" >&6;}
33380
cat confcache >$cache_file
33382
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33383
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33388
test "x$prefix" = xNONE && prefix=$ac_default_prefix
33389
# Let make expand exec_prefix.
33390
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33392
DEFS=-DHAVE_CONFIG_H
33396
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33397
# 1. Remove the extension, and $U if already installed.
33398
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33399
ac_i=`echo "$ac_i" | sed "$ac_script"`
33400
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33401
# will be set to the directory where LIBOBJS objects are built.
33402
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33403
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33405
LIBOBJS=$ac_libobjs
33407
LTLIBOBJS=$ac_ltlibobjs
33410
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33411
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
33412
Usually this means the macro was only invoked conditionally." >&5
33413
echo "$as_me: error: conditional \"AMDEP\" was never defined.
33414
Usually this means the macro was only invoked conditionally." >&2;}
33415
{ (exit 1); exit 1; }; }
33417
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33418
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33419
Usually this means the macro was only invoked conditionally." >&5
33420
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33421
Usually this means the macro was only invoked conditionally." >&2;}
33422
{ (exit 1); exit 1; }; }
33424
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33425
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
33426
Usually this means the macro was only invoked conditionally." >&5
33427
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
33428
Usually this means the macro was only invoked conditionally." >&2;}
33429
{ (exit 1); exit 1; }; }
33431
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
33432
{ { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
33433
Usually this means the macro was only invoked conditionally." >&5
33434
echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
33435
Usually this means the macro was only invoked conditionally." >&2;}
33436
{ (exit 1); exit 1; }; }
33438
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
33439
{ { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
33440
Usually this means the macro was only invoked conditionally." >&5
33441
echo "$as_me: error: conditional \"include_x11\" was never defined.
33442
Usually this means the macro was only invoked conditionally." >&2;}
33443
{ (exit 1); exit 1; }; }
33445
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
33446
{ { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
33447
Usually this means the macro was only invoked conditionally." >&5
33448
echo "$as_me: error: conditional \"include_ARTS\" was never defined.
33449
Usually this means the macro was only invoked conditionally." >&2;}
33450
{ (exit 1); exit 1; }; }
33453
: ${CONFIG_STATUS=./config.status}
33454
ac_clean_files_save=$ac_clean_files
33455
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33456
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33457
echo "$as_me: creating $CONFIG_STATUS" >&6;}
33458
cat >$CONFIG_STATUS <<_ACEOF
33460
# Generated by $as_me.
33461
# Run this file to recreate the current configuration.
33462
# Compiler output produced by configure, useful for debugging
33463
# configure, is in config.log if it exists.
33466
ac_cs_recheck=false
33468
SHELL=\${CONFIG_SHELL-$SHELL}
33471
cat >>$CONFIG_STATUS <<\_ACEOF
33472
## --------------------- ##
33473
## M4sh Initialization. ##
33474
## --------------------- ##
33476
# Be more Bourne compatible
33477
DUALCASE=1; export DUALCASE # for MKS sh
33478
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33481
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33482
# is contrary to our usage. Disable this feature.
33483
alias -g '${1+"$@"}'='"$@"'
33484
setopt NO_GLOB_SUBST
33486
case `(set -o) 2>/dev/null` in
33487
*posix*) set -o posix ;;
33496
# Avoid depending upon Character Ranges.
33497
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33498
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33499
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33500
as_cr_digits='0123456789'
33501
as_cr_alnum=$as_cr_Letters$as_cr_digits
33503
# The user is always right.
33504
if test "${PATH_SEPARATOR+set}" != set; then
33505
echo "#! /bin/sh" >conf$$.sh
33506
echo "exit 0" >>conf$$.sh
33508
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33516
# Support unset when possible.
33517
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33525
# We need space, tab and new line, in precisely that order. Quoting is
33526
# there to prevent editors from complaining about space-tab.
33527
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33528
# splitting by setting IFS to empty value.)
33533
# Find who we are. Look in the path if we contain no directory separator.
33535
*[\\/]* ) as_myself=$0 ;;
33536
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33537
for as_dir in $PATH
33540
test -z "$as_dir" && as_dir=.
33541
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33547
# We did not find ourselves, most probably we were run as `sh COMMAND'
33548
# in which case we are not to be found in the path.
33549
if test "x$as_myself" = x; then
33552
if test ! -f "$as_myself"; then
33553
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33554
{ (exit 1); exit 1; }
33557
# Work around bugs in pre-3.0 UWIN ksh.
33558
for as_var in ENV MAIL MAILPATH
33559
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33567
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33568
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33569
LC_TELEPHONE LC_TIME
33571
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33572
eval $as_var=C; export $as_var
33574
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33578
# Required to use basename.
33579
if expr a : '\(a\)' >/dev/null 2>&1 &&
33580
test "X`expr 00001 : '.*\(...\)'`" = X001; then
33586
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33587
as_basename=basename
33593
# Name of the executable.
33594
as_me=`$as_basename -- "$0" ||
33595
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33596
X"$0" : 'X\(//\)$' \| \
33597
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33599
sed '/^.*\/\([^/][^/]*\)\/*$/{
33618
as_lineno_1=$LINENO
33619
as_lineno_2=$LINENO
33620
test "x$as_lineno_1" != "x$as_lineno_2" &&
33621
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33623
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33624
# uniformly replaced by the line number. The first 'sed' inserts a
33625
# line-number line after each line using $LINENO; the second 'sed'
33626
# does the real work. The second script uses 'N' to pair each
33627
# line-number line with the line containing $LINENO, and appends
33628
# trailing '-' during substitution so that $LINENO is not a special
33629
# case at line end.
33630
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33631
# scripts with optimization help from Paolo Bonzini. Blame Lee
33632
# E. McMahon (1931-1989) for sed's syntax. :-)
33644
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33647
' >$as_me.lineno &&
33648
chmod +x "$as_me.lineno" ||
33649
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33650
{ (exit 1); exit 1; }; }
33652
# Don't try to exec as it changes $[0], causing all sort of problems
33653
# (the dirname of $[0] is not the place where we might find the
33654
# original and so on. Autoconf is especially sensitive to this).
33655
. "./$as_me.lineno"
33656
# Exit status is that of the last command.
33661
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33667
ECHO_C= ECHO_N= ECHO_T=
33668
case `echo -n x` in
33670
case `echo 'x\c'` in
33671
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
33678
if expr a : '\(a\)' >/dev/null 2>&1 &&
33679
test "X`expr 00001 : '.*\(...\)'`" = X001; then
33685
rm -f conf$$ conf$$.exe conf$$.file
33686
if test -d conf$$.dir; then
33687
rm -f conf$$.dir/conf$$.file
33693
if ln -s conf$$.file conf$$ 2>/dev/null; then
33695
# ... but there are two gotchas:
33696
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33697
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33698
# In both cases, we have to default to `cp -p'.
33699
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33701
elif ln conf$$.file conf$$ 2>/dev/null; then
33706
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33707
rmdir conf$$.dir 2>/dev/null
33709
if mkdir -p . 2>/dev/null; then
33712
test -d ./-p && rmdir ./-p
33716
if test -x / >/dev/null 2>&1; then
33717
as_test_x='test -x'
33719
if ls -dL / >/dev/null 2>&1; then
33726
if test -d "$1"; then
33732
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33733
???[sx]*):;;*)false;;esac;fi
33737
as_executable_p=$as_test_x
33739
# Sed expression to map a string onto a valid CPP name.
33740
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33742
# Sed expression to map a string onto a valid variable name.
33743
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33748
# Save the log message, to keep $[0] and so on meaningful, and to
33749
# report actual input values of CONFIG_FILES etc. instead of their
33750
# values after options handling.
33752
This file was extended by $as_me, which was
33753
generated by GNU Autoconf 2.61. Invocation command line was
33755
CONFIG_FILES = $CONFIG_FILES
33756
CONFIG_HEADERS = $CONFIG_HEADERS
33757
CONFIG_LINKS = $CONFIG_LINKS
33758
CONFIG_COMMANDS = $CONFIG_COMMANDS
33761
on `(hostname || uname -n) 2>/dev/null | sed 1q`
33766
cat >>$CONFIG_STATUS <<_ACEOF
33767
# Files that config.status was made for.
33768
config_files="$ac_config_files"
33769
config_headers="$ac_config_headers"
33770
config_commands="$ac_config_commands"
33774
cat >>$CONFIG_STATUS <<\_ACEOF
33776
\`$as_me' instantiates files from templates according to the
33777
current configuration.
33779
Usage: $0 [OPTIONS] [FILE]...
33781
-h, --help print this help, then exit
33782
-V, --version print version number and configuration settings, then exit
33783
-q, --quiet do not print progress messages
33784
-d, --debug don't remove temporary files
33785
--recheck update $as_me by reconfiguring in the same conditions
33786
--file=FILE[:TEMPLATE]
33787
instantiate the configuration file FILE
33788
--header=FILE[:TEMPLATE]
33789
instantiate the configuration header FILE
33791
Configuration files:
33794
Configuration headers:
33797
Configuration commands:
33800
Report bugs to <bug-autoconf@gnu.org>."
33803
cat >>$CONFIG_STATUS <<_ACEOF
33806
configured by $0, generated by GNU Autoconf 2.61,
33807
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33809
Copyright (C) 2006 Free Software Foundation, Inc.
33810
This config.status script is free software; the Free Software Foundation
33811
gives unlimited permission to copy, distribute and modify it."
33818
cat >>$CONFIG_STATUS <<\_ACEOF
33819
# If no file are specified by the user, then we need to provide default
33820
# value. By we need to know if files were specified by the user.
33826
ac_option=`expr "X$1" : 'X\([^=]*\)='`
33827
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33838
# Handling of the options.
33839
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33841
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33842
echo "$ac_cs_version"; exit ;;
33843
--debug | --debu | --deb | --de | --d | -d )
33845
--file | --fil | --fi | --f )
33847
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33848
ac_need_defaults=false;;
33849
--header | --heade | --head | --hea )
33851
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33852
ac_need_defaults=false;;
33854
# Conflict between --help and --header
33855
{ echo "$as_me: error: ambiguous option: $1
33856
Try \`$0 --help' for more information." >&2
33857
{ (exit 1); exit 1; }; };;
33858
--help | --hel | -h )
33859
echo "$ac_cs_usage"; exit ;;
33860
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
33861
| -silent | --silent | --silen | --sile | --sil | --si | --s)
33864
# This is an error.
33865
-*) { echo "$as_me: error: unrecognized option: $1
33866
Try \`$0 --help' for more information." >&2
33867
{ (exit 1); exit 1; }; } ;;
33869
*) ac_config_targets="$ac_config_targets $1"
33870
ac_need_defaults=false ;;
33876
ac_configure_extra_args=
33878
if $ac_cs_silent; then
33880
ac_configure_extra_args="$ac_configure_extra_args --silent"
33884
cat >>$CONFIG_STATUS <<_ACEOF
33885
if \$ac_cs_recheck; then
33886
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33887
CONFIG_SHELL=$SHELL
33888
export CONFIG_SHELL
33889
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33893
cat >>$CONFIG_STATUS <<\_ACEOF
33897
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33898
## Running $as_me. ##
33904
cat >>$CONFIG_STATUS <<_ACEOF
33908
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33912
cat >>$CONFIG_STATUS <<\_ACEOF
33914
# Handling of arguments.
33915
for ac_config_target in $ac_config_targets
33917
case $ac_config_target in
33918
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33919
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33920
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33921
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33922
"doc/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/de/Makefile" ;;
33923
"doc/en/Makefile") CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
33924
"doc/fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fr/Makefile" ;;
33925
"doc/sv/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sv/Makefile" ;;
33926
"po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
33927
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33928
"src/icons/Makefile") CONFIG_FILES="$CONFIG_FILES src/icons/Makefile" ;;
33930
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33931
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33932
{ (exit 1); exit 1; }; };;
33937
# If the user did not use the arguments to specify the items to instantiate,
33938
# then the envvar interface is used. Set only those that are not.
33939
# We use the long form for the default assignment because of an extremely
33940
# bizarre bug on SunOS 4.1.3.
33941
if $ac_need_defaults; then
33942
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33943
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33944
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33947
# Have a temporary directory for convenience. Make it in the build tree
33948
# simply because there is no reason against having it here, and in addition,
33949
# creating and moving files from /tmp can sometimes cause problems.
33950
# Hook for its removal unless debugging.
33951
# Note that there is a small window in which the directory will not be cleaned:
33952
# after its creation but before its name has been assigned to `$tmp'.
33956
trap 'exit_status=$?
33957
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33959
trap '{ (exit 1); exit 1; }' 1 2 13 15
33961
# Create a (secure) tmp directory for tmp files.
33964
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33965
test -n "$tmp" && test -d "$tmp"
33968
tmp=./conf$$-$RANDOM
33969
(umask 077 && mkdir "$tmp")
33972
echo "$me: cannot create a temporary directory in ." >&2
33973
{ (exit 1); exit 1; }
33977
# Set up the sed scripts for CONFIG_FILES section.
33980
# No need to generate the scripts if there are no CONFIG_FILES.
33981
# This happens for instance when ./config.status config.h
33982
if test -n "$CONFIG_FILES"; then
33989
for ac_last_try in false false false false false :; do
33990
cat >conf$$subs.sed <<_ACEOF
33991
SHELL!$SHELL$ac_delim
33992
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33993
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33994
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33995
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33996
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33997
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33998
exec_prefix!$exec_prefix$ac_delim
33999
prefix!$prefix$ac_delim
34000
program_transform_name!$program_transform_name$ac_delim
34001
bindir!$bindir$ac_delim
34002
sbindir!$sbindir$ac_delim
34003
libexecdir!$libexecdir$ac_delim
34004
datarootdir!$datarootdir$ac_delim
34005
datadir!$datadir$ac_delim
34006
sysconfdir!$sysconfdir$ac_delim
34007
sharedstatedir!$sharedstatedir$ac_delim
34008
localstatedir!$localstatedir$ac_delim
34009
includedir!$includedir$ac_delim
34010
oldincludedir!$oldincludedir$ac_delim
34011
docdir!$docdir$ac_delim
34012
infodir!$infodir$ac_delim
34013
htmldir!$htmldir$ac_delim
34014
dvidir!$dvidir$ac_delim
34015
pdfdir!$pdfdir$ac_delim
34016
psdir!$psdir$ac_delim
34017
libdir!$libdir$ac_delim
34018
localedir!$localedir$ac_delim
34019
mandir!$mandir$ac_delim
34020
DEFS!$DEFS$ac_delim
34021
ECHO_C!$ECHO_C$ac_delim
34022
ECHO_N!$ECHO_N$ac_delim
34023
ECHO_T!$ECHO_T$ac_delim
34024
LIBS!$LIBS$ac_delim
34025
build_alias!$build_alias$ac_delim
34026
host_alias!$host_alias$ac_delim
34027
target_alias!$target_alias$ac_delim
34028
build!$build$ac_delim
34029
build_cpu!$build_cpu$ac_delim
34030
build_vendor!$build_vendor$ac_delim
34031
build_os!$build_os$ac_delim
34032
host!$host$ac_delim
34033
host_cpu!$host_cpu$ac_delim
34034
host_vendor!$host_vendor$ac_delim
34035
host_os!$host_os$ac_delim
34036
target!$target$ac_delim
34037
target_cpu!$target_cpu$ac_delim
34038
target_vendor!$target_vendor$ac_delim
34039
target_os!$target_os$ac_delim
34040
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34041
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34042
INSTALL_DATA!$INSTALL_DATA$ac_delim
34043
CYGPATH_W!$CYGPATH_W$ac_delim
34044
PACKAGE!$PACKAGE$ac_delim
34045
VERSION!$VERSION$ac_delim
34046
ACLOCAL!$ACLOCAL$ac_delim
34047
AUTOCONF!$AUTOCONF$ac_delim
34048
AUTOMAKE!$AUTOMAKE$ac_delim
34049
AUTOHEADER!$AUTOHEADER$ac_delim
34050
MAKEINFO!$MAKEINFO$ac_delim
34051
install_sh!$install_sh$ac_delim
34052
STRIP!$STRIP$ac_delim
34053
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34054
mkdir_p!$mkdir_p$ac_delim
34056
SET_MAKE!$SET_MAKE$ac_delim
34057
am__leading_dot!$am__leading_dot$ac_delim
34058
AMTAR!$AMTAR$ac_delim
34059
am__tar!$am__tar$ac_delim
34060
am__untar!$am__untar$ac_delim
34061
KDECONFIG!$KDECONFIG$ac_delim
34062
kde_libs_prefix!$kde_libs_prefix$ac_delim
34063
kde_libs_htmldir!$kde_libs_htmldir$ac_delim
34064
CONF_FILES!$CONF_FILES$ac_delim
34066
CFLAGS!$CFLAGS$ac_delim
34067
LDFLAGS!$LDFLAGS$ac_delim
34068
CPPFLAGS!$CPPFLAGS$ac_delim
34069
ac_ct_CC!$ac_ct_CC$ac_delim
34070
EXEEXT!$EXEEXT$ac_delim
34071
OBJEXT!$OBJEXT$ac_delim
34072
DEPDIR!$DEPDIR$ac_delim
34073
am__include!$am__include$ac_delim
34074
am__quote!$am__quote$ac_delim
34075
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34076
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34077
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34078
CCDEPMODE!$CCDEPMODE$ac_delim
34079
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34080
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34083
CXXFLAGS!$CXXFLAGS$ac_delim
34084
ac_ct_CXX!$ac_ct_CXX$ac_delim
34085
CXXDEPMODE!$CXXDEPMODE$ac_delim
34086
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34087
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34090
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34092
elif $ac_last_try; then
34093
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34094
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34095
{ (exit 1); exit 1; }; }
34097
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34101
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34102
if test -n "$ac_eof"; then
34103
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34104
ac_eof=`expr $ac_eof + 1`
34107
cat >>$CONFIG_STATUS <<_ACEOF
34108
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34109
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34112
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34113
s/^/s,@/; s/!/@,|#_!!_#|/
34116
s/'"$ac_delim"'$/,g/; t
34118
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34119
' >>$CONFIG_STATUS <conf$$subs.sed
34120
rm -f conf$$subs.sed
34121
cat >>$CONFIG_STATUS <<_ACEOF
34127
for ac_last_try in false false false false false :; do
34128
cat >conf$$subs.sed <<_ACEOF
34129
WOVERLOADED_VIRTUAL!$WOVERLOADED_VIRTUAL$ac_delim
34130
HAVE_GCC_VISIBILITY!$HAVE_GCC_VISIBILITY$ac_delim
34131
unsermake_enable_pch_TRUE!$unsermake_enable_pch_TRUE$ac_delim
34132
unsermake_enable_pch_FALSE!$unsermake_enable_pch_FALSE$ac_delim
34133
USE_EXCEPTIONS!$USE_EXCEPTIONS$ac_delim
34134
USE_RTTI!$USE_RTTI$ac_delim
34135
CXXCPP!$CXXCPP$ac_delim
34136
NOOPT_CXXFLAGS!$NOOPT_CXXFLAGS$ac_delim
34137
NOOPT_CFLAGS!$NOOPT_CFLAGS$ac_delim
34138
ENABLE_PERMISSIVE_FLAG!$ENABLE_PERMISSIVE_FLAG$ac_delim
34139
LDFLAGS_AS_NEEDED!$LDFLAGS_AS_NEEDED$ac_delim
34140
LDFLAGS_NEW_DTAGS!$LDFLAGS_NEW_DTAGS$ac_delim
34141
KDE_USE_FINAL_TRUE!$KDE_USE_FINAL_TRUE$ac_delim
34142
KDE_USE_FINAL_FALSE!$KDE_USE_FINAL_FALSE$ac_delim
34143
KDE_USE_CLOSURE_TRUE!$KDE_USE_CLOSURE_TRUE$ac_delim
34144
KDE_USE_CLOSURE_FALSE!$KDE_USE_CLOSURE_FALSE$ac_delim
34145
KDE_NO_UNDEFINED!$KDE_NO_UNDEFINED$ac_delim
34146
KDE_USE_NMCHECK_TRUE!$KDE_USE_NMCHECK_TRUE$ac_delim
34147
KDE_USE_NMCHECK_FALSE!$KDE_USE_NMCHECK_FALSE$ac_delim
34148
GREP!$GREP$ac_delim
34149
EGREP!$EGREP$ac_delim
34150
LN_S!$LN_S$ac_delim
34151
ECHO!$ECHO$ac_delim
34153
RANLIB!$RANLIB$ac_delim
34155
FFLAGS!$FFLAGS$ac_delim
34156
ac_ct_F77!$ac_ct_F77$ac_delim
34157
LIBTOOL!$LIBTOOL$ac_delim
34158
KDE_PLUGIN!$KDE_PLUGIN$ac_delim
34159
KDE_CHECK_PLUGIN!$KDE_CHECK_PLUGIN$ac_delim
34160
MSGFMT!$MSGFMT$ac_delim
34161
GMSGFMT!$GMSGFMT$ac_delim
34162
XGETTEXT!$XGETTEXT$ac_delim
34163
LIBUTIL!$LIBUTIL$ac_delim
34164
LIBCOMPAT!$LIBCOMPAT$ac_delim
34165
LIBCRYPT!$LIBCRYPT$ac_delim
34166
LIBRESOLV!$LIBRESOLV$ac_delim
34167
LIB_POLL!$LIB_POLL$ac_delim
34168
FRAMEWORK_COREAUDIO!$FRAMEWORK_COREAUDIO$ac_delim
34169
LIBSOCKET!$LIBSOCKET$ac_delim
34170
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34171
LIBUCB!$LIBUCB$ac_delim
34172
LIBDL!$LIBDL$ac_delim
34173
KDE_USE_FPIE!$KDE_USE_FPIE$ac_delim
34174
KDE_USE_PIE!$KDE_USE_PIE$ac_delim
34175
include_x11_TRUE!$include_x11_TRUE$ac_delim
34176
include_x11_FALSE!$include_x11_FALSE$ac_delim
34177
XMKMF!$XMKMF$ac_delim
34178
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34179
LIB_X11!$LIB_X11$ac_delim
34180
LIB_XRENDER!$LIB_XRENDER$ac_delim
34181
LIBSM!$LIBSM$ac_delim
34182
X_INCLUDES!$X_INCLUDES$ac_delim
34183
X_LDFLAGS!$X_LDFLAGS$ac_delim
34184
x_includes!$x_includes$ac_delim
34185
x_libraries!$x_libraries$ac_delim
34186
QTE_NORTTI!$QTE_NORTTI$ac_delim
34187
LIB_XEXT!$LIB_XEXT$ac_delim
34188
LIBPTHREAD!$LIBPTHREAD$ac_delim
34189
USE_THREADS!$USE_THREADS$ac_delim
34190
KDE_MT_LDFLAGS!$KDE_MT_LDFLAGS$ac_delim
34191
KDE_MT_LIBS!$KDE_MT_LIBS$ac_delim
34192
USER_INCLUDES!$USER_INCLUDES$ac_delim
34193
USER_LDFLAGS!$USER_LDFLAGS$ac_delim
34194
LIBZ!$LIBZ$ac_delim
34195
LIBPNG!$LIBPNG$ac_delim
34196
LIBJPEG!$LIBJPEG$ac_delim
34197
qt_libraries!$qt_libraries$ac_delim
34198
qt_includes!$qt_includes$ac_delim
34199
QT_INCLUDES!$QT_INCLUDES$ac_delim
34200
QT_LDFLAGS!$QT_LDFLAGS$ac_delim
34201
PERL!$PERL$ac_delim
34204
UIC_TR!$UIC_TR$ac_delim
34205
LIB_QT!$LIB_QT$ac_delim
34206
LIB_QPE!$LIB_QPE$ac_delim
34207
kde_qtver!$kde_qtver$ac_delim
34208
KDE_EXTRA_RPATH!$KDE_EXTRA_RPATH$ac_delim
34209
KDE_RPATH!$KDE_RPATH$ac_delim
34210
X_RPATH!$X_RPATH$ac_delim
34211
kde_libraries!$kde_libraries$ac_delim
34212
kde_includes!$kde_includes$ac_delim
34213
KDE_LDFLAGS!$KDE_LDFLAGS$ac_delim
34214
KDE_INCLUDES!$KDE_INCLUDES$ac_delim
34215
all_includes!$all_includes$ac_delim
34216
all_libraries!$all_libraries$ac_delim
34217
AUTODIRS!$AUTODIRS$ac_delim
34218
include_ARTS_TRUE!$include_ARTS_TRUE$ac_delim
34219
include_ARTS_FALSE!$include_ARTS_FALSE$ac_delim
34220
MAKEKDEWIDGETS!$MAKEKDEWIDGETS$ac_delim
34221
KCONFIG_COMPILER!$KCONFIG_COMPILER$ac_delim
34222
KCFG_DEPENDENCIES!$KCFG_DEPENDENCIES$ac_delim
34223
DCOPIDLNG!$DCOPIDLNG$ac_delim
34224
DCOPIDL!$DCOPIDL$ac_delim
34225
DCOPIDL2CPP!$DCOPIDL2CPP$ac_delim
34228
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34230
elif $ac_last_try; then
34231
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34232
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34233
{ (exit 1); exit 1; }; }
34235
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34239
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34240
if test -n "$ac_eof"; then
34241
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34242
ac_eof=`expr $ac_eof + 1`
34245
cat >>$CONFIG_STATUS <<_ACEOF
34246
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34247
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34250
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34251
s/^/s,@/; s/!/@,|#_!!_#|/
34254
s/'"$ac_delim"'$/,g/; t
34256
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34257
' >>$CONFIG_STATUS <conf$$subs.sed
34258
rm -f conf$$subs.sed
34259
cat >>$CONFIG_STATUS <<_ACEOF
34265
for ac_last_try in false false false false false :; do
34266
cat >conf$$subs.sed <<_ACEOF
34267
DCOP_DEPENDENCIES!$DCOP_DEPENDENCIES$ac_delim
34268
MCOPIDL!$MCOPIDL$ac_delim
34269
ARTSCCONFIG!$ARTSCCONFIG$ac_delim
34270
MEINPROC!$MEINPROC$ac_delim
34271
KDE_XSL_STYLESHEET!$KDE_XSL_STYLESHEET$ac_delim
34272
XMLLINT!$XMLLINT$ac_delim
34273
kde_htmldir!$kde_htmldir$ac_delim
34274
kde_appsdir!$kde_appsdir$ac_delim
34275
kde_icondir!$kde_icondir$ac_delim
34276
kde_sounddir!$kde_sounddir$ac_delim
34277
kde_datadir!$kde_datadir$ac_delim
34278
kde_locale!$kde_locale$ac_delim
34279
kde_confdir!$kde_confdir$ac_delim
34280
kde_kcfgdir!$kde_kcfgdir$ac_delim
34281
kde_mimedir!$kde_mimedir$ac_delim
34282
kde_wallpaperdir!$kde_wallpaperdir$ac_delim
34283
kde_bindir!$kde_bindir$ac_delim
34284
xdg_appsdir!$xdg_appsdir$ac_delim
34285
xdg_menudir!$xdg_menudir$ac_delim
34286
xdg_directorydir!$xdg_directorydir$ac_delim
34287
kde_templatesdir!$kde_templatesdir$ac_delim
34288
kde_servicesdir!$kde_servicesdir$ac_delim
34289
kde_servicetypesdir!$kde_servicetypesdir$ac_delim
34290
kde_moduledir!$kde_moduledir$ac_delim
34291
kdeinitdir!$kdeinitdir$ac_delim
34292
kde_styledir!$kde_styledir$ac_delim
34293
kde_widgetdir!$kde_widgetdir$ac_delim
34294
LIB_KDED!$LIB_KDED$ac_delim
34295
LIB_KDECORE!$LIB_KDECORE$ac_delim
34296
LIB_KDEUI!$LIB_KDEUI$ac_delim
34297
LIB_KIO!$LIB_KIO$ac_delim
34298
LIB_KJS!$LIB_KJS$ac_delim
34299
LIB_SMB!$LIB_SMB$ac_delim
34300
LIB_KAB!$LIB_KAB$ac_delim
34301
LIB_KABC!$LIB_KABC$ac_delim
34302
LIB_KHTML!$LIB_KHTML$ac_delim
34303
LIB_KSPELL!$LIB_KSPELL$ac_delim
34304
LIB_KPARTS!$LIB_KPARTS$ac_delim
34305
LIB_KDEPRINT!$LIB_KDEPRINT$ac_delim
34306
LIB_KUTILS!$LIB_KUTILS$ac_delim
34307
LIB_KDEPIM!$LIB_KDEPIM$ac_delim
34308
LIB_KIMPROXY!$LIB_KIMPROXY$ac_delim
34309
LIB_KNEWSTUFF!$LIB_KNEWSTUFF$ac_delim
34310
LIB_KDNSSD!$LIB_KDNSSD$ac_delim
34311
LIB_KUNITTEST!$LIB_KUNITTEST$ac_delim
34312
LIB_KSYCOCA!$LIB_KSYCOCA$ac_delim
34313
LIB_KFILE!$LIB_KFILE$ac_delim
34314
LIB_KFM!$LIB_KFM$ac_delim
34315
LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
34316
LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
34317
LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
34318
TOPSUBDIRS!$TOPSUBDIRS$ac_delim
34319
LIBOBJS!$LIBOBJS$ac_delim
34320
LTLIBOBJS!$LTLIBOBJS$ac_delim
34323
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
34325
elif $ac_last_try; then
34326
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34327
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34328
{ (exit 1); exit 1; }; }
34330
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34334
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34335
if test -n "$ac_eof"; then
34336
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34337
ac_eof=`expr $ac_eof + 1`
34340
cat >>$CONFIG_STATUS <<_ACEOF
34341
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34342
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34345
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34346
s/^/s,@/; s/!/@,|#_!!_#|/
34349
s/'"$ac_delim"'$/,g/; t
34351
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34352
' >>$CONFIG_STATUS <conf$$subs.sed
34353
rm -f conf$$subs.sed
34354
cat >>$CONFIG_STATUS <<_ACEOF
34361
# VPATH may cause trouble with some makes, so we remove $(srcdir),
34362
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34363
# trailing colons and then remove the whole line if VPATH becomes empty
34364
# (actually we leave an empty line to preserve line numbers).
34365
if test "x$srcdir" = x.; then
34366
ac_vpsub='/^[ ]*VPATH[ ]*=/{
34367
s/:*\$(srcdir):*/:/
34368
s/:*\${srcdir}:*/:/
34370
s/^\([^=]*=[ ]*\):*/\1/
34376
cat >>$CONFIG_STATUS <<\_ACEOF
34377
fi # test -n "$CONFIG_FILES"
34380
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34383
:[FHLC]) ac_mode=$ac_tag; continue;;
34385
case $ac_mode$ac_tag in
34387
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34388
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34389
{ (exit 1); exit 1; }; };;
34390
:[FH]-) ac_tag=-:-;;
34391
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34408
-) ac_f="$tmp/stdin";;
34409
*) # Look for the file first in the build tree, then in the source tree
34410
# (if the path is not absolute). The absolute path cannot be DOS-style,
34411
# because $ac_f cannot contain `:'.
34415
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34417
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34418
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34419
{ (exit 1); exit 1; }; };;
34421
ac_file_inputs="$ac_file_inputs $ac_f"
34424
# Let's still pretend it is `configure' which instantiates (i.e., don't
34425
# use $as_me), people would be surprised to read:
34426
# /* config.h. Generated by config.status. */
34427
configure_input="Generated from "`IFS=:
34428
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34429
if test x"$ac_file" != x-; then
34430
configure_input="$ac_file. $configure_input"
34431
{ echo "$as_me:$LINENO: creating $ac_file" >&5
34432
echo "$as_me: creating $ac_file" >&6;}
34436
*:-:* | *:-) cat >"$tmp/stdin";;
34441
ac_dir=`$as_dirname -- "$ac_file" ||
34442
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34443
X"$ac_file" : 'X\(//\)[^/]' \| \
34444
X"$ac_file" : 'X\(//\)$' \| \
34445
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34447
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34451
/^X\(\/\/\)[^/].*/{
34466
-*) as_dir=./$as_dir;;
34468
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34472
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34473
*) as_qdir=$as_dir;;
34475
as_dirs="'$as_qdir' $as_dirs"
34476
as_dir=`$as_dirname -- "$as_dir" ||
34477
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34478
X"$as_dir" : 'X\(//\)[^/]' \| \
34479
X"$as_dir" : 'X\(//\)$' \| \
34480
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34482
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34486
/^X\(\/\/\)[^/].*/{
34499
test -d "$as_dir" && break
34501
test -z "$as_dirs" || eval "mkdir $as_dirs"
34502
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34503
echo "$as_me: error: cannot create directory $as_dir" >&2;}
34504
{ (exit 1); exit 1; }; }; }
34508
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34510
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34511
# A ".." for each directory in $ac_dir_suffix.
34512
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34513
case $ac_top_builddir_sub in
34514
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34515
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34518
ac_abs_top_builddir=$ac_pwd
34519
ac_abs_builddir=$ac_pwd$ac_dir_suffix
34520
# for backward compatibility:
34521
ac_top_builddir=$ac_top_build_prefix
34524
.) # We are building in place.
34526
ac_top_srcdir=$ac_top_builddir_sub
34527
ac_abs_top_srcdir=$ac_pwd ;;
34528
[\\/]* | ?:[\\/]* ) # Absolute name.
34529
ac_srcdir=$srcdir$ac_dir_suffix;
34530
ac_top_srcdir=$srcdir
34531
ac_abs_top_srcdir=$srcdir ;;
34532
*) # Relative name.
34533
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34534
ac_top_srcdir=$ac_top_build_prefix$srcdir
34535
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34537
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34547
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34548
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34552
cat >>$CONFIG_STATUS <<\_ACEOF
34553
# If the template does not know about datarootdir, expand it.
34554
# FIXME: This hack should be removed a few years after 2.60.
34555
ac_datarootdir_hack=; ac_datarootdir_seen=
34557
case `sed -n '/datarootdir/ {
34566
' $ac_file_inputs` in
34567
*datarootdir*) ac_datarootdir_seen=yes;;
34568
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34569
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34570
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34572
cat >>$CONFIG_STATUS <<_ACEOF
34573
ac_datarootdir_hack='
34574
s&@datadir@&$datadir&g
34575
s&@docdir@&$docdir&g
34576
s&@infodir@&$infodir&g
34577
s&@localedir@&$localedir&g
34578
s&@mandir@&$mandir&g
34579
s&\\\${datarootdir}&$datarootdir&g' ;;
34583
# Neutralize VPATH when `$srcdir' = `.'.
34584
# Shell code in configure.ac might set extrasub.
34585
# FIXME: do we really want to maintain this feature?
34586
cat >>$CONFIG_STATUS <<_ACEOF
34590
cat >>$CONFIG_STATUS <<\_ACEOF
34592
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34593
s&@configure_input@&$configure_input&;t t
34594
s&@top_builddir@&$ac_top_builddir_sub&;t t
34595
s&@srcdir@&$ac_srcdir&;t t
34596
s&@abs_srcdir@&$ac_abs_srcdir&;t t
34597
s&@top_srcdir@&$ac_top_srcdir&;t t
34598
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34599
s&@builddir@&$ac_builddir&;t t
34600
s&@abs_builddir@&$ac_abs_builddir&;t t
34601
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34602
s&@INSTALL@&$ac_INSTALL&;t t
34603
$ac_datarootdir_hack
34604
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
34606
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34607
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34608
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34609
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34610
which seems to be undefined. Please make sure it is defined." >&5
34611
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34612
which seems to be undefined. Please make sure it is defined." >&2;}
34616
-) cat "$tmp/out"; rm -f "$tmp/out";;
34617
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34626
# Transform confdefs.h into a sed script `conftest.defines', that
34627
# substitutes the proper values into config.h.in to produce config.h.
34628
rm -f conftest.defines conftest.tail
34629
# First, append a space to every undef/define line, to ease matching.
34630
echo 's/$/ /' >conftest.defines
34631
# Then, protect against being on the right side of a sed subst, or in
34632
# an unquoted here document, in config.status. If some macros were
34633
# called several times there might be several #defines for the same
34634
# symbol, which is useless. But do not sort them, since the last
34635
# AC_DEFINE must be honored.
34636
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34637
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34638
# NAME is the cpp macro being defined, VALUE is the value it is being given.
34639
# PARAMS is the parameter list in the macro definition--in most cases, it's
34640
# just an empty string.
34641
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34642
ac_dB='\\)[ (].*,\\1define\\2'
34650
s/^[ ]*#[ ]*define[ ][ ]*//
34655
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34656
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34657
' >>conftest.defines
34659
# Remove the space that was appended to ease matching.
34660
# Then replace #undef with comments. This is necessary, for
34661
# example, in the case of _POSIX_SOURCE, which is predefined and required
34662
# on some systems where configure will not decide to define it.
34663
# (The regexp can be short, since the line contains either #define or #undef.)
34665
s,^[ #]*u.*,/* & */,' >>conftest.defines
34667
# Break up conftest.defines:
34668
ac_max_sed_lines=50
34670
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34671
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34672
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34674
ac_in='$ac_file_inputs'
34675
ac_out='"$tmp/out1"'
34676
ac_nxt='"$tmp/out2"'
34680
# Write a here document:
34681
cat >>$CONFIG_STATUS <<_ACEOF
34682
# First, check the format of the line:
34683
cat >"\$tmp/defines.sed" <<\\CEOF
34684
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34685
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34689
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34691
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34692
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34693
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34694
grep . conftest.tail >/dev/null || break
34695
rm -f conftest.defines
34696
mv conftest.tail conftest.defines
34698
rm -f conftest.defines conftest.tail
34700
echo "ac_result=$ac_in" >>$CONFIG_STATUS
34701
cat >>$CONFIG_STATUS <<\_ACEOF
34702
if test x"$ac_file" != x-; then
34703
echo "/* $configure_input */" >"$tmp/config.h"
34704
cat "$ac_result" >>"$tmp/config.h"
34705
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34706
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34707
echo "$as_me: $ac_file is unchanged" >&6;}
34710
mv "$tmp/config.h" $ac_file
34713
echo "/* $configure_input */"
34717
# Compute $ac_file's index in $config_headers.
34719
for _am_header in $config_headers :; do
34720
case $_am_header in
34721
$ac_file | $ac_file:* )
34724
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
34727
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
34728
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34729
X$ac_file : 'X\(//\)[^/]' \| \
34730
X$ac_file : 'X\(//\)$' \| \
34731
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
34733
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34737
/^X\(\/\/\)[^/].*/{
34749
s/.*/./; q'`/stamp-h$_am_stamp_count
34752
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34753
echo "$as_me: executing $ac_file commands" >&6;}
34758
case $ac_file$ac_mode in
34759
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34760
# Strip MF so we end up with the name of the file.
34761
mf=`echo "$mf" | sed -e 's/:.*$//'`
34762
# Check whether this is an Automake generated Makefile or not.
34763
# We used to match only the files named `Makefile.in', but
34764
# some people rename them; so instead we look at the file content.
34765
# Grep'ing the first line is not enough: some people post-process
34766
# each Makefile.in and add a new line on top of each file to say so.
34767
# So let's grep whole file.
34768
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34769
dirpart=`$as_dirname -- "$mf" ||
34770
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34771
X"$mf" : 'X\(//\)[^/]' \| \
34772
X"$mf" : 'X\(//\)$' \| \
34773
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34775
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34779
/^X\(\/\/\)[^/].*/{
34795
# Extract the definition of DEPDIR, am__include, and am__quote
34796
# from the Makefile without running `make'.
34797
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34798
test -z "$DEPDIR" && continue
34799
am__include=`sed -n 's/^am__include = //p' < "$mf"`
34800
test -z "am__include" && continue
34801
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34802
# When using ansi2knr, U may be empty or an underscore; expand it
34803
U=`sed -n 's/^U = //p' < "$mf"`
34804
# Find all dependency output files, they are included files with
34805
# $(DEPDIR) in their names. We invoke sed twice because it is the
34806
# simplest approach to changing $(DEPDIR) to its actual value in the
34808
for file in `sed -n "
34809
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34810
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34811
# Make sure the directory exists.
34812
test -f "$dirpart/$file" && continue
34813
fdir=`$as_dirname -- "$file" ||
34814
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34815
X"$file" : 'X\(//\)[^/]' \| \
34816
X"$file" : 'X\(//\)$' \| \
34817
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34819
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34823
/^X\(\/\/\)[^/].*/{
34836
{ as_dir=$dirpart/$fdir
34838
-*) as_dir=./$as_dir;;
34840
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34844
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34845
*) as_qdir=$as_dir;;
34847
as_dirs="'$as_qdir' $as_dirs"
34848
as_dir=`$as_dirname -- "$as_dir" ||
34849
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34850
X"$as_dir" : 'X\(//\)[^/]' \| \
34851
X"$as_dir" : 'X\(//\)$' \| \
34852
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34854
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34858
/^X\(\/\/\)[^/].*/{
34871
test -d "$as_dir" && break
34873
test -z "$as_dirs" || eval "mkdir $as_dirs"
34874
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34875
echo "$as_me: error: cannot create directory $as_dir" >&2;}
34876
{ (exit 1); exit 1; }; }; }
34877
# echo "creating $dirpart/$file"
34878
echo '# dummy' > "$dirpart/$file"
34887
{ (exit 0); exit 0; }
34889
if test "x$with_fast_perl" = "xyes"; then
34890
perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
34891
|| mv $CONFIG_STATUS.bak $CONFIG_STATUS
34892
rm -f $CONFIG_STATUS.bak
34894
chmod +x $CONFIG_STATUS
34895
ac_clean_files=$ac_clean_files_save
34898
# configure is writing to config.log, and then calls config.status.
34899
# config.status does its own redirection, appending to config.log.
34900
# Unfortunately, on DOS this fails, as config.log is still kept open
34901
# by configure, so config.status won't be able to write to it; its
34902
# output is simply discarded. So we exec the FD to /dev/null,
34903
# effectively closing config.log, so it can be properly (re)opened and
34904
# appended to by config.status. When coming back to configure, we
34905
# need to make the FD available again.
34906
if test "$no_create" != yes; then
34908
ac_config_status_args=
34909
test "$silent" = yes &&
34910
ac_config_status_args="$ac_config_status_args --quiet"
34912
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34914
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
34915
# would make configure fail if this is the last instruction.
34916
$ac_cs_success || { (exit 1); exit 1; }
34919
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
34920
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
34921
# And if so, warn when they don't match
34922
if test "$kde_libs_prefix" != "$given_prefix"; then
34923
# And if kde doesn't know about the prefix yet
34924
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
34925
if test $? -ne 0; then
34927
echo "Warning: you chose to install this package in $given_prefix,"
34928
echo "but KDE was found in $kde_libs_prefix."
34929
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
34930
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
34931
echo "Then restart KDE."
34937
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
34939
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
34940
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
34942
echo "For better performance, consider including the Qt visibility supporting patch"
34945
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
34947
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
34948
echo "everything will continue to work just fine without it."
34952
if test "$all_tests" = "bad"; then
34953
if test ! "$cache_file" = "/dev/null"; then
34955
echo "Please remove the file $cache_file after changing your setup"
34956
echo "so that configure will find the changes next time."
34961
echo "Good - your configure finished. Start make now"