65
126
# Name of the executable.
66
as_me=`$as_basename "$0" ||
127
as_me=`$as_basename -- "$0" ||
67
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
129
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
130
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
132
sed '/^.*\/\([^/][^/]*\)\/*$/{
150
if test "x$CONFIG_SHELL" = x; then
151
if (eval ":") 2>/dev/null; then
157
if test $as_have_required = yes && (eval ":
167
as_func_ret_success () {
170
as_func_ret_failure () {
175
if as_func_success; then
179
echo as_func_success failed.
182
if as_func_failure; then
184
echo as_func_failure succeeded.
187
if as_func_ret_success; then
191
echo as_func_ret_success failed.
194
if as_func_ret_failure; then
196
echo as_func_ret_failure succeeded.
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203
echo positional parameters were not saved.
206
test \$exitcode = 0) || { (exit 1); exit 1; }
211
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213
") 2> /dev/null; then
130
217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
221
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
224
for as_base in sh bash ksh sh5; do
225
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
for as_shell in $as_candidate_shells $SHELL; do
233
# Try only shells which exist, to save several forks.
234
if test -f "$as_shell" &&
235
{ ("$as_shell") 2> /dev/null <<\_ASEOF
236
# Be Bourne compatible
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241
# is contrary to our usage. Disable this feature.
242
alias -g '${1+"$@"}'='"$@"'
245
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247
BIN_SH=xpg4; export BIN_SH # for Tru64
248
DUALCASE=1; export DUALCASE # for MKS sh
253
CONFIG_SHELL=$as_shell
255
if { "$as_shell" 2> /dev/null <<\_ASEOF
256
# Be Bourne compatible
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261
# is contrary to our usage. Disable this feature.
262
alias -g '${1+"$@"}'='"$@"'
265
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267
BIN_SH=xpg4; export BIN_SH # for Tru64
268
DUALCASE=1; export DUALCASE # for MKS sh
280
as_func_ret_success () {
283
as_func_ret_failure () {
288
if as_func_success; then
292
echo as_func_success failed.
295
if as_func_failure; then
297
echo as_func_failure succeeded.
300
if as_func_ret_success; then
304
echo as_func_ret_success failed.
307
if as_func_ret_failure; then
309
echo as_func_ret_failure succeeded.
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
316
echo positional parameters were not saved.
319
test $exitcode = 0) || { (exit 1); exit 1; }
324
test "x$as_lineno_1" != "x$as_lineno_2" &&
325
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
if test "x$CONFIG_SHELL" != x; then
337
for as_var in BASH_ENV ENV
338
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345
if test $as_have_required = no; then
346
echo This script requires a shell more modern than all the
347
echo shells that I found on your system. Please install a
348
echo modern shell, or manually run the script under such a
349
echo shell if you do have one.
350
{ (exit 1); exit 1; }
360
(eval "as_func_return () {
369
as_func_ret_success () {
372
as_func_ret_failure () {
377
if as_func_success; then
381
echo as_func_success failed.
384
if as_func_failure; then
386
echo as_func_failure succeeded.
389
if as_func_ret_success; then
393
echo as_func_ret_success failed.
396
if as_func_ret_failure; then
398
echo as_func_ret_failure succeeded.
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405
echo positional parameters were not saved.
408
test \$exitcode = 0") || {
409
echo No shell found that supports shell functions.
410
echo Please tell autoconf@gnu.org about your system,
411
echo including any error possibly output before this
419
test "x$as_lineno_1" != "x$as_lineno_2" &&
420
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
156
422
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
423
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
424
# line-number line after each line using $LINENO; the second 'sed'
425
# does the real work. The second script uses 'N' to pair each
426
# line-number line with the line containing $LINENO, and appends
427
# trailing '-' during substitution so that $LINENO is not a special
162
429
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
430
# scripts with optimization help from Paolo Bonzini. Blame Lee
431
# E. McMahon (1931-1989) for sed's syntax. :-)
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
443
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
s,^['$as_cr_digits']*\n,,
173
446
' >$as_me.lineno &&
174
chmod +x $as_me.lineno ||
447
chmod +x "$as_me.lineno" ||
175
448
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
449
{ (exit 1); exit 1; }; }
178
451
# Don't try to exec as it changes $[0], causing all sort of problems
179
452
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
453
# original and so on. Autoconf is especially sensitive to this).
182
455
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
460
if (dirname -- /) >/dev/null 2>&1; then
466
ECHO_C= ECHO_N= ECHO_T=
470
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
194
if expr a : '\(a\)' >/dev/null 2>&1; then
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
478
test "X`expr 00001 : '.*\(...\)'`" = X001; then
200
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
201
491
echo >conf$$.file
202
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
211
500
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
rmdir conf$$.dir 2>/dev/null
218
508
if mkdir -p . 2>/dev/null; then
1065
1490
it to find libraries and programs with nonstandard names/locations.
1070
1496
if test "$ac_init_help" = "recursive"; then
1071
1497
# If there are subdirs, report their specific --help.
1073
1498
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074
test -d $ac_dir || continue
1499
test -d "$ac_dir" || continue
1077
if test "$ac_dir" != .; then
1503
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1078
1505
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079
# A "../" for each directory in $ac_dir_suffix.
1080
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082
ac_dir_suffix= ac_top_builddir=
1506
# A ".." for each directory in $ac_dir_suffix.
1507
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1508
case $ac_top_builddir_sub in
1509
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513
ac_abs_top_builddir=$ac_pwd
1514
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515
# for backward compatibility:
1516
ac_top_builddir=$ac_top_build_prefix
1085
1518
case $srcdir in
1086
.) # No --srcdir option. We are building in place.
1519
.) # We are building in place.
1088
if test -z "$ac_top_builddir"; then
1091
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093
[\\/]* | ?:[\\/]* ) # Absolute path.
1521
ac_top_srcdir=$ac_top_builddir_sub
1522
ac_abs_top_srcdir=$ac_pwd ;;
1523
[\\/]* | ?:[\\/]* ) # Absolute name.
1094
1524
ac_srcdir=$srcdir$ac_dir_suffix;
1095
ac_top_srcdir=$srcdir ;;
1097
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101
# Do not use `cd foo && pwd` to compute absolute paths, because
1102
# the directories may not exist.
1104
.) ac_abs_builddir="$ac_dir";;
1107
.) ac_abs_builddir=`pwd`;;
1108
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1112
case $ac_abs_builddir in
1113
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115
case ${ac_top_builddir}. in
1116
.) ac_abs_top_builddir=$ac_abs_builddir;;
1117
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121
case $ac_abs_builddir in
1122
.) ac_abs_srcdir=$ac_srcdir;;
1125
.) ac_abs_srcdir=$ac_abs_builddir;;
1126
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130
case $ac_abs_builddir in
1131
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133
case $ac_top_srcdir in
1134
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1135
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141
# Check for guested configure; otherwise get Cygnus style configure.
1142
if test -f $ac_srcdir/configure.gnu; then
1144
$SHELL $ac_srcdir/configure.gnu --help=recursive
1145
elif test -f $ac_srcdir/configure; then
1147
$SHELL $ac_srcdir/configure --help=recursive
1148
elif test -f $ac_srcdir/configure.ac ||
1149
test -f $ac_srcdir/configure.in; then
1151
$ac_configure --help
1525
ac_top_srcdir=$srcdir
1526
ac_abs_top_srcdir=$srcdir ;;
1528
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529
ac_top_srcdir=$ac_top_build_prefix$srcdir
1530
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
cd "$ac_dir" || { ac_status=$?; continue; }
1535
# Check for guested configure.
1536
if test -f "$ac_srcdir/configure.gnu"; then
1538
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539
elif test -f "$ac_srcdir/configure"; then
1541
$SHELL "$ac_srcdir/configure" --help=recursive
1153
1543
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545
cd "$ac_pwd" || { ac_status=$?; break; }
1159
test -n "$ac_init_help" && exit 0
1549
test -n "$ac_init_help" && exit $ac_status
1160
1550
if $ac_init_version; then
1162
libdebian-installer configure 0.36
1163
generated by GNU Autoconf 2.59
1552
libdebian-installer configure 0.42
1553
generated by GNU Autoconf 2.59d
1165
Copyright (C) 2003 Free Software Foundation, Inc.
1555
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1556
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1166
1557
This configure script is free software; the Free Software Foundation
1167
1558
gives unlimited permission to copy, distribute and modify it.
1562
cat >config.log <<_ACEOF
1173
1563
This file contains any messages produced by compilers while
1174
1564
running configure, to aid debugging if configure makes a mistake.
1176
It was created by libdebian-installer $as_me 0.36, which was
1177
generated by GNU Autoconf 2.59. Invocation command line was
1566
It was created by libdebian-installer $as_me 0.42, which was
1567
generated by GNU Autoconf 2.59d. Invocation command line was
1184
1575
## --------- ##
2544
2975
echo "$as_me: failed program was:" >&5
2545
2976
sed 's/^/| /' conftest.$ac_ext >&5
2549
2981
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550
2982
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2553
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2554
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2985
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2986
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2555
2987
GCC=`test $ac_compiler_gnu = yes && echo yes`
2556
2988
ac_test_CFLAGS=${CFLAGS+set}
2557
2989
ac_save_CFLAGS=$CFLAGS
2559
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2560
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2990
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2991
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2561
2992
if test "${ac_cv_prog_cc_g+set}" = set; then
2562
2993
echo $ECHO_N "(cached) $ECHO_C" >&6
2564
cat >conftest.$ac_ext <<_ACEOF
2567
cat confdefs.h >>conftest.$ac_ext
2568
cat >>conftest.$ac_ext <<_ACEOF
2569
/* end confdefs.h. */
2579
rm -f conftest.$ac_objext
2580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581
(eval $ac_compile) 2>conftest.er1
2583
grep -v '^ *+' conftest.er1 >conftest.err
2585
cat conftest.err >&5
2586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587
(exit $ac_status); } &&
2588
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593
(exit $ac_status); }; } &&
2594
{ ac_try='test -s conftest.$ac_objext'
2595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599
(exit $ac_status); }; }; then
2602
echo "$as_me: failed program was:" >&5
2603
sed 's/^/| /' conftest.$ac_ext >&5
2607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2995
ac_save_c_werror_flag=$ac_c_werror_flag
2996
ac_c_werror_flag=yes
2999
cat >conftest.$ac_ext <<_ACEOF
3002
cat confdefs.h >>conftest.$ac_ext
3003
cat >>conftest.$ac_ext <<_ACEOF
3004
/* end confdefs.h. */
3014
rm -f conftest.$ac_objext
3015
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3016
(eval $ac_compile) 2>conftest.er1
3018
grep -v '^ *+' conftest.er1 >conftest.err
3020
cat conftest.err >&5
3021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022
(exit $ac_status); } &&
3023
{ ac_try='test -z "$ac_c_werror_flag"
3024
|| test ! -s conftest.err'
3025
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029
(exit $ac_status); }; } &&
3030
{ ac_try='test -s conftest.$ac_objext'
3031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035
(exit $ac_status); }; }; then
3038
echo "$as_me: failed program was:" >&5
3039
sed 's/^/| /' conftest.$ac_ext >&5
3042
cat >conftest.$ac_ext <<_ACEOF
3045
cat confdefs.h >>conftest.$ac_ext
3046
cat >>conftest.$ac_ext <<_ACEOF
3047
/* end confdefs.h. */
3057
rm -f conftest.$ac_objext
3058
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059
(eval $ac_compile) 2>conftest.er1
3061
grep -v '^ *+' conftest.er1 >conftest.err
3063
cat conftest.err >&5
3064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065
(exit $ac_status); } &&
3066
{ ac_try='test -z "$ac_c_werror_flag"
3067
|| test ! -s conftest.err'
3068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072
(exit $ac_status); }; } &&
3073
{ ac_try='test -s conftest.$ac_objext'
3074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078
(exit $ac_status); }; }; then
3081
echo "$as_me: failed program was:" >&5
3082
sed 's/^/| /' conftest.$ac_ext >&5
3084
ac_c_werror_flag=$ac_save_c_werror_flag
3086
cat >conftest.$ac_ext <<_ACEOF
3089
cat confdefs.h >>conftest.$ac_ext
3090
cat >>conftest.$ac_ext <<_ACEOF
3091
/* end confdefs.h. */
3101
rm -f conftest.$ac_objext
3102
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103
(eval $ac_compile) 2>conftest.er1
3105
grep -v '^ *+' conftest.er1 >conftest.err
3107
cat conftest.err >&5
3108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109
(exit $ac_status); } &&
3110
{ ac_try='test -z "$ac_c_werror_flag"
3111
|| test ! -s conftest.err'
3112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116
(exit $ac_status); }; } &&
3117
{ ac_try='test -s conftest.$ac_objext'
3118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122
(exit $ac_status); }; }; then
3125
echo "$as_me: failed program was:" >&5
3126
sed 's/^/| /' conftest.$ac_ext >&5
3131
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3134
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3137
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138
ac_c_werror_flag=$ac_save_c_werror_flag
3140
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3141
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2611
3142
if test "$ac_test_CFLAGS" = set; then
2612
3143
CFLAGS=$ac_save_CFLAGS
2613
3144
elif test $ac_cv_prog_cc_g = yes; then
3239
3660
SED=$lt_cv_path_SED
3240
echo "$as_me:$LINENO: result: $SED" >&5
3241
echo "${ECHO_T}$SED" >&6
3243
echo "$as_me:$LINENO: checking for egrep" >&5
3244
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3245
if test "${ac_cv_prog_egrep+set}" = set; then
3246
echo $ECHO_N "(cached) $ECHO_C" >&6
3248
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3249
then ac_cv_prog_egrep='grep -E'
3250
else ac_cv_prog_egrep='egrep'
3253
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3254
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3255
EGREP=$ac_cv_prog_egrep
3259
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3661
{ echo "$as_me:$LINENO: result: $SED" >&5
3662
echo "${ECHO_T}$SED" >&6; }
3664
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3665
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3666
if test "${ac_cv_path_GREP+set}" = set; then
3667
echo $ECHO_N "(cached) $ECHO_C" >&6
3669
# Extract the first word of "grep ggrep" to use in msg output
3670
if test -z "$GREP"; then
3671
set dummy grep ggrep; ac_prog_name=$2
3672
if test "${ac_cv_path_GREP+set}" = set; then
3673
echo $ECHO_N "(cached) $ECHO_C" >&6
3675
ac_path_GREP_found=false
3676
# Loop through the user's path and test for each of PROGNAME-LIST
3677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681
test -z "$as_dir" && as_dir=.
3682
for ac_prog in grep ggrep; do
3683
for ac_exec_ext in '' $ac_executable_extensions; do
3684
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3685
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3686
# Check for GNU ac_path_GREP and select it if it is found.
3687
# Check for GNU $ac_path_GREP
3688
case `"$ac_path_GREP" --version 2>&1` in
3690
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3693
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696
cat "conftest.in" "conftest.in" >"conftest.tmp"
3697
mv "conftest.tmp" "conftest.in"
3698
cp "conftest.in" "conftest.nl"
3699
echo 'GREP' >> "conftest.nl"
3700
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702
ac_count=`expr $ac_count + 1`
3703
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704
# Best one so far, save it but keep looking for a better one
3705
ac_cv_path_GREP="$ac_path_GREP"
3706
ac_path_GREP_max=$ac_count
3708
# 10*(2^10) chars as input seems more than enough
3709
test $ac_count -gt 10 && break
3711
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715
$ac_path_GREP_found && break 3
3725
GREP="$ac_cv_path_GREP"
3726
if test -z "$GREP"; then
3727
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729
{ (exit 1); exit 1; }; }
3733
ac_cv_path_GREP=$GREP
3738
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3739
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3740
GREP="$ac_cv_path_GREP"
3743
{ echo "$as_me:$LINENO: checking for egrep" >&5
3744
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3745
if test "${ac_cv_path_EGREP+set}" = set; then
3746
echo $ECHO_N "(cached) $ECHO_C" >&6
3748
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3749
then ac_cv_path_EGREP="$GREP -E"
3751
# Extract the first word of "egrep" to use in msg output
3752
if test -z "$EGREP"; then
3753
set dummy egrep; ac_prog_name=$2
3754
if test "${ac_cv_path_EGREP+set}" = set; then
3755
echo $ECHO_N "(cached) $ECHO_C" >&6
3757
ac_path_EGREP_found=false
3758
# Loop through the user's path and test for each of PROGNAME-LIST
3759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763
test -z "$as_dir" && as_dir=.
3764
for ac_prog in egrep; do
3765
for ac_exec_ext in '' $ac_executable_extensions; do
3766
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3767
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3768
# Check for GNU ac_path_EGREP and select it if it is found.
3769
# Check for GNU $ac_path_EGREP
3770
case `"$ac_path_EGREP" --version 2>&1` in
3772
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3775
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778
cat "conftest.in" "conftest.in" >"conftest.tmp"
3779
mv "conftest.tmp" "conftest.in"
3780
cp "conftest.in" "conftest.nl"
3781
echo 'EGREP' >> "conftest.nl"
3782
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784
ac_count=`expr $ac_count + 1`
3785
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786
# Best one so far, save it but keep looking for a better one
3787
ac_cv_path_EGREP="$ac_path_EGREP"
3788
ac_path_EGREP_max=$ac_count
3790
# 10*(2^10) chars as input seems more than enough
3791
test $ac_count -gt 10 && break
3793
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797
$ac_path_EGREP_found && break 3
3807
EGREP="$ac_cv_path_EGREP"
3808
if test -z "$EGREP"; then
3809
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811
{ (exit 1); exit 1; }; }
3815
ac_cv_path_EGREP=$EGREP
3821
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3822
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3823
EGREP="$ac_cv_path_EGREP"
3827
# Check whether --with-gnu-ld was given.
3260
3828
if test "${with_gnu_ld+set}" = set; then
3261
withval="$with_gnu_ld"
3262
test "$withval" = no || with_gnu_ld=yes
3829
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3267
3835
if test "$GCC" = yes; then
3268
3836
# Check if gcc -print-prog-name=ld gives a path.
3269
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3270
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3837
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3838
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3273
3841
# gcc leaves a trailing carriage return which upsets mingw
4606
5242
echo "$as_me: failed program was:" >&5
4607
5243
sed 's/^/| /' conftest.$ac_ext >&5
4611
5248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612
5249
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4615
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4616
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5252
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5253
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4617
5254
GXX=`test $ac_compiler_gnu = yes && echo yes`
4618
5255
ac_test_CXXFLAGS=${CXXFLAGS+set}
4619
5256
ac_save_CXXFLAGS=$CXXFLAGS
4621
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4622
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5257
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5258
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4623
5259
if test "${ac_cv_prog_cxx_g+set}" = set; then
4624
5260
echo $ECHO_N "(cached) $ECHO_C" >&6
4626
cat >conftest.$ac_ext <<_ACEOF
4629
cat confdefs.h >>conftest.$ac_ext
4630
cat >>conftest.$ac_ext <<_ACEOF
4631
/* end confdefs.h. */
4641
rm -f conftest.$ac_objext
4642
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643
(eval $ac_compile) 2>conftest.er1
4645
grep -v '^ *+' conftest.er1 >conftest.err
4647
cat conftest.err >&5
4648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649
(exit $ac_status); } &&
4650
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655
(exit $ac_status); }; } &&
4656
{ ac_try='test -s conftest.$ac_objext'
4657
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661
(exit $ac_status); }; }; then
4662
ac_cv_prog_cxx_g=yes
4664
echo "$as_me: failed program was:" >&5
4665
sed 's/^/| /' conftest.$ac_ext >&5
4669
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4671
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4672
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5262
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5263
ac_cxx_werror_flag=yes
5266
cat >conftest.$ac_ext <<_ACEOF
5269
cat confdefs.h >>conftest.$ac_ext
5270
cat >>conftest.$ac_ext <<_ACEOF
5271
/* end confdefs.h. */
5281
rm -f conftest.$ac_objext
5282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283
(eval $ac_compile) 2>conftest.er1
5285
grep -v '^ *+' conftest.er1 >conftest.err
5287
cat conftest.err >&5
5288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289
(exit $ac_status); } &&
5290
{ ac_try='test -z "$ac_cxx_werror_flag"
5291
|| test ! -s conftest.err'
5292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
(exit $ac_status); }; } &&
5297
{ ac_try='test -s conftest.$ac_objext'
5298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302
(exit $ac_status); }; }; then
5303
ac_cv_prog_cxx_g=yes
5305
echo "$as_me: failed program was:" >&5
5306
sed 's/^/| /' conftest.$ac_ext >&5
5309
cat >conftest.$ac_ext <<_ACEOF
5312
cat confdefs.h >>conftest.$ac_ext
5313
cat >>conftest.$ac_ext <<_ACEOF
5314
/* end confdefs.h. */
5324
rm -f conftest.$ac_objext
5325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326
(eval $ac_compile) 2>conftest.er1
5328
grep -v '^ *+' conftest.er1 >conftest.err
5330
cat conftest.err >&5
5331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332
(exit $ac_status); } &&
5333
{ ac_try='test -z "$ac_cxx_werror_flag"
5334
|| test ! -s conftest.err'
5335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339
(exit $ac_status); }; } &&
5340
{ ac_try='test -s conftest.$ac_objext'
5341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345
(exit $ac_status); }; }; then
5348
echo "$as_me: failed program was:" >&5
5349
sed 's/^/| /' conftest.$ac_ext >&5
5351
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5353
cat >conftest.$ac_ext <<_ACEOF
5356
cat confdefs.h >>conftest.$ac_ext
5357
cat >>conftest.$ac_ext <<_ACEOF
5358
/* end confdefs.h. */
5368
rm -f conftest.$ac_objext
5369
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370
(eval $ac_compile) 2>conftest.er1
5372
grep -v '^ *+' conftest.er1 >conftest.err
5374
cat conftest.err >&5
5375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376
(exit $ac_status); } &&
5377
{ ac_try='test -z "$ac_cxx_werror_flag"
5378
|| test ! -s conftest.err'
5379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383
(exit $ac_status); }; } &&
5384
{ ac_try='test -s conftest.$ac_objext'
5385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389
(exit $ac_status); }; }; then
5390
ac_cv_prog_cxx_g=yes
5392
echo "$as_me: failed program was:" >&5
5393
sed 's/^/| /' conftest.$ac_ext >&5
5398
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5405
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5407
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5408
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4673
5409
if test "$ac_test_CXXFLAGS" = set; then
4674
5410
CXXFLAGS=$ac_save_CXXFLAGS
4675
5411
elif test $ac_cv_prog_cxx_g = yes; then
12077
13022
enable_fast_install=needless
12082
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12083
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12084
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12085
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12086
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12087
echo "$as_me:$LINENO: result: yes" >&5
12088
echo "${ECHO_T}yes" >&6
12090
# FIXME - insert some real tests, host_os isn't really good enough
12093
if test -n "$STRIP" ; then
12094
striplib="$STRIP -x"
12095
echo "$as_me:$LINENO: result: yes" >&5
12096
echo "${ECHO_T}yes" >&6
12098
echo "$as_me:$LINENO: result: no" >&5
12099
echo "${ECHO_T}no" >&6
12103
echo "$as_me:$LINENO: result: no" >&5
12104
echo "${ECHO_T}no" >&6
12109
if test "x$enable_dlopen" != xyes; then
12110
enable_dlopen=unknown
12111
enable_dlopen_self=unknown
12112
enable_dlopen_self_static=unknown
12119
lt_cv_dlopen="load_add_on"
12121
lt_cv_dlopen_self=yes
12125
lt_cv_dlopen="LoadLibrary"
12130
lt_cv_dlopen="dlopen"
12135
# if libdl is installed we need to link against it
12136
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12137
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12138
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12139
echo $ECHO_N "(cached) $ECHO_C" >&6
12141
ac_check_lib_save_LIBS=$LIBS
12143
cat >conftest.$ac_ext <<_ACEOF
12146
cat confdefs.h >>conftest.$ac_ext
12147
cat >>conftest.$ac_ext <<_ACEOF
12148
/* end confdefs.h. */
12150
/* Override any gcc2 internal prototype to avoid an error. */
12154
/* We use char because int might match the return type of a gcc2
12155
builtin and then its argument prototype would still apply. */
12165
rm -f conftest.$ac_objext conftest$ac_exeext
12166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167
(eval $ac_link) 2>conftest.er1
12169
grep -v '^ *+' conftest.er1 >conftest.err
12171
cat conftest.err >&5
12172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173
(exit $ac_status); } &&
12174
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176
(eval $ac_try) 2>&5
12178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179
(exit $ac_status); }; } &&
12180
{ ac_try='test -s conftest$ac_exeext'
12181
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182
(eval $ac_try) 2>&5
12184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185
(exit $ac_status); }; }; then
12186
ac_cv_lib_dl_dlopen=yes
12188
echo "$as_me: failed program was:" >&5
12189
sed 's/^/| /' conftest.$ac_ext >&5
12191
ac_cv_lib_dl_dlopen=no
12193
rm -f conftest.err conftest.$ac_objext \
12194
conftest$ac_exeext conftest.$ac_ext
12195
LIBS=$ac_check_lib_save_LIBS
12197
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12198
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12199
if test $ac_cv_lib_dl_dlopen = yes; then
12200
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12203
lt_cv_dlopen="dyld"
12205
lt_cv_dlopen_self=yes
12212
echo "$as_me:$LINENO: checking for shl_load" >&5
12213
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12214
if test "${ac_cv_func_shl_load+set}" = set; then
12215
echo $ECHO_N "(cached) $ECHO_C" >&6
12217
cat >conftest.$ac_ext <<_ACEOF
12220
cat confdefs.h >>conftest.$ac_ext
12221
cat >>conftest.$ac_ext <<_ACEOF
12222
/* end confdefs.h. */
12223
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12224
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12225
#define shl_load innocuous_shl_load
12227
/* System header to define __stub macros and hopefully few prototypes,
12228
which can conflict with char shl_load (); below.
12229
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12230
<limits.h> exists even on freestanding compilers. */
12233
# include <limits.h>
12235
# include <assert.h>
12240
/* Override any gcc2 internal prototype to avoid an error. */
12245
/* We use char because int might match the return type of a gcc2
12246
builtin and then its argument prototype would still apply. */
12248
/* The GNU C library defines this for functions which it implements
12249
to always fail with ENOSYS. Some functions are actually named
12250
something starting with __ and the normal name is an alias. */
12251
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12254
char (*f) () = shl_load;
12263
return f != shl_load;
12268
rm -f conftest.$ac_objext conftest$ac_exeext
12269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270
(eval $ac_link) 2>conftest.er1
12272
grep -v '^ *+' conftest.er1 >conftest.err
12274
cat conftest.err >&5
12275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276
(exit $ac_status); } &&
12277
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279
(eval $ac_try) 2>&5
12281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282
(exit $ac_status); }; } &&
12283
{ ac_try='test -s conftest$ac_exeext'
12284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285
(eval $ac_try) 2>&5
12287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288
(exit $ac_status); }; }; then
12289
ac_cv_func_shl_load=yes
12291
echo "$as_me: failed program was:" >&5
12292
sed 's/^/| /' conftest.$ac_ext >&5
12294
ac_cv_func_shl_load=no
12296
rm -f conftest.err conftest.$ac_objext \
12297
conftest$ac_exeext conftest.$ac_ext
12299
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12300
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12301
if test $ac_cv_func_shl_load = yes; then
12302
lt_cv_dlopen="shl_load"
12304
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12305
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12306
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12307
echo $ECHO_N "(cached) $ECHO_C" >&6
12309
ac_check_lib_save_LIBS=$LIBS
12311
cat >conftest.$ac_ext <<_ACEOF
12314
cat confdefs.h >>conftest.$ac_ext
12315
cat >>conftest.$ac_ext <<_ACEOF
12316
/* end confdefs.h. */
12318
/* Override any gcc2 internal prototype to avoid an error. */
12322
/* We use char because int might match the return type of a gcc2
12323
builtin and then its argument prototype would still apply. */
12333
rm -f conftest.$ac_objext conftest$ac_exeext
12334
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335
(eval $ac_link) 2>conftest.er1
12337
grep -v '^ *+' conftest.er1 >conftest.err
12339
cat conftest.err >&5
12340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
(exit $ac_status); } &&
12342
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344
(eval $ac_try) 2>&5
12346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
(exit $ac_status); }; } &&
12348
{ ac_try='test -s conftest$ac_exeext'
12349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350
(eval $ac_try) 2>&5
12352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353
(exit $ac_status); }; }; then
12354
ac_cv_lib_dld_shl_load=yes
12356
echo "$as_me: failed program was:" >&5
12357
sed 's/^/| /' conftest.$ac_ext >&5
12359
ac_cv_lib_dld_shl_load=no
12361
rm -f conftest.err conftest.$ac_objext \
12362
conftest$ac_exeext conftest.$ac_ext
12363
LIBS=$ac_check_lib_save_LIBS
12365
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12366
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12367
if test $ac_cv_lib_dld_shl_load = yes; then
12368
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12370
echo "$as_me:$LINENO: checking for dlopen" >&5
12371
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12372
if test "${ac_cv_func_dlopen+set}" = set; then
12373
echo $ECHO_N "(cached) $ECHO_C" >&6
12375
cat >conftest.$ac_ext <<_ACEOF
12378
cat confdefs.h >>conftest.$ac_ext
12379
cat >>conftest.$ac_ext <<_ACEOF
12380
/* end confdefs.h. */
12381
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12382
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12383
#define dlopen innocuous_dlopen
12385
/* System header to define __stub macros and hopefully few prototypes,
12386
which can conflict with char dlopen (); below.
12387
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12388
<limits.h> exists even on freestanding compilers. */
12391
# include <limits.h>
12393
# include <assert.h>
12398
/* Override any gcc2 internal prototype to avoid an error. */
12403
/* We use char because int might match the return type of a gcc2
12404
builtin and then its argument prototype would still apply. */
12406
/* The GNU C library defines this for functions which it implements
12407
to always fail with ENOSYS. Some functions are actually named
12408
something starting with __ and the normal name is an alias. */
12409
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12412
char (*f) () = dlopen;
12421
return f != dlopen;
12426
rm -f conftest.$ac_objext conftest$ac_exeext
12427
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428
(eval $ac_link) 2>conftest.er1
12430
grep -v '^ *+' conftest.er1 >conftest.err
12432
cat conftest.err >&5
12433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434
(exit $ac_status); } &&
12435
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12436
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437
(eval $ac_try) 2>&5
12439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440
(exit $ac_status); }; } &&
12441
{ ac_try='test -s conftest$ac_exeext'
12442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443
(eval $ac_try) 2>&5
12445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446
(exit $ac_status); }; }; then
12447
ac_cv_func_dlopen=yes
12449
echo "$as_me: failed program was:" >&5
12450
sed 's/^/| /' conftest.$ac_ext >&5
12452
ac_cv_func_dlopen=no
12454
rm -f conftest.err conftest.$ac_objext \
12455
conftest$ac_exeext conftest.$ac_ext
12457
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12458
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12459
if test $ac_cv_func_dlopen = yes; then
12460
lt_cv_dlopen="dlopen"
12462
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12463
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12464
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12465
echo $ECHO_N "(cached) $ECHO_C" >&6
12467
ac_check_lib_save_LIBS=$LIBS
12469
cat >conftest.$ac_ext <<_ACEOF
12472
cat confdefs.h >>conftest.$ac_ext
12473
cat >>conftest.$ac_ext <<_ACEOF
12474
/* end confdefs.h. */
12476
/* Override any gcc2 internal prototype to avoid an error. */
12480
/* We use char because int might match the return type of a gcc2
12481
builtin and then its argument prototype would still apply. */
12491
rm -f conftest.$ac_objext conftest$ac_exeext
12492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493
(eval $ac_link) 2>conftest.er1
12495
grep -v '^ *+' conftest.er1 >conftest.err
12497
cat conftest.err >&5
12498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499
(exit $ac_status); } &&
12500
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502
(eval $ac_try) 2>&5
12504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505
(exit $ac_status); }; } &&
12506
{ ac_try='test -s conftest$ac_exeext'
12507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508
(eval $ac_try) 2>&5
12510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511
(exit $ac_status); }; }; then
12512
ac_cv_lib_dl_dlopen=yes
12514
echo "$as_me: failed program was:" >&5
12515
sed 's/^/| /' conftest.$ac_ext >&5
12517
ac_cv_lib_dl_dlopen=no
12519
rm -f conftest.err conftest.$ac_objext \
12520
conftest$ac_exeext conftest.$ac_ext
12521
LIBS=$ac_check_lib_save_LIBS
12523
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12524
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12525
if test $ac_cv_lib_dl_dlopen = yes; then
12526
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12528
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12529
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12530
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12531
echo $ECHO_N "(cached) $ECHO_C" >&6
12533
ac_check_lib_save_LIBS=$LIBS
12534
LIBS="-lsvld $LIBS"
12535
cat >conftest.$ac_ext <<_ACEOF
12538
cat confdefs.h >>conftest.$ac_ext
12539
cat >>conftest.$ac_ext <<_ACEOF
12540
/* end confdefs.h. */
12542
/* Override any gcc2 internal prototype to avoid an error. */
12546
/* We use char because int might match the return type of a gcc2
12547
builtin and then its argument prototype would still apply. */
12557
rm -f conftest.$ac_objext conftest$ac_exeext
12558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559
(eval $ac_link) 2>conftest.er1
12561
grep -v '^ *+' conftest.er1 >conftest.err
12563
cat conftest.err >&5
12564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565
(exit $ac_status); } &&
12566
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568
(eval $ac_try) 2>&5
12570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571
(exit $ac_status); }; } &&
12572
{ ac_try='test -s conftest$ac_exeext'
12573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574
(eval $ac_try) 2>&5
12576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577
(exit $ac_status); }; }; then
12578
ac_cv_lib_svld_dlopen=yes
12580
echo "$as_me: failed program was:" >&5
12581
sed 's/^/| /' conftest.$ac_ext >&5
12583
ac_cv_lib_svld_dlopen=no
12585
rm -f conftest.err conftest.$ac_objext \
12586
conftest$ac_exeext conftest.$ac_ext
12587
LIBS=$ac_check_lib_save_LIBS
12589
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12590
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12591
if test $ac_cv_lib_svld_dlopen = yes; then
12592
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12594
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12595
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12596
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12597
echo $ECHO_N "(cached) $ECHO_C" >&6
12599
ac_check_lib_save_LIBS=$LIBS
12601
cat >conftest.$ac_ext <<_ACEOF
12604
cat confdefs.h >>conftest.$ac_ext
12605
cat >>conftest.$ac_ext <<_ACEOF
12606
/* end confdefs.h. */
12608
/* Override any gcc2 internal prototype to avoid an error. */
12612
/* We use char because int might match the return type of a gcc2
12613
builtin and then its argument prototype would still apply. */
12623
rm -f conftest.$ac_objext conftest$ac_exeext
12624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625
(eval $ac_link) 2>conftest.er1
12627
grep -v '^ *+' conftest.er1 >conftest.err
12629
cat conftest.err >&5
12630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631
(exit $ac_status); } &&
12632
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634
(eval $ac_try) 2>&5
12636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637
(exit $ac_status); }; } &&
12638
{ ac_try='test -s conftest$ac_exeext'
12639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640
(eval $ac_try) 2>&5
12642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643
(exit $ac_status); }; }; then
12644
ac_cv_lib_dld_dld_link=yes
12646
echo "$as_me: failed program was:" >&5
12647
sed 's/^/| /' conftest.$ac_ext >&5
12649
ac_cv_lib_dld_dld_link=no
12651
rm -f conftest.err conftest.$ac_objext \
12652
conftest$ac_exeext conftest.$ac_ext
12653
LIBS=$ac_check_lib_save_LIBS
12655
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12656
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12657
if test $ac_cv_lib_dld_dld_link = yes; then
12658
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12679
if test "x$lt_cv_dlopen" != xno; then
12685
case $lt_cv_dlopen in
12687
save_CPPFLAGS="$CPPFLAGS"
12688
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12690
save_LDFLAGS="$LDFLAGS"
12691
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12694
LIBS="$lt_cv_dlopen_libs $LIBS"
12696
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12697
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12698
if test "${lt_cv_dlopen_self+set}" = set; then
12699
echo $ECHO_N "(cached) $ECHO_C" >&6
12701
if test "$cross_compiling" = yes; then :
12702
lt_cv_dlopen_self=cross
12704
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12705
lt_status=$lt_dlunknown
12706
cat > conftest.$ac_ext <<EOF
12707
#line 12707 "configure"
12708
#include "confdefs.h"
12717
# define LT_DLGLOBAL RTLD_GLOBAL
12720
# define LT_DLGLOBAL DL_GLOBAL
12722
# define LT_DLGLOBAL 0
12726
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12727
find out it does not work in some platform. */
12728
#ifndef LT_DLLAZY_OR_NOW
12730
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12733
# define LT_DLLAZY_OR_NOW DL_LAZY
12736
# define LT_DLLAZY_OR_NOW RTLD_NOW
12739
# define LT_DLLAZY_OR_NOW DL_NOW
12741
# define LT_DLLAZY_OR_NOW 0
12749
extern "C" void exit (int);
12752
void fnord() { int i=42;}
12755
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12756
int status = $lt_dlunknown;
12760
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12761
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12762
/* dlclose (self); */
12768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769
(eval $ac_link) 2>&5
12771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12773
(./conftest; exit; ) >&5 2>/dev/null
12775
case x$lt_status in
12776
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12777
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12778
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12781
# compilation failed
12782
lt_cv_dlopen_self=no
12789
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12790
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12792
if test "x$lt_cv_dlopen_self" = xyes; then
12793
LDFLAGS="$LDFLAGS $link_static_flag"
12794
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12795
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12796
if test "${lt_cv_dlopen_self_static+set}" = set; then
12797
echo $ECHO_N "(cached) $ECHO_C" >&6
12799
if test "$cross_compiling" = yes; then :
12800
lt_cv_dlopen_self_static=cross
12802
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12803
lt_status=$lt_dlunknown
12804
cat > conftest.$ac_ext <<EOF
12805
#line 12805 "configure"
12806
#include "confdefs.h"
12815
# define LT_DLGLOBAL RTLD_GLOBAL
12818
# define LT_DLGLOBAL DL_GLOBAL
12820
# define LT_DLGLOBAL 0
12824
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12825
find out it does not work in some platform. */
12826
#ifndef LT_DLLAZY_OR_NOW
12828
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12831
# define LT_DLLAZY_OR_NOW DL_LAZY
12834
# define LT_DLLAZY_OR_NOW RTLD_NOW
12837
# define LT_DLLAZY_OR_NOW DL_NOW
12839
# define LT_DLLAZY_OR_NOW 0
12847
extern "C" void exit (int);
12850
void fnord() { int i=42;}
12853
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12854
int status = $lt_dlunknown;
12858
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12859
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12860
/* dlclose (self); */
12866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12867
(eval $ac_link) 2>&5
12869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12871
(./conftest; exit; ) >&5 2>/dev/null
12873
case x$lt_status in
12874
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12875
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12876
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12879
# compilation failed
12880
lt_cv_dlopen_self_static=no
12887
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12888
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12891
CPPFLAGS="$save_CPPFLAGS"
12892
LDFLAGS="$save_LDFLAGS"
12897
case $lt_cv_dlopen_self in
12898
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12899
*) enable_dlopen_self=unknown ;;
12902
case $lt_cv_dlopen_self_static in
12903
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12904
*) enable_dlopen_self_static=unknown ;;
12909
13026
# The else clause should only fire when bootstrapping the
12910
13027
# libtool distribution, otherwise you forgot to ship ltmain.sh
17839
18189
enable_fast_install=needless
17844
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17845
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17846
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17847
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17848
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17849
echo "$as_me:$LINENO: result: yes" >&5
17850
echo "${ECHO_T}yes" >&6
17852
# FIXME - insert some real tests, host_os isn't really good enough
17855
if test -n "$STRIP" ; then
17856
striplib="$STRIP -x"
17857
echo "$as_me:$LINENO: result: yes" >&5
17858
echo "${ECHO_T}yes" >&6
17860
echo "$as_me:$LINENO: result: no" >&5
17861
echo "${ECHO_T}no" >&6
17865
echo "$as_me:$LINENO: result: no" >&5
17866
echo "${ECHO_T}no" >&6
17871
if test "x$enable_dlopen" != xyes; then
17872
enable_dlopen=unknown
17873
enable_dlopen_self=unknown
17874
enable_dlopen_self_static=unknown
17881
lt_cv_dlopen="load_add_on"
17883
lt_cv_dlopen_self=yes
17887
lt_cv_dlopen="LoadLibrary"
17892
lt_cv_dlopen="dlopen"
17897
# if libdl is installed we need to link against it
17898
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17899
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17900
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17901
echo $ECHO_N "(cached) $ECHO_C" >&6
17903
ac_check_lib_save_LIBS=$LIBS
17905
cat >conftest.$ac_ext <<_ACEOF
17908
cat confdefs.h >>conftest.$ac_ext
17909
cat >>conftest.$ac_ext <<_ACEOF
17910
/* end confdefs.h. */
17912
/* Override any gcc2 internal prototype to avoid an error. */
17916
/* We use char because int might match the return type of a gcc2
17917
builtin and then its argument prototype would still apply. */
17927
rm -f conftest.$ac_objext conftest$ac_exeext
17928
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929
(eval $ac_link) 2>conftest.er1
17931
grep -v '^ *+' conftest.er1 >conftest.err
17933
cat conftest.err >&5
17934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935
(exit $ac_status); } &&
17936
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938
(eval $ac_try) 2>&5
17940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941
(exit $ac_status); }; } &&
17942
{ ac_try='test -s conftest$ac_exeext'
17943
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944
(eval $ac_try) 2>&5
17946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947
(exit $ac_status); }; }; then
17948
ac_cv_lib_dl_dlopen=yes
17950
echo "$as_me: failed program was:" >&5
17951
sed 's/^/| /' conftest.$ac_ext >&5
17953
ac_cv_lib_dl_dlopen=no
17955
rm -f conftest.err conftest.$ac_objext \
17956
conftest$ac_exeext conftest.$ac_ext
17957
LIBS=$ac_check_lib_save_LIBS
17959
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17960
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17961
if test $ac_cv_lib_dl_dlopen = yes; then
17962
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17965
lt_cv_dlopen="dyld"
17967
lt_cv_dlopen_self=yes
17974
echo "$as_me:$LINENO: checking for shl_load" >&5
17975
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17976
if test "${ac_cv_func_shl_load+set}" = set; then
17977
echo $ECHO_N "(cached) $ECHO_C" >&6
17979
cat >conftest.$ac_ext <<_ACEOF
17982
cat confdefs.h >>conftest.$ac_ext
17983
cat >>conftest.$ac_ext <<_ACEOF
17984
/* end confdefs.h. */
17985
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17986
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987
#define shl_load innocuous_shl_load
17989
/* System header to define __stub macros and hopefully few prototypes,
17990
which can conflict with char shl_load (); below.
17991
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992
<limits.h> exists even on freestanding compilers. */
17995
# include <limits.h>
17997
# include <assert.h>
18002
/* Override any gcc2 internal prototype to avoid an error. */
18007
/* We use char because int might match the return type of a gcc2
18008
builtin and then its argument prototype would still apply. */
18010
/* The GNU C library defines this for functions which it implements
18011
to always fail with ENOSYS. Some functions are actually named
18012
something starting with __ and the normal name is an alias. */
18013
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18016
char (*f) () = shl_load;
18025
return f != shl_load;
18030
rm -f conftest.$ac_objext conftest$ac_exeext
18031
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032
(eval $ac_link) 2>conftest.er1
18034
grep -v '^ *+' conftest.er1 >conftest.err
18036
cat conftest.err >&5
18037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038
(exit $ac_status); } &&
18039
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041
(eval $ac_try) 2>&5
18043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044
(exit $ac_status); }; } &&
18045
{ ac_try='test -s conftest$ac_exeext'
18046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047
(eval $ac_try) 2>&5
18049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050
(exit $ac_status); }; }; then
18051
ac_cv_func_shl_load=yes
18053
echo "$as_me: failed program was:" >&5
18054
sed 's/^/| /' conftest.$ac_ext >&5
18056
ac_cv_func_shl_load=no
18058
rm -f conftest.err conftest.$ac_objext \
18059
conftest$ac_exeext conftest.$ac_ext
18061
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18062
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18063
if test $ac_cv_func_shl_load = yes; then
18064
lt_cv_dlopen="shl_load"
18066
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18067
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18068
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18069
echo $ECHO_N "(cached) $ECHO_C" >&6
18071
ac_check_lib_save_LIBS=$LIBS
18073
cat >conftest.$ac_ext <<_ACEOF
18076
cat confdefs.h >>conftest.$ac_ext
18077
cat >>conftest.$ac_ext <<_ACEOF
18078
/* end confdefs.h. */
18080
/* Override any gcc2 internal prototype to avoid an error. */
18084
/* We use char because int might match the return type of a gcc2
18085
builtin and then its argument prototype would still apply. */
18095
rm -f conftest.$ac_objext conftest$ac_exeext
18096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097
(eval $ac_link) 2>conftest.er1
18099
grep -v '^ *+' conftest.er1 >conftest.err
18101
cat conftest.err >&5
18102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103
(exit $ac_status); } &&
18104
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18105
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106
(eval $ac_try) 2>&5
18108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109
(exit $ac_status); }; } &&
18110
{ ac_try='test -s conftest$ac_exeext'
18111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112
(eval $ac_try) 2>&5
18114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115
(exit $ac_status); }; }; then
18116
ac_cv_lib_dld_shl_load=yes
18118
echo "$as_me: failed program was:" >&5
18119
sed 's/^/| /' conftest.$ac_ext >&5
18121
ac_cv_lib_dld_shl_load=no
18123
rm -f conftest.err conftest.$ac_objext \
18124
conftest$ac_exeext conftest.$ac_ext
18125
LIBS=$ac_check_lib_save_LIBS
18127
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18128
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18129
if test $ac_cv_lib_dld_shl_load = yes; then
18130
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18132
echo "$as_me:$LINENO: checking for dlopen" >&5
18133
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18134
if test "${ac_cv_func_dlopen+set}" = set; then
18135
echo $ECHO_N "(cached) $ECHO_C" >&6
18137
cat >conftest.$ac_ext <<_ACEOF
18140
cat confdefs.h >>conftest.$ac_ext
18141
cat >>conftest.$ac_ext <<_ACEOF
18142
/* end confdefs.h. */
18143
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18144
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145
#define dlopen innocuous_dlopen
18147
/* System header to define __stub macros and hopefully few prototypes,
18148
which can conflict with char dlopen (); below.
18149
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150
<limits.h> exists even on freestanding compilers. */
18153
# include <limits.h>
18155
# include <assert.h>
18160
/* Override any gcc2 internal prototype to avoid an error. */
18165
/* We use char because int might match the return type of a gcc2
18166
builtin and then its argument prototype would still apply. */
18168
/* The GNU C library defines this for functions which it implements
18169
to always fail with ENOSYS. Some functions are actually named
18170
something starting with __ and the normal name is an alias. */
18171
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18174
char (*f) () = dlopen;
18183
return f != dlopen;
18188
rm -f conftest.$ac_objext conftest$ac_exeext
18189
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190
(eval $ac_link) 2>conftest.er1
18192
grep -v '^ *+' conftest.er1 >conftest.err
18194
cat conftest.err >&5
18195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196
(exit $ac_status); } &&
18197
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199
(eval $ac_try) 2>&5
18201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202
(exit $ac_status); }; } &&
18203
{ ac_try='test -s conftest$ac_exeext'
18204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205
(eval $ac_try) 2>&5
18207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208
(exit $ac_status); }; }; then
18209
ac_cv_func_dlopen=yes
18211
echo "$as_me: failed program was:" >&5
18212
sed 's/^/| /' conftest.$ac_ext >&5
18214
ac_cv_func_dlopen=no
18216
rm -f conftest.err conftest.$ac_objext \
18217
conftest$ac_exeext conftest.$ac_ext
18219
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18220
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18221
if test $ac_cv_func_dlopen = yes; then
18222
lt_cv_dlopen="dlopen"
18224
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18225
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18226
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18227
echo $ECHO_N "(cached) $ECHO_C" >&6
18229
ac_check_lib_save_LIBS=$LIBS
18231
cat >conftest.$ac_ext <<_ACEOF
18234
cat confdefs.h >>conftest.$ac_ext
18235
cat >>conftest.$ac_ext <<_ACEOF
18236
/* end confdefs.h. */
18238
/* Override any gcc2 internal prototype to avoid an error. */
18242
/* We use char because int might match the return type of a gcc2
18243
builtin and then its argument prototype would still apply. */
18253
rm -f conftest.$ac_objext conftest$ac_exeext
18254
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255
(eval $ac_link) 2>conftest.er1
18257
grep -v '^ *+' conftest.er1 >conftest.err
18259
cat conftest.err >&5
18260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261
(exit $ac_status); } &&
18262
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264
(eval $ac_try) 2>&5
18266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267
(exit $ac_status); }; } &&
18268
{ ac_try='test -s conftest$ac_exeext'
18269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270
(eval $ac_try) 2>&5
18272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273
(exit $ac_status); }; }; then
18274
ac_cv_lib_dl_dlopen=yes
18276
echo "$as_me: failed program was:" >&5
18277
sed 's/^/| /' conftest.$ac_ext >&5
18279
ac_cv_lib_dl_dlopen=no
18281
rm -f conftest.err conftest.$ac_objext \
18282
conftest$ac_exeext conftest.$ac_ext
18283
LIBS=$ac_check_lib_save_LIBS
18285
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18286
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18287
if test $ac_cv_lib_dl_dlopen = yes; then
18288
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18290
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18291
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18292
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18293
echo $ECHO_N "(cached) $ECHO_C" >&6
18295
ac_check_lib_save_LIBS=$LIBS
18296
LIBS="-lsvld $LIBS"
18297
cat >conftest.$ac_ext <<_ACEOF
18300
cat confdefs.h >>conftest.$ac_ext
18301
cat >>conftest.$ac_ext <<_ACEOF
18302
/* end confdefs.h. */
18304
/* Override any gcc2 internal prototype to avoid an error. */
18308
/* We use char because int might match the return type of a gcc2
18309
builtin and then its argument prototype would still apply. */
18319
rm -f conftest.$ac_objext conftest$ac_exeext
18320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18321
(eval $ac_link) 2>conftest.er1
18323
grep -v '^ *+' conftest.er1 >conftest.err
18325
cat conftest.err >&5
18326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327
(exit $ac_status); } &&
18328
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330
(eval $ac_try) 2>&5
18332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333
(exit $ac_status); }; } &&
18334
{ ac_try='test -s conftest$ac_exeext'
18335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336
(eval $ac_try) 2>&5
18338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339
(exit $ac_status); }; }; then
18340
ac_cv_lib_svld_dlopen=yes
18342
echo "$as_me: failed program was:" >&5
18343
sed 's/^/| /' conftest.$ac_ext >&5
18345
ac_cv_lib_svld_dlopen=no
18347
rm -f conftest.err conftest.$ac_objext \
18348
conftest$ac_exeext conftest.$ac_ext
18349
LIBS=$ac_check_lib_save_LIBS
18351
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18352
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18353
if test $ac_cv_lib_svld_dlopen = yes; then
18354
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18356
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18357
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18358
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18359
echo $ECHO_N "(cached) $ECHO_C" >&6
18361
ac_check_lib_save_LIBS=$LIBS
18363
cat >conftest.$ac_ext <<_ACEOF
18366
cat confdefs.h >>conftest.$ac_ext
18367
cat >>conftest.$ac_ext <<_ACEOF
18368
/* end confdefs.h. */
18370
/* Override any gcc2 internal prototype to avoid an error. */
18374
/* We use char because int might match the return type of a gcc2
18375
builtin and then its argument prototype would still apply. */
18385
rm -f conftest.$ac_objext conftest$ac_exeext
18386
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387
(eval $ac_link) 2>conftest.er1
18389
grep -v '^ *+' conftest.er1 >conftest.err
18391
cat conftest.err >&5
18392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393
(exit $ac_status); } &&
18394
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18395
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396
(eval $ac_try) 2>&5
18398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399
(exit $ac_status); }; } &&
18400
{ ac_try='test -s conftest$ac_exeext'
18401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402
(eval $ac_try) 2>&5
18404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405
(exit $ac_status); }; }; then
18406
ac_cv_lib_dld_dld_link=yes
18408
echo "$as_me: failed program was:" >&5
18409
sed 's/^/| /' conftest.$ac_ext >&5
18411
ac_cv_lib_dld_dld_link=no
18413
rm -f conftest.err conftest.$ac_objext \
18414
conftest$ac_exeext conftest.$ac_ext
18415
LIBS=$ac_check_lib_save_LIBS
18417
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18418
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18419
if test $ac_cv_lib_dld_dld_link = yes; then
18420
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18441
if test "x$lt_cv_dlopen" != xno; then
18447
case $lt_cv_dlopen in
18449
save_CPPFLAGS="$CPPFLAGS"
18450
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18452
save_LDFLAGS="$LDFLAGS"
18453
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18456
LIBS="$lt_cv_dlopen_libs $LIBS"
18458
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18459
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18460
if test "${lt_cv_dlopen_self+set}" = set; then
18461
echo $ECHO_N "(cached) $ECHO_C" >&6
18463
if test "$cross_compiling" = yes; then :
18464
lt_cv_dlopen_self=cross
18466
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18467
lt_status=$lt_dlunknown
18468
cat > conftest.$ac_ext <<EOF
18469
#line 18469 "configure"
18470
#include "confdefs.h"
18479
# define LT_DLGLOBAL RTLD_GLOBAL
18482
# define LT_DLGLOBAL DL_GLOBAL
18484
# define LT_DLGLOBAL 0
18488
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18489
find out it does not work in some platform. */
18490
#ifndef LT_DLLAZY_OR_NOW
18492
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18495
# define LT_DLLAZY_OR_NOW DL_LAZY
18498
# define LT_DLLAZY_OR_NOW RTLD_NOW
18501
# define LT_DLLAZY_OR_NOW DL_NOW
18503
# define LT_DLLAZY_OR_NOW 0
18511
extern "C" void exit (int);
18514
void fnord() { int i=42;}
18517
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18518
int status = $lt_dlunknown;
18522
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18523
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18524
/* dlclose (self); */
18530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18531
(eval $ac_link) 2>&5
18533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18535
(./conftest; exit; ) >&5 2>/dev/null
18537
case x$lt_status in
18538
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18539
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18540
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18543
# compilation failed
18544
lt_cv_dlopen_self=no
18551
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18552
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18554
if test "x$lt_cv_dlopen_self" = xyes; then
18555
LDFLAGS="$LDFLAGS $link_static_flag"
18556
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18557
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18558
if test "${lt_cv_dlopen_self_static+set}" = set; then
18559
echo $ECHO_N "(cached) $ECHO_C" >&6
18561
if test "$cross_compiling" = yes; then :
18562
lt_cv_dlopen_self_static=cross
18564
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18565
lt_status=$lt_dlunknown
18566
cat > conftest.$ac_ext <<EOF
18567
#line 18567 "configure"
18568
#include "confdefs.h"
18577
# define LT_DLGLOBAL RTLD_GLOBAL
18580
# define LT_DLGLOBAL DL_GLOBAL
18582
# define LT_DLGLOBAL 0
18586
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18587
find out it does not work in some platform. */
18588
#ifndef LT_DLLAZY_OR_NOW
18590
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18593
# define LT_DLLAZY_OR_NOW DL_LAZY
18596
# define LT_DLLAZY_OR_NOW RTLD_NOW
18599
# define LT_DLLAZY_OR_NOW DL_NOW
18601
# define LT_DLLAZY_OR_NOW 0
18609
extern "C" void exit (int);
18612
void fnord() { int i=42;}
18615
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18616
int status = $lt_dlunknown;
18620
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18621
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18622
/* dlclose (self); */
18628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18629
(eval $ac_link) 2>&5
18631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18633
(./conftest; exit; ) >&5 2>/dev/null
18635
case x$lt_status in
18636
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18637
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18638
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18641
# compilation failed
18642
lt_cv_dlopen_self_static=no
18649
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18650
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18653
CPPFLAGS="$save_CPPFLAGS"
18654
LDFLAGS="$save_LDFLAGS"
18659
case $lt_cv_dlopen_self in
18660
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18661
*) enable_dlopen_self=unknown ;;
18664
case $lt_cv_dlopen_self_static in
18665
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18666
*) enable_dlopen_self_static=unknown ;;
18671
18193
# The else clause should only fire when bootstrapping the
18672
18194
# libtool distribution, otherwise you forgot to ship ltmain.sh
20184
19783
# Name of the executable.
20185
as_me=`$as_basename "$0" ||
19784
as_me=`$as_basename -- "$0" ||
20186
19785
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20187
19786
X"$0" : 'X\(//\)$' \| \
20188
X"$0" : 'X\(/\)$' \| \
20189
. : '\(.\)' 2>/dev/null ||
19787
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20190
19788
echo X/"$0" |
20191
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20192
/^X\/\(\/\/\)$/{ s//\1/; q; }
20193
/^X\/\(\/\).*/{ s//\1/; q; }
20197
# PATH needs CR, and LINENO needs CR and PATH.
20198
# Avoid depending upon Character Ranges.
20199
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20200
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20201
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20202
as_cr_digits='0123456789'
20203
as_cr_alnum=$as_cr_Letters$as_cr_digits
20205
# The user is always right.
20206
if test "${PATH_SEPARATOR+set}" != set; then
20207
echo "#! /bin/sh" >conf$$.sh
20208
echo "exit 0" >>conf$$.sh
20210
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20219
as_lineno_1=$LINENO
20220
as_lineno_2=$LINENO
20221
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20222
test "x$as_lineno_1" != "x$as_lineno_2" &&
20223
test "x$as_lineno_3" = "x$as_lineno_2" || {
20224
# Find who we are. Look in the path if we contain no path at all
20227
*[\\/]* ) as_myself=$0 ;;
20228
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20229
for as_dir in $PATH
20232
test -z "$as_dir" && as_dir=.
20233
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20238
# We did not find ourselves, most probably we were run as `sh COMMAND'
20239
# in which case we are not to be found in the path.
20240
if test "x$as_myself" = x; then
20243
if test ! -f "$as_myself"; then
20244
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20245
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20246
{ (exit 1); exit 1; }; }
20248
case $CONFIG_SHELL in
20250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20251
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20254
test -z "$as_dir" && as_dir=.
20255
for as_base in sh bash ksh sh5; do
20258
if ("$as_dir/$as_base" -c '
20259
as_lineno_1=$LINENO
20260
as_lineno_2=$LINENO
20261
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20262
test "x$as_lineno_1" != "x$as_lineno_2" &&
20263
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20264
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20265
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20266
CONFIG_SHELL=$as_dir/$as_base
20267
export CONFIG_SHELL
20268
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19789
sed '/^.*\/\([^/][^/]*\)\/*$/{
19808
as_lineno_1=$LINENO
19809
as_lineno_2=$LINENO
19810
test "x$as_lineno_1" != "x$as_lineno_2" &&
19811
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20276
19813
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20277
19814
# uniformly replaced by the line number. The first 'sed' inserts a
20278
# line-number line before each line; the second 'sed' does the real
20279
# work. The second script uses 'N' to pair each line-number line
20280
# with the numbered line, and appends trailing '-' during
20281
# substitution so that $LINENO is not a special case at line end.
19815
# line-number line after each line using $LINENO; the second 'sed'
19816
# does the real work. The second script uses 'N' to pair each
19817
# line-number line with the line containing $LINENO, and appends
19818
# trailing '-' during substitution so that $LINENO is not a special
19819
# case at line end.
20282
19820
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20283
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20284
sed '=' <$as_myself |
19821
# scripts with optimization help from Paolo Bonzini. Blame Lee
19822
# E. McMahon (1931-1989) for sed's syntax. :-)
20289
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19834
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20292
s,^['$as_cr_digits']*\n,,
20293
19837
' >$as_me.lineno &&
20294
chmod +x $as_me.lineno ||
20295
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20296
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19838
chmod +x "$as_me.lineno" ||
19839
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20297
19840
{ (exit 1); exit 1; }; }
20299
19842
# Don't try to exec as it changes $[0], causing all sort of problems
20300
19843
# (the dirname of $[0] is not the place where we might find the
20301
# original and so on. Autoconf is especially sensible to this).
19844
# original and so on. Autoconf is especially sensitive to this).
19845
. "./$as_me.lineno"
20303
19846
# Exit status is that of the last command.
20308
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20309
*c*,-n*) ECHO_N= ECHO_C='
20311
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20312
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19851
if (dirname -- /) >/dev/null 2>&1; then
19857
ECHO_C= ECHO_N= ECHO_T=
19858
case `echo -n x` in
19860
case `echo 'x\c'` in
19861
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
20315
if expr a : '\(a\)' >/dev/null 2>&1; then
19868
if expr a : '\(a\)' >/dev/null 2>&1 &&
19869
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20318
19872
as_expr=false
20321
19875
rm -f conf$$ conf$$.exe conf$$.file
19876
if test -d conf$$.dir; then
19877
rm -f conf$$.dir/conf$$.file
20322
19882
echo >conf$$.file
20323
19883
if ln -s conf$$.file conf$$ 2>/dev/null; then
20324
# We could just check for DJGPP; but this test a) works b) is more generic
20325
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20326
if test -f conf$$.exe; then
20327
# Don't use ln at all; we don't have any links
19885
# ... but there are two gotchas:
19886
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19887
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19888
# In both cases, we have to default to `cp -p'.
19889
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20328
19890
as_ln_s='cp -p'
20332
19891
elif ln conf$$.file conf$$ 2>/dev/null; then
20335
19894
as_ln_s='cp -p'
20337
rm -f conf$$ conf$$.exe conf$$.file
19896
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19897
rmdir conf$$.dir 2>/dev/null
20339
19899
if mkdir -p . 2>/dev/null; then
20580
20130
# Have a temporary directory for convenience. Make it in the build tree
20581
# simply because there is no reason to put it here, and in addition,
20131
# simply because there is no reason against having it here, and in addition,
20582
20132
# creating and moving files from /tmp can sometimes cause problems.
20583
# Create a temporary directory, and hook for its removal unless debugging.
20133
# Hook for its removal unless debugging.
20134
# Note that there is a small window in which the directory will not be cleaned:
20135
# after its creation but before its name has been assigned to `$tmp'.
20586
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20139
trap 'exit_status=$?
20140
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20587
20142
trap '{ (exit 1); exit 1; }' 1 2 13 15
20590
20144
# Create a (secure) tmp directory for tmp files.
20593
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20147
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20594
20148
test -n "$tmp" && test -d "$tmp"
20597
tmp=./confstat$$-$RANDOM
20598
(umask 077 && mkdir $tmp)
20151
tmp=./conf$$-$RANDOM
20152
(umask 077 && mkdir "$tmp")
20601
20155
echo "$me: cannot create a temporary directory in ." >&2
20602
20156
{ (exit 1); exit 1; }
20607
cat >>$CONFIG_STATUS <<_ACEOF
20610
# CONFIG_FILES section.
20160
# Set up the sed scripts for CONFIG_FILES section.
20613
20163
# No need to generate the scripts if there are no CONFIG_FILES.
20614
20164
# This happens for instance when ./config.status config.h
20615
if test -n "\$CONFIG_FILES"; then
20616
# Protect against being on the right side of a sed subst in config.status.
20617
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20618
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20619
s,@SHELL@,$SHELL,;t t
20620
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20621
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20622
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20623
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20624
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20625
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20626
s,@exec_prefix@,$exec_prefix,;t t
20627
s,@prefix@,$prefix,;t t
20628
s,@program_transform_name@,$program_transform_name,;t t
20629
s,@bindir@,$bindir,;t t
20630
s,@sbindir@,$sbindir,;t t
20631
s,@libexecdir@,$libexecdir,;t t
20632
s,@datadir@,$datadir,;t t
20633
s,@sysconfdir@,$sysconfdir,;t t
20634
s,@sharedstatedir@,$sharedstatedir,;t t
20635
s,@localstatedir@,$localstatedir,;t t
20636
s,@libdir@,$libdir,;t t
20637
s,@includedir@,$includedir,;t t
20638
s,@oldincludedir@,$oldincludedir,;t t
20639
s,@infodir@,$infodir,;t t
20640
s,@mandir@,$mandir,;t t
20641
s,@build_alias@,$build_alias,;t t
20642
s,@host_alias@,$host_alias,;t t
20643
s,@target_alias@,$target_alias,;t t
20644
s,@DEFS@,$DEFS,;t t
20645
s,@ECHO_C@,$ECHO_C,;t t
20646
s,@ECHO_N@,$ECHO_N,;t t
20647
s,@ECHO_T@,$ECHO_T,;t t
20648
s,@LIBS@,$LIBS,;t t
20649
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20650
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20651
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20652
s,@CYGPATH_W@,$CYGPATH_W,;t t
20653
s,@PACKAGE@,$PACKAGE,;t t
20654
s,@VERSION@,$VERSION,;t t
20655
s,@ACLOCAL@,$ACLOCAL,;t t
20656
s,@AUTOCONF@,$AUTOCONF,;t t
20657
s,@AUTOMAKE@,$AUTOMAKE,;t t
20658
s,@AUTOHEADER@,$AUTOHEADER,;t t
20659
s,@MAKEINFO@,$MAKEINFO,;t t
20660
s,@AMTAR@,$AMTAR,;t t
20661
s,@install_sh@,$install_sh,;t t
20662
s,@STRIP@,$STRIP,;t t
20663
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20664
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20665
s,@mkdir_p@,$mkdir_p,;t t
20667
s,@SET_MAKE@,$SET_MAKE,;t t
20668
s,@am__leading_dot@,$am__leading_dot,;t t
20669
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20670
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20671
s,@MAINT@,$MAINT,;t t
20673
s,@CFLAGS@,$CFLAGS,;t t
20674
s,@LDFLAGS@,$LDFLAGS,;t t
20675
s,@CPPFLAGS@,$CPPFLAGS,;t t
20676
s,@ac_ct_CC@,$ac_ct_CC,;t t
20677
s,@EXEEXT@,$EXEEXT,;t t
20678
s,@OBJEXT@,$OBJEXT,;t t
20679
s,@DEPDIR@,$DEPDIR,;t t
20680
s,@am__include@,$am__include,;t t
20681
s,@am__quote@,$am__quote,;t t
20682
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20683
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20684
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20685
s,@CCDEPMODE@,$CCDEPMODE,;t t
20686
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20687
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20688
s,@build@,$build,;t t
20689
s,@build_cpu@,$build_cpu,;t t
20690
s,@build_vendor@,$build_vendor,;t t
20691
s,@build_os@,$build_os,;t t
20692
s,@host@,$host,;t t
20693
s,@host_cpu@,$host_cpu,;t t
20694
s,@host_vendor@,$host_vendor,;t t
20695
s,@host_os@,$host_os,;t t
20696
s,@EGREP@,$EGREP,;t t
20697
s,@LN_S@,$LN_S,;t t
20698
s,@ECHO@,$ECHO,;t t
20700
s,@ac_ct_AR@,$ac_ct_AR,;t t
20701
s,@RANLIB@,$RANLIB,;t t
20702
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20705
s,@CXXFLAGS@,$CXXFLAGS,;t t
20706
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20707
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20708
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20709
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20710
s,@CXXCPP@,$CXXCPP,;t t
20712
s,@FFLAGS@,$FFLAGS,;t t
20713
s,@ac_ct_F77@,$ac_ct_F77,;t t
20714
s,@LIBTOOL@,$LIBTOOL,;t t
20715
s,@DOXYGEN@,$DOXYGEN,;t t
20716
s,@LIBRARY_VERSION_LIBTOOL@,$LIBRARY_VERSION_LIBTOOL,;t t
20717
s,@LIBRARY_VERSION_MAJOR@,$LIBRARY_VERSION_MAJOR,;t t
20718
s,@SUBARCH_SYSTEM@,$SUBARCH_SYSTEM,;t t
20719
s,@LIBOBJS@,$LIBOBJS,;t t
20720
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20725
cat >>$CONFIG_STATUS <<\_ACEOF
20726
# Split the substitutions into bite-sized pieces for seds with
20727
# small command number limits, like on Digital OSF/1 and HP-UX.
20728
ac_max_sed_lines=48
20729
ac_sed_frag=1 # Number of current file.
20730
ac_beg=1 # First line for current file.
20731
ac_end=$ac_max_sed_lines # Line after last line for current file.
20734
while $ac_more_lines; do
20735
if test $ac_beg -gt 1; then
20736
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20738
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20740
if test ! -s $tmp/subs.frag; then
20741
ac_more_lines=false
20743
# The purpose of the label and of the branching condition is to
20744
# speed up the sed processing (if there are no `@' at all, there
20745
# is no need to browse any of the substitutions).
20746
# These are the two extra sed commands mentioned above.
20748
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20749
if test -z "$ac_sed_cmds"; then
20750
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20752
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20754
ac_sed_frag=`expr $ac_sed_frag + 1`
20756
ac_end=`expr $ac_end + $ac_max_sed_lines`
20759
if test -z "$ac_sed_cmds"; then
20165
if test -n "$CONFIG_FILES"; then
20172
for ac_last_try in false false false false false :; do
20173
cat >conf$$subs.sed <<_ACEOF
20174
SHELL!$SHELL$ac_delim
20175
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20176
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20177
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20178
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20179
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20180
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20181
exec_prefix!$exec_prefix$ac_delim
20182
prefix!$prefix$ac_delim
20183
program_transform_name!$program_transform_name$ac_delim
20184
bindir!$bindir$ac_delim
20185
sbindir!$sbindir$ac_delim
20186
libexecdir!$libexecdir$ac_delim
20187
datarootdir!$datarootdir$ac_delim
20188
datadir!$datadir$ac_delim
20189
sysconfdir!$sysconfdir$ac_delim
20190
sharedstatedir!$sharedstatedir$ac_delim
20191
localstatedir!$localstatedir$ac_delim
20192
includedir!$includedir$ac_delim
20193
oldincludedir!$oldincludedir$ac_delim
20194
docdir!$docdir$ac_delim
20195
infodir!$infodir$ac_delim
20196
htmldir!$htmldir$ac_delim
20197
dvidir!$dvidir$ac_delim
20198
pdfdir!$pdfdir$ac_delim
20199
psdir!$psdir$ac_delim
20200
libdir!$libdir$ac_delim
20201
localedir!$localedir$ac_delim
20202
mandir!$mandir$ac_delim
20203
DEFS!$DEFS$ac_delim
20204
ECHO_C!$ECHO_C$ac_delim
20205
ECHO_N!$ECHO_N$ac_delim
20206
ECHO_T!$ECHO_T$ac_delim
20207
LIBS!$LIBS$ac_delim
20208
build_alias!$build_alias$ac_delim
20209
host_alias!$host_alias$ac_delim
20210
target_alias!$target_alias$ac_delim
20211
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20212
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20213
INSTALL_DATA!$INSTALL_DATA$ac_delim
20214
CYGPATH_W!$CYGPATH_W$ac_delim
20215
PACKAGE!$PACKAGE$ac_delim
20216
VERSION!$VERSION$ac_delim
20217
ACLOCAL!$ACLOCAL$ac_delim
20218
AUTOCONF!$AUTOCONF$ac_delim
20219
AUTOMAKE!$AUTOMAKE$ac_delim
20220
AUTOHEADER!$AUTOHEADER$ac_delim
20221
MAKEINFO!$MAKEINFO$ac_delim
20222
AMTAR!$AMTAR$ac_delim
20223
install_sh!$install_sh$ac_delim
20224
STRIP!$STRIP$ac_delim
20225
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20226
mkdir_p!$mkdir_p$ac_delim
20228
SET_MAKE!$SET_MAKE$ac_delim
20229
am__leading_dot!$am__leading_dot$ac_delim
20230
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20231
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20232
MAINT!$MAINT$ac_delim
20234
CFLAGS!$CFLAGS$ac_delim
20235
LDFLAGS!$LDFLAGS$ac_delim
20236
CPPFLAGS!$CPPFLAGS$ac_delim
20237
ac_ct_CC!$ac_ct_CC$ac_delim
20238
EXEEXT!$EXEEXT$ac_delim
20239
OBJEXT!$OBJEXT$ac_delim
20240
DEPDIR!$DEPDIR$ac_delim
20241
am__include!$am__include$ac_delim
20242
am__quote!$am__quote$ac_delim
20243
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20244
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20245
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20246
CCDEPMODE!$CCDEPMODE$ac_delim
20247
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20248
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20249
build!$build$ac_delim
20250
build_cpu!$build_cpu$ac_delim
20251
build_vendor!$build_vendor$ac_delim
20252
build_os!$build_os$ac_delim
20253
host!$host$ac_delim
20254
host_cpu!$host_cpu$ac_delim
20255
host_vendor!$host_vendor$ac_delim
20256
host_os!$host_os$ac_delim
20257
GREP!$GREP$ac_delim
20258
EGREP!$EGREP$ac_delim
20259
LN_S!$LN_S$ac_delim
20260
ECHO!$ECHO$ac_delim
20262
RANLIB!$RANLIB$ac_delim
20265
CXXFLAGS!$CXXFLAGS$ac_delim
20266
ac_ct_CXX!$ac_ct_CXX$ac_delim
20267
CXXDEPMODE!$CXXDEPMODE$ac_delim
20268
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20269
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20270
CXXCPP!$CXXCPP$ac_delim
20273
if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
20275
elif $ac_last_try; then
20276
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20277
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20278
{ (exit 1); exit 1; }; }
20280
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20285
if grep '^CEOF$' conf$$subs.sed >/dev/null; then
20286
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
20287
ac_eof=`expr 0$ac_eof + 1`
20290
cat >>$CONFIG_STATUS <<_ACEOF
20291
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20292
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20295
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20296
s/^/s,@/; s/!/@,|#_!!_#|/
20299
s/'"$ac_delim"'$/,g/; t
20301
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20302
' >>$CONFIG_STATUS <conf$$subs.sed
20303
rm -f conf$$subs.sed
20304
cat >>$CONFIG_STATUS <<_ACEOF
20310
for ac_last_try in false false false false false :; do
20311
cat >conf$$subs.sed <<_ACEOF
20313
FFLAGS!$FFLAGS$ac_delim
20314
ac_ct_F77!$ac_ct_F77$ac_delim
20315
LIBTOOL!$LIBTOOL$ac_delim
20316
DOXYGEN!$DOXYGEN$ac_delim
20317
LIBRARY_VERSION_LIBTOOL!$LIBRARY_VERSION_LIBTOOL$ac_delim
20318
LIBRARY_VERSION_MAJOR!$LIBRARY_VERSION_MAJOR$ac_delim
20319
SUBARCH_SYSTEM!$SUBARCH_SYSTEM$ac_delim
20320
LIBOBJS!$LIBOBJS$ac_delim
20321
LTLIBOBJS!$LTLIBOBJS$ac_delim
20324
if test `grep -c "$ac_delim\$" conf$$subs.sed` = 10; then
20326
elif $ac_last_try; then
20327
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20328
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20329
{ (exit 1); exit 1; }; }
20331
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20336
if grep '^CEOF$' conf$$subs.sed >/dev/null; then
20337
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
20338
ac_eof=`expr 0$ac_eof + 1`
20341
cat >>$CONFIG_STATUS <<_ACEOF
20342
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20343
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20346
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20347
s/^/s,@/; s/!/@,|#_!!_#|/
20350
s/'"$ac_delim"'$/,g/; t
20352
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20353
' >>$CONFIG_STATUS <conf$$subs.sed
20354
rm -f conf$$subs.sed
20355
cat >>$CONFIG_STATUS <<_ACEOF
20362
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20363
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20364
# trailing colons and then remove the whole line if VPATH becomes empty
20365
# (actually we leave an empty line to preserve line numbers).
20366
if test "x$srcdir" = x.; then
20367
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20368
s/:*\$(srcdir):*/:/
20369
s/:*\${srcdir}:*/:/
20371
s/^\([^=]*=[ ]*\):*/\1/
20377
cat >>$CONFIG_STATUS <<\_ACEOF
20762
20378
fi # test -n "$CONFIG_FILES"
20765
cat >>$CONFIG_STATUS <<\_ACEOF
20766
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20767
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20769
- | *:- | *:-:* ) # input from stdin
20771
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20772
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20773
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20774
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20775
* ) ac_file_in=$ac_file.in ;;
20778
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20779
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20381
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20384
:[FHLC]) ac_mode=$ac_tag; continue;;
20386
case $ac_mode$ac_tag in
20388
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20389
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20390
{ (exit 1); exit 1; }; };;
20391
:[FH]-) ac_tag=-:-;;
20392
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20409
-) ac_f="$tmp/stdin";;
20410
*) # Look for the file first in the build tree, then in the source tree
20411
# (if the path is not absolute). The absolute path cannot be DOS-style,
20412
# because $ac_f cannot contain `:'.
20416
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20418
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20419
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20420
{ (exit 1); exit 1; }; };;
20422
ac_file_inputs="$ac_file_inputs $ac_f"
20425
# Let's still pretend it is `configure' which instantiates (i.e., don't
20426
# use $as_me), people would be surprised to read:
20427
# /* config.h. Generated by config.status. */
20428
configure_input="Generated from "`IFS=:
20429
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20430
if test x"$ac_file" != x-; then
20431
configure_input="$ac_file. $configure_input"
20432
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20433
echo "$as_me: creating $ac_file" >&6;}
20437
*:-:* | *:-) cat >"$tmp/stdin";;
20442
ac_dir=`$as_dirname -- "$ac_file" ||
20780
20443
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20781
20444
X"$ac_file" : 'X\(//\)[^/]' \| \
20782
20445
X"$ac_file" : 'X\(//\)$' \| \
20783
X"$ac_file" : 'X\(/\)' \| \
20784
. : '\(.\)' 2>/dev/null ||
20446
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20785
20447
echo X"$ac_file" |
20786
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20787
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20788
/^X\(\/\/\)$/{ s//\1/; q; }
20789
/^X\(\/\).*/{ s//\1/; q; }
20791
{ if $as_mkdir_p; then
20448
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20452
/^X\(\/\/\)[^/].*/{
20467
-*) as_dir=./$as_dir;;
20469
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20796
while test ! -d "$as_dir"; do
20797
as_dirs="$as_dir $as_dirs"
20798
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20473
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20474
*) as_qdir=$as_dir;;
20476
as_dirs="'$as_qdir' $as_dirs"
20477
as_dir=`$as_dirname -- "$as_dir" ||
20799
20478
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20800
20479
X"$as_dir" : 'X\(//\)[^/]' \| \
20801
20480
X"$as_dir" : 'X\(//\)$' \| \
20802
X"$as_dir" : 'X\(/\)' \| \
20803
. : '\(.\)' 2>/dev/null ||
20481
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20804
20482
echo X"$as_dir" |
20805
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20806
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20807
/^X\(\/\/\)$/{ s//\1/; q; }
20808
/^X\(\/\).*/{ s//\1/; q; }
20483
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20487
/^X\(\/\/\)[^/].*/{
20500
test -d "$as_dir" && break
20811
test ! -n "$as_dirs" || mkdir $as_dirs
20812
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20813
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20502
test -z "$as_dirs" || eval "mkdir $as_dirs"
20503
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20504
echo "$as_me: error: cannot create directory $as_dir" >&2;}
20814
20505
{ (exit 1); exit 1; }; }; }
20816
20506
ac_builddir=.
20818
if test "$ac_dir" != .; then
20509
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20819
20511
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20820
# A "../" for each directory in $ac_dir_suffix.
20821
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20823
ac_dir_suffix= ac_top_builddir=
20512
# A ".." for each directory in $ac_dir_suffix.
20513
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20514
case $ac_top_builddir_sub in
20515
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20516
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20519
ac_abs_top_builddir=$ac_pwd
20520
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20521
# for backward compatibility:
20522
ac_top_builddir=$ac_top_build_prefix
20826
20524
case $srcdir in
20827
.) # No --srcdir option. We are building in place.
20525
.) # We are building in place.
20829
if test -z "$ac_top_builddir"; then
20832
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20834
[\\/]* | ?:[\\/]* ) # Absolute path.
20527
ac_top_srcdir=$ac_top_builddir_sub
20528
ac_abs_top_srcdir=$ac_pwd ;;
20529
[\\/]* | ?:[\\/]* ) # Absolute name.
20835
20530
ac_srcdir=$srcdir$ac_dir_suffix;
20836
ac_top_srcdir=$srcdir ;;
20837
*) # Relative path.
20838
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20839
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20842
# Do not use `cd foo && pwd` to compute absolute paths, because
20843
# the directories may not exist.
20845
.) ac_abs_builddir="$ac_dir";;
20848
.) ac_abs_builddir=`pwd`;;
20849
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20850
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20853
case $ac_abs_builddir in
20854
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20856
case ${ac_top_builddir}. in
20857
.) ac_abs_top_builddir=$ac_abs_builddir;;
20858
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20859
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20862
case $ac_abs_builddir in
20863
.) ac_abs_srcdir=$ac_srcdir;;
20866
.) ac_abs_srcdir=$ac_abs_builddir;;
20867
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20868
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20871
case $ac_abs_builddir in
20872
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20874
case $ac_top_srcdir in
20875
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20876
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20877
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20531
ac_top_srcdir=$srcdir
20532
ac_abs_top_srcdir=$srcdir ;;
20533
*) # Relative name.
20534
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20535
ac_top_srcdir=$ac_top_build_prefix$srcdir
20536
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20538
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20882
20547
case $INSTALL in
20883
20548
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20884
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20549
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20887
# Let's still pretend it is `configure' which instantiates (i.e., don't
20888
# use $as_me), people would be surprised to read:
20889
# /* config.h. Generated by config.status. */
20890
if test x"$ac_file" = x-; then
20893
configure_input="$ac_file. "
20895
configure_input=$configure_input"Generated from `echo $ac_file_in |
20896
sed 's,.*/,,'` by configure."
20898
# First look for the input files in the build tree, otherwise in the
20900
ac_file_inputs=`IFS=:
20901
for f in $ac_file_in; do
20903
-) echo $tmp/stdin ;;
20905
# Absolute (can't be DOS-style, as IFS=:)
20906
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20907
echo "$as_me: error: cannot find input file: $f" >&2;}
20908
{ (exit 1); exit 1; }; }
20911
if test -f "$f"; then
20914
elif test -f "$srcdir/$f"; then
20919
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20920
echo "$as_me: error: cannot find input file: $f" >&2;}
20921
{ (exit 1); exit 1; }; }
20924
done` || { (exit 1); exit 1; }
20926
if test x"$ac_file" != x-; then
20927
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20928
echo "$as_me: creating $ac_file" >&6;}
20553
cat >>$CONFIG_STATUS <<\_ACEOF
20554
# If the template does not know about datarootdir, expand it.
20555
# FIXME: This hack should be removed a few years after 2.60.
20556
ac_datarootdir_hack=
20558
case `sed -n '/datarootdir/ {
20567
' $ac_file_inputs` in
20569
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20570
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20571
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20573
cat >>$CONFIG_STATUS <<_ACEOF
20574
ac_datarootdir_hack='
20575
s&@datadir@&$datadir&g
20576
s&@docdir@&$docdir&g
20577
s&@infodir@&$infodir&g
20578
s&@localedir@&$localedir&g
20579
s&@mandir@&$mandir&g
20580
s&\\\${datarootdir}&$datarootdir&g' ;;
20584
# Neutralize VPATH when `$srcdir' = `.'.
20585
# Shell code in configure.ac might set extrasub.
20586
# FIXME: do we really want to maintain this feature?
20932
20587
cat >>$CONFIG_STATUS <<_ACEOF
20933
20588
sed "$ac_vpsub
20936
20591
cat >>$CONFIG_STATUS <<\_ACEOF
20938
20593
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20939
s,@configure_input@,$configure_input,;t t
20940
s,@srcdir@,$ac_srcdir,;t t
20941
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20942
s,@top_srcdir@,$ac_top_srcdir,;t t
20943
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20944
s,@builddir@,$ac_builddir,;t t
20945
s,@abs_builddir@,$ac_abs_builddir,;t t
20946
s,@top_builddir@,$ac_top_builddir,;t t
20947
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20948
s,@INSTALL@,$ac_INSTALL,;t t
20949
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20951
if test x"$ac_file" != x-; then
20952
mv $tmp/out $ac_file
20594
s&@configure_input@&$configure_input&;t t
20595
s&@top_builddir@&$ac_top_builddir_sub&;t t
20596
s&@srcdir@&$ac_srcdir&;t t
20597
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20598
s&@top_srcdir@&$ac_top_srcdir&;t t
20599
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20600
s&@builddir@&$ac_builddir&;t t
20601
s&@abs_builddir@&$ac_abs_builddir&;t t
20602
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20603
s&@INSTALL@&$ac_INSTALL&;t t
20604
$ac_datarootdir_hack
20605
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20609
-) cat "$tmp/out"; rm -f "$tmp/out";;
20610
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20960
cat >>$CONFIG_STATUS <<\_ACEOF
20963
# CONFIG_HEADER section.
20966
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20967
# NAME is the cpp macro being defined and VALUE is the value it is being given.
20969
# ac_d sets the value in "#define NAME VALUE" lines.
20970
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20971
ac_dB='[ ].*$,\1#\2'
20619
# Transform confdefs.h into a sed script `conftest.defines', that
20620
# substitutes the proper values into config.h.in to produce config.h.
20621
rm -f conftest.defines conftest.tail
20622
# First, append a space to every undef/define line, to ease matching.
20623
echo 's/$/ /' >conftest.defines
20624
# Then, protect against being on the right side of a sed subst, or in
20625
# an unquoted here document, in config.status. If some macros were
20626
# called several times there might be several #defines for the same
20627
# symbol, which is useless. But do not sort them, since the last
20628
# AC_DEFINE must be honored.
20629
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20630
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20631
# NAME is the cpp macro being defined, VALUE is the value it is being given.
20632
# PARAMS is the parameter list in the macro definition--in most cases, it's
20633
# just an empty string.
20634
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20635
ac_dB='\\)[ (].*,\\1define\\2'
20974
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20975
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20976
ac_uB='$,\1#\2define\3'
20980
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20981
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20983
- | *:- | *:-:* ) # input from stdin
20985
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20986
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20987
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20988
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20989
* ) ac_file_in=$ac_file.in ;;
20992
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20993
echo "$as_me: creating $ac_file" >&6;}
20995
# First look for the input files in the build tree, otherwise in the
20997
ac_file_inputs=`IFS=:
20998
for f in $ac_file_in; do
21000
-) echo $tmp/stdin ;;
21002
# Absolute (can't be DOS-style, as IFS=:)
21003
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21004
echo "$as_me: error: cannot find input file: $f" >&2;}
21005
{ (exit 1); exit 1; }; }
21006
# Do quote $f, to prevent DOS paths from being IFS'd.
21009
if test -f "$f"; then
21012
elif test -f "$srcdir/$f"; then
21017
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21018
echo "$as_me: error: cannot find input file: $f" >&2;}
21019
{ (exit 1); exit 1; }; }
21022
done` || { (exit 1); exit 1; }
21023
# Remove the trailing spaces.
21024
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21028
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21029
# `conftest.undefs', that substitutes the proper values into
21030
# config.h.in to produce config.h. The first handles `#define'
21031
# templates, and the second `#undef' templates.
21032
# And first: Protect against being on the right side of a sed subst in
21033
# config.status. Protect against being in an unquoted here document
21034
# in config.status.
21035
rm -f conftest.defines conftest.undefs
21036
# Using a here document instead of a string reduces the quoting nightmare.
21037
# Putting comments in sed scripts is not portable.
21039
# `end' is used to avoid that the second main sed command (meant for
21040
# 0-ary CPP macros) applies to n-ary macro definitions.
21041
# See the Autoconf documentation for `clear'.
21042
cat >confdef2sed.sed <<\_ACEOF
21047
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21049
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21052
# If some macros were called several times there might be several times
21053
# the same #defines, which is useless. Nevertheless, we may not want to
21054
# sort them, since we want the *last* AC-DEFINE to be honored.
21055
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21056
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21057
rm -f confdef2sed.sed
21059
# This sed command replaces #undef with comments. This is necessary, for
20643
s/^[ ]*#[ ]*define[ ][ ]*//
20648
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20649
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20650
' >>conftest.defines
20652
# Remove the space that was appended to ease matching.
20653
# Then replace #undef with comments. This is necessary, for
21060
20654
# example, in the case of _POSIX_SOURCE, which is predefined and required
21061
20655
# on some systems where configure will not decide to define it.
21062
cat >>conftest.undefs <<\_ACEOF
21063
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20656
# (The regexp can be short, since the line contains either #define or #undef.)
20658
s,^[ #]*u.*,/* & */,' >>conftest.defines
20660
# Break up conftest.defines:
20661
ac_max_sed_lines=50
20663
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20664
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20665
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20667
ac_in='$ac_file_inputs'
20668
ac_out='"$tmp/out1"'
20669
ac_nxt='"$tmp/out2"'
20673
# Write a here document:
20674
cat >>$CONFIG_STATUS <<_ACEOF
20675
# First, check the format of the line:
20676
cat >"\$tmp/defines.sed" <<\\CEOF
20677
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20678
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21066
# Break up conftest.defines because some shells have a limit on the size
21067
# of here documents, and old seds have small limits too (100 cmds).
21068
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21069
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21070
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21071
echo ' :' >>$CONFIG_STATUS
21072
rm -f conftest.tail
21073
while grep . conftest.defines >/dev/null
21075
# Write a limited-size here document to $tmp/defines.sed.
21076
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21077
# Speed up: don't consider the non `#define' lines.
21078
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21079
# Work around the forget-to-reset-the-flag bug.
21080
echo 't clr' >>$CONFIG_STATUS
21081
echo ': clr' >>$CONFIG_STATUS
21082
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20682
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21084
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21086
mv $tmp/out $tmp/in
21088
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20684
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20685
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20686
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20687
grep . conftest.tail >/dev/null || break
21089
20688
rm -f conftest.defines
21090
20689
mv conftest.tail conftest.defines
21092
rm -f conftest.defines
21093
echo ' fi # grep' >>$CONFIG_STATUS
21094
echo >>$CONFIG_STATUS
21096
# Break up conftest.undefs because some shells have a limit on the size
21097
# of here documents, and old seds have small limits too (100 cmds).
21098
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21099
rm -f conftest.tail
21100
while grep . conftest.undefs >/dev/null
21102
# Write a limited-size here document to $tmp/undefs.sed.
21103
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21104
# Speed up: don't consider the non `#undef'
21105
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21106
# Work around the forget-to-reset-the-flag bug.
21107
echo 't clr' >>$CONFIG_STATUS
21108
echo ': clr' >>$CONFIG_STATUS
21109
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21111
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21113
mv $tmp/out $tmp/in
21115
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21116
rm -f conftest.undefs
21117
mv conftest.tail conftest.undefs
21119
rm -f conftest.undefs
20691
rm -f conftest.defines conftest.tail
20693
echo "ac_result=$ac_in" >>$CONFIG_STATUS
21121
20694
cat >>$CONFIG_STATUS <<\_ACEOF
21122
# Let's still pretend it is `configure' which instantiates (i.e., don't
21123
# use $as_me), people would be surprised to read:
21124
# /* config.h. Generated by config.status. */
21125
if test x"$ac_file" = x-; then
21126
echo "/* Generated by configure. */" >$tmp/config.h
21128
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21130
cat $tmp/in >>$tmp/config.h
21132
20695
if test x"$ac_file" != x-; then
21133
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20696
echo "/* $configure_input */" >"$tmp/config.h"
20697
cat "$ac_result" >>"$tmp/config.h"
20698
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21134
20699
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21135
20700
echo "$as_me: $ac_file is unchanged" >&6;}
21137
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21138
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21139
X"$ac_file" : 'X\(//\)[^/]' \| \
21140
X"$ac_file" : 'X\(//\)$' \| \
21141
X"$ac_file" : 'X\(/\)' \| \
21142
. : '\(.\)' 2>/dev/null ||
21144
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21145
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21146
/^X\(\/\/\)$/{ s//\1/; q; }
21147
/^X\(\/\).*/{ s//\1/; q; }
21149
{ if $as_mkdir_p; then
21154
while test ! -d "$as_dir"; do
21155
as_dirs="$as_dir $as_dirs"
21156
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21157
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21158
X"$as_dir" : 'X\(//\)[^/]' \| \
21159
X"$as_dir" : 'X\(//\)$' \| \
21160
X"$as_dir" : 'X\(/\)' \| \
21161
. : '\(.\)' 2>/dev/null ||
21163
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21164
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21165
/^X\(\/\/\)$/{ s//\1/; q; }
21166
/^X\(\/\).*/{ s//\1/; q; }
21169
test ! -n "$as_dirs" || mkdir $as_dirs
21170
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21171
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21172
{ (exit 1); exit 1; }; }; }
21174
20702
rm -f $ac_file
21175
mv $tmp/config.h $ac_file
20703
mv "$tmp/config.h" $ac_file
21179
rm -f $tmp/config.h
20706
echo "/* $configure_input */"
21181
20710
# Compute $ac_file's index in $config_headers.
21182
20711
_am_stamp_count=1
21183
20712
for _am_header in $config_headers :; do