65
130
# Name of the executable.
66
as_me=`$as_basename "$0" ||
131
as_me=`$as_basename -- "$0" ||
67
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
133
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
134
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
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
130
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
225
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+"$@"}
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
156
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
429
# 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.
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
162
435
# (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 |
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
s,^['$as_cr_digits']*\n,,
173
452
' >$as_me.lineno &&
174
chmod +x $as_me.lineno ||
453
chmod +x "$as_me.lineno" ||
175
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
455
{ (exit 1); exit 1; }; }
178
457
# Don't try to exec as it changes $[0], causing all sort of problems
179
458
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
459
# original and so on. Autoconf is especially sensitive to this).
182
461
# 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= ;;
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
194
if expr a : '\(a\)' >/dev/null 2>&1; then
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
200
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
201
497
echo >conf$$.file
202
498
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
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
211
506
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
218
514
if mkdir -p . 2>/dev/null; then
2526
3039
rm -f conftest.$ac_objext
2527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528
(eval $ac_compile) 2>conftest.er1
3040
if { (ac_try="$ac_compile"
3042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043
*) ac_try_echo=$ac_try;;
3045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046
(eval "$ac_compile") 2>conftest.er1
2530
3048
grep -v '^ *+' conftest.er1 >conftest.err
2531
3049
rm -f conftest.er1
2532
3050
cat conftest.err >&5
2533
3051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534
(exit $ac_status); } &&
2535
{ ac_try='test -z "$ac_c_werror_flag"
2536
|| test ! -s conftest.err'
2537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
(exit $ac_status); }; } &&
2542
{ ac_try='test -s conftest.$ac_objext'
2543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547
(exit $ac_status); }; }; then
3052
(exit $ac_status); } && {
3053
test -z "$ac_c_werror_flag" ||
3054
test ! -s conftest.err
3055
} && test -s conftest.$ac_objext; then
2548
3056
ac_compiler_gnu=yes
2550
3058
echo "$as_me: failed program was:" >&5
2551
3059
sed 's/^/| /' conftest.$ac_ext >&5
2555
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556
3065
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2559
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2560
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3068
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3069
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2561
3070
GCC=`test $ac_compiler_gnu = yes && echo yes`
2562
3071
ac_test_CFLAGS=${CFLAGS+set}
2563
3072
ac_save_CFLAGS=$CFLAGS
2565
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2566
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3073
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3074
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2567
3075
if test "${ac_cv_prog_cc_g+set}" = set; then
2568
3076
echo $ECHO_N "(cached) $ECHO_C" >&6
2570
cat >conftest.$ac_ext <<_ACEOF
2573
cat confdefs.h >>conftest.$ac_ext
2574
cat >>conftest.$ac_ext <<_ACEOF
2575
/* end confdefs.h. */
2585
rm -f conftest.$ac_objext
2586
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587
(eval $ac_compile) 2>conftest.er1
2589
grep -v '^ *+' conftest.er1 >conftest.err
2591
cat conftest.err >&5
2592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593
(exit $ac_status); } &&
2594
{ ac_try='test -z "$ac_c_werror_flag"
2595
|| test ! -s conftest.err'
2596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600
(exit $ac_status); }; } &&
2601
{ ac_try='test -s conftest.$ac_objext'
2602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606
(exit $ac_status); }; }; then
2609
echo "$as_me: failed program was:" >&5
2610
sed 's/^/| /' conftest.$ac_ext >&5
2614
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3078
ac_save_c_werror_flag=$ac_c_werror_flag
3079
ac_c_werror_flag=yes
3082
cat >conftest.$ac_ext <<_ACEOF
3085
cat confdefs.h >>conftest.$ac_ext
3086
cat >>conftest.$ac_ext <<_ACEOF
3087
/* end confdefs.h. */
3097
rm -f conftest.$ac_objext
3098
if { (ac_try="$ac_compile"
3100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101
*) ac_try_echo=$ac_try;;
3103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104
(eval "$ac_compile") 2>conftest.er1
3106
grep -v '^ *+' conftest.er1 >conftest.err
3108
cat conftest.err >&5
3109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110
(exit $ac_status); } && {
3111
test -z "$ac_c_werror_flag" ||
3112
test ! -s conftest.err
3113
} && test -s conftest.$ac_objext; then
3116
echo "$as_me: failed program was:" >&5
3117
sed 's/^/| /' conftest.$ac_ext >&5
3120
cat >conftest.$ac_ext <<_ACEOF
3123
cat confdefs.h >>conftest.$ac_ext
3124
cat >>conftest.$ac_ext <<_ACEOF
3125
/* end confdefs.h. */
3135
rm -f conftest.$ac_objext
3136
if { (ac_try="$ac_compile"
3138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139
*) ac_try_echo=$ac_try;;
3141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142
(eval "$ac_compile") 2>conftest.er1
3144
grep -v '^ *+' conftest.er1 >conftest.err
3146
cat conftest.err >&5
3147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148
(exit $ac_status); } && {
3149
test -z "$ac_c_werror_flag" ||
3150
test ! -s conftest.err
3151
} && test -s conftest.$ac_objext; then
3154
echo "$as_me: failed program was:" >&5
3155
sed 's/^/| /' conftest.$ac_ext >&5
3157
ac_c_werror_flag=$ac_save_c_werror_flag
3159
cat >conftest.$ac_ext <<_ACEOF
3162
cat confdefs.h >>conftest.$ac_ext
3163
cat >>conftest.$ac_ext <<_ACEOF
3164
/* end confdefs.h. */
3174
rm -f conftest.$ac_objext
3175
if { (ac_try="$ac_compile"
3177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178
*) ac_try_echo=$ac_try;;
3180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181
(eval "$ac_compile") 2>conftest.er1
3183
grep -v '^ *+' conftest.er1 >conftest.err
3185
cat conftest.err >&5
3186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187
(exit $ac_status); } && {
3188
test -z "$ac_c_werror_flag" ||
3189
test ! -s conftest.err
3190
} && test -s conftest.$ac_objext; then
3193
echo "$as_me: failed program was:" >&5
3194
sed 's/^/| /' conftest.$ac_ext >&5
3199
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206
ac_c_werror_flag=$ac_save_c_werror_flag
3208
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618
3210
if test "$ac_test_CFLAGS" = set; then
2619
3211
CFLAGS=$ac_save_CFLAGS
2620
3212
elif test $ac_cv_prog_cc_g = yes; then
2692
# Don't try gcc -ansi; that turns off useful extensions and
2693
# breaks some systems' header files.
2694
# AIX -qlanglvl=ansi
2695
# Ultrix and OSF/1 -std1
2696
# HP-UX 10.20 and later -Ae
2697
# HP-UX older versions -Aa -D_HPUX_SOURCE
2698
# SVR4 -Xc -D__EXTENSIONS__
2699
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701
3292
CC="$ac_save_CC $ac_arg"
2702
3293
rm -f conftest.$ac_objext
2703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704
(eval $ac_compile) 2>conftest.er1
3294
if { (ac_try="$ac_compile"
3296
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297
*) ac_try_echo=$ac_try;;
3299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300
(eval "$ac_compile") 2>conftest.er1
2706
3302
grep -v '^ *+' conftest.er1 >conftest.err
2707
3303
rm -f conftest.er1
2708
3304
cat conftest.err >&5
2709
3305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710
(exit $ac_status); } &&
2711
{ ac_try='test -z "$ac_c_werror_flag"
2712
|| test ! -s conftest.err'
2713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717
(exit $ac_status); }; } &&
2718
{ ac_try='test -s conftest.$ac_objext'
2719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723
(exit $ac_status); }; }; then
2724
ac_cv_prog_cc_stdc=$ac_arg
3306
(exit $ac_status); } && {
3307
test -z "$ac_c_werror_flag" ||
3308
test ! -s conftest.err
3309
} && test -s conftest.$ac_objext; then
3310
ac_cv_prog_cc_c89=$ac_arg
2727
3312
echo "$as_me: failed program was:" >&5
2728
3313
sed 's/^/| /' conftest.$ac_ext >&5
2731
rm -f conftest.err conftest.$ac_objext
3318
rm -f core conftest.err conftest.$ac_objext
3319
test "x$ac_cv_prog_cc_c89" != "xno" && break
2733
rm -f conftest.$ac_ext conftest.$ac_objext
3321
rm -f conftest.$ac_ext
2738
case "x$ac_cv_prog_cc_stdc" in
2740
echo "$as_me:$LINENO: result: none needed" >&5
2741
echo "${ECHO_T}none needed" >&6 ;;
3326
case "x$ac_cv_prog_cc_c89" in
3328
{ echo "$as_me:$LINENO: result: none needed" >&5
3329
echo "${ECHO_T}none needed" >&6; } ;;
3331
{ echo "$as_me:$LINENO: result: unsupported" >&5
3332
echo "${ECHO_T}unsupported" >&6; } ;;
2743
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2744
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2745
CC="$CC $ac_cv_prog_cc_stdc" ;;
3334
CC="$CC $ac_cv_prog_cc_c89"
3335
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3336
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2748
# Some people use a C++ compiler to compile C. Since we use `exit',
2749
# in C++ we need to declare it. In case someone uses the same compiler
2750
# for both compiling C and C++ we need to have the C++ compiler decide
2751
# the declaration of exit, since it's the most demanding environment.
2752
cat >conftest.$ac_ext <<_ACEOF
2757
rm -f conftest.$ac_objext
2758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759
(eval $ac_compile) 2>conftest.er1
2761
grep -v '^ *+' conftest.er1 >conftest.err
2763
cat conftest.err >&5
2764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765
(exit $ac_status); } &&
2766
{ ac_try='test -z "$ac_c_werror_flag"
2767
|| test ! -s conftest.err'
2768
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772
(exit $ac_status); }; } &&
2773
{ ac_try='test -s conftest.$ac_objext'
2774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
(exit $ac_status); }; }; then
2779
for ac_declaration in \
2781
'extern "C" void std::exit (int) throw (); using std::exit;' \
2782
'extern "C" void std::exit (int); using std::exit;' \
2783
'extern "C" void exit (int) throw ();' \
2784
'extern "C" void exit (int);' \
2787
cat >conftest.$ac_ext <<_ACEOF
2790
cat confdefs.h >>conftest.$ac_ext
2791
cat >>conftest.$ac_ext <<_ACEOF
2792
/* end confdefs.h. */
2803
rm -f conftest.$ac_objext
2804
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805
(eval $ac_compile) 2>conftest.er1
2807
grep -v '^ *+' conftest.er1 >conftest.err
2809
cat conftest.err >&5
2810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811
(exit $ac_status); } &&
2812
{ ac_try='test -z "$ac_c_werror_flag"
2813
|| test ! -s conftest.err'
2814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818
(exit $ac_status); }; } &&
2819
{ ac_try='test -s conftest.$ac_objext'
2820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824
(exit $ac_status); }; }; then
2827
echo "$as_me: failed program was:" >&5
2828
sed 's/^/| /' conftest.$ac_ext >&5
2832
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833
cat >conftest.$ac_ext <<_ACEOF
2836
cat confdefs.h >>conftest.$ac_ext
2837
cat >>conftest.$ac_ext <<_ACEOF
2838
/* end confdefs.h. */
2848
rm -f conftest.$ac_objext
2849
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850
(eval $ac_compile) 2>conftest.er1
2852
grep -v '^ *+' conftest.er1 >conftest.err
2854
cat conftest.err >&5
2855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856
(exit $ac_status); } &&
2857
{ ac_try='test -z "$ac_c_werror_flag"
2858
|| test ! -s conftest.err'
2859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863
(exit $ac_status); }; } &&
2864
{ ac_try='test -s conftest.$ac_objext'
2865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869
(exit $ac_status); }; }; then
2872
echo "$as_me: failed program was:" >&5
2873
sed 's/^/| /' conftest.$ac_ext >&5
2876
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879
if test -n "$ac_declaration"; then
2880
echo '#ifdef __cplusplus' >>confdefs.h
2881
echo $ac_declaration >>confdefs.h
2882
echo '#endif' >>confdefs.h
2886
echo "$as_me: failed program was:" >&5
2887
sed 's/^/| /' conftest.$ac_ext >&5
2890
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2892
3341
ac_cpp='$CPP $CPPFLAGS'
2893
3342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207
3692
rm -f conftest.$ac_objext
3208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209
(eval $ac_compile) 2>conftest.er1
3693
if { (ac_try="$ac_compile"
3695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696
*) ac_try_echo=$ac_try;;
3698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699
(eval "$ac_compile") 2>conftest.er1
3211
3701
grep -v '^ *+' conftest.er1 >conftest.err
3212
3702
rm -f conftest.er1
3213
3703
cat conftest.err >&5
3214
3704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215
(exit $ac_status); } &&
3216
{ ac_try='test -z "$ac_cxx_werror_flag"
3217
|| test ! -s conftest.err'
3218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222
(exit $ac_status); }; } &&
3223
{ ac_try='test -s conftest.$ac_objext'
3224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228
(exit $ac_status); }; }; then
3705
(exit $ac_status); } && {
3706
test -z "$ac_cxx_werror_flag" ||
3707
test ! -s conftest.err
3708
} && test -s conftest.$ac_objext; then
3229
3709
ac_compiler_gnu=yes
3231
3711
echo "$as_me: failed program was:" >&5
3232
3712
sed 's/^/| /' conftest.$ac_ext >&5
3236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237
3718
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3240
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3241
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3721
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3722
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3242
3723
GXX=`test $ac_compiler_gnu = yes && echo yes`
3243
3724
ac_test_CXXFLAGS=${CXXFLAGS+set}
3244
3725
ac_save_CXXFLAGS=$CXXFLAGS
3246
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3247
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3726
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3727
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3248
3728
if test "${ac_cv_prog_cxx_g+set}" = set; then
3249
3729
echo $ECHO_N "(cached) $ECHO_C" >&6
3251
cat >conftest.$ac_ext <<_ACEOF
3254
cat confdefs.h >>conftest.$ac_ext
3255
cat >>conftest.$ac_ext <<_ACEOF
3256
/* end confdefs.h. */
3266
rm -f conftest.$ac_objext
3267
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268
(eval $ac_compile) 2>conftest.er1
3270
grep -v '^ *+' conftest.er1 >conftest.err
3272
cat conftest.err >&5
3273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274
(exit $ac_status); } &&
3275
{ ac_try='test -z "$ac_cxx_werror_flag"
3276
|| test ! -s conftest.err'
3277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281
(exit $ac_status); }; } &&
3282
{ ac_try='test -s conftest.$ac_objext'
3283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287
(exit $ac_status); }; }; then
3288
ac_cv_prog_cxx_g=yes
3290
echo "$as_me: failed program was:" >&5
3291
sed 's/^/| /' conftest.$ac_ext >&5
3295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3297
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3298
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3731
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3732
ac_cxx_werror_flag=yes
3735
cat >conftest.$ac_ext <<_ACEOF
3738
cat confdefs.h >>conftest.$ac_ext
3739
cat >>conftest.$ac_ext <<_ACEOF
3740
/* end confdefs.h. */
3750
rm -f conftest.$ac_objext
3751
if { (ac_try="$ac_compile"
3753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754
*) ac_try_echo=$ac_try;;
3756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757
(eval "$ac_compile") 2>conftest.er1
3759
grep -v '^ *+' conftest.er1 >conftest.err
3761
cat conftest.err >&5
3762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763
(exit $ac_status); } && {
3764
test -z "$ac_cxx_werror_flag" ||
3765
test ! -s conftest.err
3766
} && test -s conftest.$ac_objext; then
3767
ac_cv_prog_cxx_g=yes
3769
echo "$as_me: failed program was:" >&5
3770
sed 's/^/| /' conftest.$ac_ext >&5
3773
cat >conftest.$ac_ext <<_ACEOF
3776
cat confdefs.h >>conftest.$ac_ext
3777
cat >>conftest.$ac_ext <<_ACEOF
3778
/* end confdefs.h. */
3788
rm -f conftest.$ac_objext
3789
if { (ac_try="$ac_compile"
3791
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792
*) ac_try_echo=$ac_try;;
3794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795
(eval "$ac_compile") 2>conftest.er1
3797
grep -v '^ *+' conftest.er1 >conftest.err
3799
cat conftest.err >&5
3800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801
(exit $ac_status); } && {
3802
test -z "$ac_cxx_werror_flag" ||
3803
test ! -s conftest.err
3804
} && test -s conftest.$ac_objext; then
3807
echo "$as_me: failed program was:" >&5
3808
sed 's/^/| /' conftest.$ac_ext >&5
3810
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3812
cat >conftest.$ac_ext <<_ACEOF
3815
cat confdefs.h >>conftest.$ac_ext
3816
cat >>conftest.$ac_ext <<_ACEOF
3817
/* end confdefs.h. */
3827
rm -f conftest.$ac_objext
3828
if { (ac_try="$ac_compile"
3830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831
*) ac_try_echo=$ac_try;;
3833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834
(eval "$ac_compile") 2>conftest.er1
3836
grep -v '^ *+' conftest.er1 >conftest.err
3838
cat conftest.err >&5
3839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840
(exit $ac_status); } && {
3841
test -z "$ac_cxx_werror_flag" ||
3842
test ! -s conftest.err
3843
} && test -s conftest.$ac_objext; then
3844
ac_cv_prog_cxx_g=yes
3846
echo "$as_me: failed program was:" >&5
3847
sed 's/^/| /' conftest.$ac_ext >&5
3852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3861
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3862
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3299
3863
if test "$ac_test_CXXFLAGS" = set; then
3300
3864
CXXFLAGS=$ac_save_CXXFLAGS
3301
3865
elif test $ac_cv_prog_cxx_g = yes; then
3721
4209
SED=$lt_cv_path_SED
3722
echo "$as_me:$LINENO: result: $SED" >&5
3723
echo "${ECHO_T}$SED" >&6
3725
echo "$as_me:$LINENO: checking for egrep" >&5
3726
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3727
if test "${ac_cv_prog_egrep+set}" = set; then
3728
echo $ECHO_N "(cached) $ECHO_C" >&6
3730
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3731
then ac_cv_prog_egrep='grep -E'
3732
else ac_cv_prog_egrep='egrep'
3735
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3736
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3737
EGREP=$ac_cv_prog_egrep
3741
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4211
{ echo "$as_me:$LINENO: result: $SED" >&5
4212
echo "${ECHO_T}$SED" >&6; }
4214
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4215
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4216
if test "${ac_cv_path_GREP+set}" = set; then
4217
echo $ECHO_N "(cached) $ECHO_C" >&6
4219
# Extract the first word of "grep ggrep" to use in msg output
4220
if test -z "$GREP"; then
4221
set dummy grep ggrep; ac_prog_name=$2
4222
if test "${ac_cv_path_GREP+set}" = set; then
4223
echo $ECHO_N "(cached) $ECHO_C" >&6
4225
ac_path_GREP_found=false
4226
# Loop through the user's path and test for each of PROGNAME-LIST
4227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4231
test -z "$as_dir" && as_dir=.
4232
for ac_prog in grep ggrep; do
4233
for ac_exec_ext in '' $ac_executable_extensions; do
4234
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4235
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4236
# Check for GNU ac_path_GREP and select it if it is found.
4237
# Check for GNU $ac_path_GREP
4238
case `"$ac_path_GREP" --version 2>&1` in
4240
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4243
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4246
cat "conftest.in" "conftest.in" >"conftest.tmp"
4247
mv "conftest.tmp" "conftest.in"
4248
cp "conftest.in" "conftest.nl"
4249
echo 'GREP' >> "conftest.nl"
4250
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4251
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4252
ac_count=`expr $ac_count + 1`
4253
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4254
# Best one so far, save it but keep looking for a better one
4255
ac_cv_path_GREP="$ac_path_GREP"
4256
ac_path_GREP_max=$ac_count
4258
# 10*(2^10) chars as input seems more than enough
4259
test $ac_count -gt 10 && break
4261
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265
$ac_path_GREP_found && break 3
4275
GREP="$ac_cv_path_GREP"
4276
if test -z "$GREP"; then
4277
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4278
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4279
{ (exit 1); exit 1; }; }
4283
ac_cv_path_GREP=$GREP
4288
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4289
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4290
GREP="$ac_cv_path_GREP"
4293
{ echo "$as_me:$LINENO: checking for egrep" >&5
4294
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4295
if test "${ac_cv_path_EGREP+set}" = set; then
4296
echo $ECHO_N "(cached) $ECHO_C" >&6
4298
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4299
then ac_cv_path_EGREP="$GREP -E"
4301
# Extract the first word of "egrep" to use in msg output
4302
if test -z "$EGREP"; then
4303
set dummy egrep; ac_prog_name=$2
4304
if test "${ac_cv_path_EGREP+set}" = set; then
4305
echo $ECHO_N "(cached) $ECHO_C" >&6
4307
ac_path_EGREP_found=false
4308
# Loop through the user's path and test for each of PROGNAME-LIST
4309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313
test -z "$as_dir" && as_dir=.
4314
for ac_prog in egrep; do
4315
for ac_exec_ext in '' $ac_executable_extensions; do
4316
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4317
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4318
# Check for GNU ac_path_EGREP and select it if it is found.
4319
# Check for GNU $ac_path_EGREP
4320
case `"$ac_path_EGREP" --version 2>&1` in
4322
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4328
cat "conftest.in" "conftest.in" >"conftest.tmp"
4329
mv "conftest.tmp" "conftest.in"
4330
cp "conftest.in" "conftest.nl"
4331
echo 'EGREP' >> "conftest.nl"
4332
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334
ac_count=`expr $ac_count + 1`
4335
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4336
# Best one so far, save it but keep looking for a better one
4337
ac_cv_path_EGREP="$ac_path_EGREP"
4338
ac_path_EGREP_max=$ac_count
4340
# 10*(2^10) chars as input seems more than enough
4341
test $ac_count -gt 10 && break
4343
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347
$ac_path_EGREP_found && break 3
4357
EGREP="$ac_cv_path_EGREP"
4358
if test -z "$EGREP"; then
4359
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4360
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4361
{ (exit 1); exit 1; }; }
4365
ac_cv_path_EGREP=$EGREP
4371
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4372
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4373
EGREP="$ac_cv_path_EGREP"
4377
# Check whether --with-gnu-ld was given.
3742
4378
if test "${with_gnu_ld+set}" = set; then
3743
withval="$with_gnu_ld"
3744
test "$withval" = no || with_gnu_ld=yes
4379
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3749
4385
if test "$GCC" = yes; then
3750
4386
# Check if gcc -print-prog-name=ld gives a path.
3751
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3752
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4387
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4388
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3755
4391
# gcc leaves a trailing carriage return which upsets mingw
6985
rhapsody* | darwin*)
6986
if test -n "$ac_tool_prefix"; then
6987
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6988
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6989
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6992
echo $ECHO_N "(cached) $ECHO_C" >&6
6994
if test -n "$DSYMUTIL"; then
6995
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001
test -z "$as_dir" && as_dir=.
7002
for ac_exec_ext in '' $ac_executable_extensions; do
7003
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7005
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7015
if test -n "$DSYMUTIL"; then
7016
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7017
echo "${ECHO_T}$DSYMUTIL" >&6; }
7019
{ echo "$as_me:$LINENO: result: no" >&5
7020
echo "${ECHO_T}no" >&6; }
7025
if test -z "$ac_cv_prog_DSYMUTIL"; then
7026
ac_ct_DSYMUTIL=$DSYMUTIL
7027
# Extract the first word of "dsymutil", so it can be a program name with args.
7028
set dummy dsymutil; ac_word=$2
7029
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7032
echo $ECHO_N "(cached) $ECHO_C" >&6
7034
if test -n "$ac_ct_DSYMUTIL"; then
7035
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041
test -z "$as_dir" && as_dir=.
7042
for ac_exec_ext in '' $ac_executable_extensions; do
7043
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7045
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7055
if test -n "$ac_ct_DSYMUTIL"; then
7056
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7057
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7059
{ echo "$as_me:$LINENO: result: no" >&5
7060
echo "${ECHO_T}no" >&6; }
7063
if test "x$ac_ct_DSYMUTIL" = x; then
7066
case $cross_compiling:$ac_tool_warned in
7068
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7069
whose name does not start with the host triplet. If you think this
7070
configuration is useful to you, please write to autoconf@gnu.org." >&5
7071
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7072
whose name does not start with the host triplet. If you think this
7073
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7074
ac_tool_warned=yes ;;
7076
DSYMUTIL=$ac_ct_DSYMUTIL
7079
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7082
if test -n "$ac_tool_prefix"; then
7083
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7084
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7085
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7086
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7088
echo $ECHO_N "(cached) $ECHO_C" >&6
7090
if test -n "$NMEDIT"; then
7091
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097
test -z "$as_dir" && as_dir=.
7098
for ac_exec_ext in '' $ac_executable_extensions; do
7099
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7101
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110
NMEDIT=$ac_cv_prog_NMEDIT
7111
if test -n "$NMEDIT"; then
7112
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7113
echo "${ECHO_T}$NMEDIT" >&6; }
7115
{ echo "$as_me:$LINENO: result: no" >&5
7116
echo "${ECHO_T}no" >&6; }
7121
if test -z "$ac_cv_prog_NMEDIT"; then
7122
ac_ct_NMEDIT=$NMEDIT
7123
# Extract the first word of "nmedit", so it can be a program name with args.
7124
set dummy nmedit; ac_word=$2
7125
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7128
echo $ECHO_N "(cached) $ECHO_C" >&6
7130
if test -n "$ac_ct_NMEDIT"; then
7131
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137
test -z "$as_dir" && as_dir=.
7138
for ac_exec_ext in '' $ac_executable_extensions; do
7139
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7141
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7151
if test -n "$ac_ct_NMEDIT"; then
7152
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7153
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7155
{ echo "$as_me:$LINENO: result: no" >&5
7156
echo "${ECHO_T}no" >&6; }
7159
if test "x$ac_ct_NMEDIT" = x; then
7162
case $cross_compiling:$ac_tool_warned in
7164
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7165
whose name does not start with the host triplet. If you think this
7166
configuration is useful to you, please write to autoconf@gnu.org." >&5
7167
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7168
whose name does not start with the host triplet. If you think this
7169
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7170
ac_tool_warned=yes ;;
7172
NMEDIT=$ac_ct_NMEDIT
7175
NMEDIT="$ac_cv_prog_NMEDIT"
7179
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7180
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7181
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7182
echo $ECHO_N "(cached) $ECHO_C" >&6
7184
lt_cv_apple_cc_single_mod=no
7185
if test -z "${LT_MULTI_MODULE}"; then
7186
# By default we will add the -single_module flag. You can override
7187
# by either setting the environment variable LT_MULTI_MODULE
7188
# non-empty at configure time, or by adding -multi_module to the
7190
echo "int foo(void){return 1;}" > conftest.c
7191
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7192
-dynamiclib ${wl}-single_module conftest.c
7193
if test -f libconftest.dylib; then
7194
lt_cv_apple_cc_single_mod=yes
7195
rm -rf libconftest.dylib*
7200
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7201
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7202
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7203
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7204
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7205
echo $ECHO_N "(cached) $ECHO_C" >&6
7207
lt_cv_ld_exported_symbols_list=no
7208
save_LDFLAGS=$LDFLAGS
7209
echo "_main" > conftest.sym
7210
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7211
cat >conftest.$ac_ext <<_ACEOF
7214
cat confdefs.h >>conftest.$ac_ext
7215
cat >>conftest.$ac_ext <<_ACEOF
7216
/* end confdefs.h. */
7226
rm -f conftest.$ac_objext conftest$ac_exeext
7227
if { (ac_try="$ac_link"
7229
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230
*) ac_try_echo=$ac_try;;
7232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233
(eval "$ac_link") 2>conftest.er1
7235
grep -v '^ *+' conftest.er1 >conftest.err
7237
cat conftest.err >&5
7238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239
(exit $ac_status); } && {
7240
test -z "$ac_cxx_werror_flag" ||
7241
test ! -s conftest.err
7242
} && test -s conftest$ac_exeext &&
7243
$as_test_x conftest$ac_exeext; then
7244
lt_cv_ld_exported_symbols_list=yes
7246
echo "$as_me: failed program was:" >&5
7247
sed 's/^/| /' conftest.$ac_ext >&5
7249
lt_cv_ld_exported_symbols_list=no
7252
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253
conftest$ac_exeext conftest.$ac_ext
7254
LDFLAGS="$save_LDFLAGS"
7257
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7258
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7260
rhapsody* | darwin1.[0123])
7261
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7263
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7265
# if running on 10.5 or later, the deployment target defaults
7266
# to the OS version, if on x86, and 10.4, the deployment
7267
# target defaults to 10.4. Don't you love it?
7268
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7269
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7270
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7272
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7274
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7278
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7279
_lt_dar_single_mod='$single_module'
7281
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7282
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7284
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7286
if test "$DSYMUTIL" != ":"; then
7287
_lt_dsymutil="~$DSYMUTIL \$lib || :"
6206
7295
enable_dlopen=no
6207
7296
enable_win32_dll=no
6209
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7298
# Check whether --enable-libtool-lock was given.
6210
7299
if test "${enable_libtool_lock+set}" = set; then
6211
enableval="$enable_libtool_lock"
7300
enableval=$enable_libtool_lock;
6214
7303
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6217
# Check whether --with-pic or --without-pic was given.
7306
# Check whether --with-pic was given.
6218
7307
if test "${with_pic+set}" = set; then
7308
withval=$with_pic; pic_mode="$withval"
6222
7310
pic_mode=default
6224
7313
test -z "$pic_mode" && pic_mode=default
6226
7315
# Use C for the default configuration in the libtool script
12098
13532
enable_fast_install=needless
12103
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12104
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12105
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12106
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12107
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12108
echo "$as_me:$LINENO: result: yes" >&5
12109
echo "${ECHO_T}yes" >&6
12111
# FIXME - insert some real tests, host_os isn't really good enough
12114
if test -n "$STRIP" ; then
12115
striplib="$STRIP -x"
12116
echo "$as_me:$LINENO: result: yes" >&5
12117
echo "${ECHO_T}yes" >&6
12119
echo "$as_me:$LINENO: result: no" >&5
12120
echo "${ECHO_T}no" >&6
12124
echo "$as_me:$LINENO: result: no" >&5
12125
echo "${ECHO_T}no" >&6
12130
if test "x$enable_dlopen" != xyes; then
12131
enable_dlopen=unknown
12132
enable_dlopen_self=unknown
12133
enable_dlopen_self_static=unknown
12140
lt_cv_dlopen="load_add_on"
12142
lt_cv_dlopen_self=yes
12146
lt_cv_dlopen="LoadLibrary"
12151
lt_cv_dlopen="dlopen"
12156
# if libdl is installed we need to link against it
12157
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12158
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12159
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12160
echo $ECHO_N "(cached) $ECHO_C" >&6
12162
ac_check_lib_save_LIBS=$LIBS
12164
cat >conftest.$ac_ext <<_ACEOF
12167
cat confdefs.h >>conftest.$ac_ext
12168
cat >>conftest.$ac_ext <<_ACEOF
12169
/* end confdefs.h. */
12171
/* Override any gcc2 internal prototype to avoid an error. */
12175
/* We use char because int might match the return type of a gcc2
12176
builtin and then its argument prototype would still apply. */
12186
rm -f conftest.$ac_objext conftest$ac_exeext
12187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188
(eval $ac_link) 2>conftest.er1
12190
grep -v '^ *+' conftest.er1 >conftest.err
12192
cat conftest.err >&5
12193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194
(exit $ac_status); } &&
12195
{ ac_try='test -z "$ac_cxx_werror_flag"
12196
|| test ! -s conftest.err'
12197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198
(eval $ac_try) 2>&5
12200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201
(exit $ac_status); }; } &&
12202
{ ac_try='test -s conftest$ac_exeext'
12203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204
(eval $ac_try) 2>&5
12206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207
(exit $ac_status); }; }; then
12208
ac_cv_lib_dl_dlopen=yes
12210
echo "$as_me: failed program was:" >&5
12211
sed 's/^/| /' conftest.$ac_ext >&5
12213
ac_cv_lib_dl_dlopen=no
12215
rm -f conftest.err conftest.$ac_objext \
12216
conftest$ac_exeext conftest.$ac_ext
12217
LIBS=$ac_check_lib_save_LIBS
12219
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12220
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12221
if test $ac_cv_lib_dl_dlopen = yes; then
12222
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12225
lt_cv_dlopen="dyld"
12227
lt_cv_dlopen_self=yes
12234
echo "$as_me:$LINENO: checking for shl_load" >&5
12235
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12236
if test "${ac_cv_func_shl_load+set}" = set; then
12237
echo $ECHO_N "(cached) $ECHO_C" >&6
12239
cat >conftest.$ac_ext <<_ACEOF
12242
cat confdefs.h >>conftest.$ac_ext
12243
cat >>conftest.$ac_ext <<_ACEOF
12244
/* end confdefs.h. */
12245
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12246
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12247
#define shl_load innocuous_shl_load
12249
/* System header to define __stub macros and hopefully few prototypes,
12250
which can conflict with char shl_load (); below.
12251
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252
<limits.h> exists even on freestanding compilers. */
12255
# include <limits.h>
12257
# include <assert.h>
12262
/* Override any gcc2 internal prototype to avoid an error. */
12267
/* We use char because int might match the return type of a gcc2
12268
builtin and then its argument prototype would still apply. */
12270
/* The GNU C library defines this for functions which it implements
12271
to always fail with ENOSYS. Some functions are actually named
12272
something starting with __ and the normal name is an alias. */
12273
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12276
char (*f) () = shl_load;
12285
return f != shl_load;
12290
rm -f conftest.$ac_objext conftest$ac_exeext
12291
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12292
(eval $ac_link) 2>conftest.er1
12294
grep -v '^ *+' conftest.er1 >conftest.err
12296
cat conftest.err >&5
12297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298
(exit $ac_status); } &&
12299
{ ac_try='test -z "$ac_cxx_werror_flag"
12300
|| test ! -s conftest.err'
12301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302
(eval $ac_try) 2>&5
12304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305
(exit $ac_status); }; } &&
12306
{ ac_try='test -s conftest$ac_exeext'
12307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308
(eval $ac_try) 2>&5
12310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311
(exit $ac_status); }; }; then
12312
ac_cv_func_shl_load=yes
12314
echo "$as_me: failed program was:" >&5
12315
sed 's/^/| /' conftest.$ac_ext >&5
12317
ac_cv_func_shl_load=no
12319
rm -f conftest.err conftest.$ac_objext \
12320
conftest$ac_exeext conftest.$ac_ext
12322
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12323
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12324
if test $ac_cv_func_shl_load = yes; then
12325
lt_cv_dlopen="shl_load"
12327
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12328
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12329
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12330
echo $ECHO_N "(cached) $ECHO_C" >&6
12332
ac_check_lib_save_LIBS=$LIBS
12334
cat >conftest.$ac_ext <<_ACEOF
12337
cat confdefs.h >>conftest.$ac_ext
12338
cat >>conftest.$ac_ext <<_ACEOF
12339
/* end confdefs.h. */
12341
/* Override any gcc2 internal prototype to avoid an error. */
12345
/* We use char because int might match the return type of a gcc2
12346
builtin and then its argument prototype would still apply. */
12356
rm -f conftest.$ac_objext conftest$ac_exeext
12357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358
(eval $ac_link) 2>conftest.er1
12360
grep -v '^ *+' conftest.er1 >conftest.err
12362
cat conftest.err >&5
12363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364
(exit $ac_status); } &&
12365
{ ac_try='test -z "$ac_cxx_werror_flag"
12366
|| test ! -s conftest.err'
12367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368
(eval $ac_try) 2>&5
12370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371
(exit $ac_status); }; } &&
12372
{ ac_try='test -s conftest$ac_exeext'
12373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374
(eval $ac_try) 2>&5
12376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377
(exit $ac_status); }; }; then
12378
ac_cv_lib_dld_shl_load=yes
12380
echo "$as_me: failed program was:" >&5
12381
sed 's/^/| /' conftest.$ac_ext >&5
12383
ac_cv_lib_dld_shl_load=no
12385
rm -f conftest.err conftest.$ac_objext \
12386
conftest$ac_exeext conftest.$ac_ext
12387
LIBS=$ac_check_lib_save_LIBS
12389
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12390
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12391
if test $ac_cv_lib_dld_shl_load = yes; then
12392
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12394
echo "$as_me:$LINENO: checking for dlopen" >&5
12395
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12396
if test "${ac_cv_func_dlopen+set}" = set; then
12397
echo $ECHO_N "(cached) $ECHO_C" >&6
12399
cat >conftest.$ac_ext <<_ACEOF
12402
cat confdefs.h >>conftest.$ac_ext
12403
cat >>conftest.$ac_ext <<_ACEOF
12404
/* end confdefs.h. */
12405
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12406
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12407
#define dlopen innocuous_dlopen
12409
/* System header to define __stub macros and hopefully few prototypes,
12410
which can conflict with char dlopen (); below.
12411
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12412
<limits.h> exists even on freestanding compilers. */
12415
# include <limits.h>
12417
# include <assert.h>
12422
/* Override any gcc2 internal prototype to avoid an error. */
12427
/* We use char because int might match the return type of a gcc2
12428
builtin and then its argument prototype would still apply. */
12430
/* The GNU C library defines this for functions which it implements
12431
to always fail with ENOSYS. Some functions are actually named
12432
something starting with __ and the normal name is an alias. */
12433
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12436
char (*f) () = dlopen;
12445
return f != dlopen;
12450
rm -f conftest.$ac_objext conftest$ac_exeext
12451
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452
(eval $ac_link) 2>conftest.er1
12454
grep -v '^ *+' conftest.er1 >conftest.err
12456
cat conftest.err >&5
12457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458
(exit $ac_status); } &&
12459
{ ac_try='test -z "$ac_cxx_werror_flag"
12460
|| test ! -s conftest.err'
12461
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462
(eval $ac_try) 2>&5
12464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465
(exit $ac_status); }; } &&
12466
{ ac_try='test -s conftest$ac_exeext'
12467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468
(eval $ac_try) 2>&5
12470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471
(exit $ac_status); }; }; then
12472
ac_cv_func_dlopen=yes
12474
echo "$as_me: failed program was:" >&5
12475
sed 's/^/| /' conftest.$ac_ext >&5
12477
ac_cv_func_dlopen=no
12479
rm -f conftest.err conftest.$ac_objext \
12480
conftest$ac_exeext conftest.$ac_ext
12482
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12483
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12484
if test $ac_cv_func_dlopen = yes; then
12485
lt_cv_dlopen="dlopen"
12487
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12488
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12489
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12490
echo $ECHO_N "(cached) $ECHO_C" >&6
12492
ac_check_lib_save_LIBS=$LIBS
12494
cat >conftest.$ac_ext <<_ACEOF
12497
cat confdefs.h >>conftest.$ac_ext
12498
cat >>conftest.$ac_ext <<_ACEOF
12499
/* end confdefs.h. */
12501
/* Override any gcc2 internal prototype to avoid an error. */
12505
/* We use char because int might match the return type of a gcc2
12506
builtin and then its argument prototype would still apply. */
12516
rm -f conftest.$ac_objext conftest$ac_exeext
12517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518
(eval $ac_link) 2>conftest.er1
12520
grep -v '^ *+' conftest.er1 >conftest.err
12522
cat conftest.err >&5
12523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524
(exit $ac_status); } &&
12525
{ ac_try='test -z "$ac_cxx_werror_flag"
12526
|| test ! -s conftest.err'
12527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528
(eval $ac_try) 2>&5
12530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531
(exit $ac_status); }; } &&
12532
{ ac_try='test -s conftest$ac_exeext'
12533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534
(eval $ac_try) 2>&5
12536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537
(exit $ac_status); }; }; then
12538
ac_cv_lib_dl_dlopen=yes
12540
echo "$as_me: failed program was:" >&5
12541
sed 's/^/| /' conftest.$ac_ext >&5
12543
ac_cv_lib_dl_dlopen=no
12545
rm -f conftest.err conftest.$ac_objext \
12546
conftest$ac_exeext conftest.$ac_ext
12547
LIBS=$ac_check_lib_save_LIBS
12549
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12550
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12551
if test $ac_cv_lib_dl_dlopen = yes; then
12552
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12554
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12555
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12556
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12557
echo $ECHO_N "(cached) $ECHO_C" >&6
12559
ac_check_lib_save_LIBS=$LIBS
12560
LIBS="-lsvld $LIBS"
12561
cat >conftest.$ac_ext <<_ACEOF
12564
cat confdefs.h >>conftest.$ac_ext
12565
cat >>conftest.$ac_ext <<_ACEOF
12566
/* end confdefs.h. */
12568
/* Override any gcc2 internal prototype to avoid an error. */
12572
/* We use char because int might match the return type of a gcc2
12573
builtin and then its argument prototype would still apply. */
12583
rm -f conftest.$ac_objext conftest$ac_exeext
12584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585
(eval $ac_link) 2>conftest.er1
12587
grep -v '^ *+' conftest.er1 >conftest.err
12589
cat conftest.err >&5
12590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591
(exit $ac_status); } &&
12592
{ ac_try='test -z "$ac_cxx_werror_flag"
12593
|| test ! -s conftest.err'
12594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595
(eval $ac_try) 2>&5
12597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598
(exit $ac_status); }; } &&
12599
{ ac_try='test -s conftest$ac_exeext'
12600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601
(eval $ac_try) 2>&5
12603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604
(exit $ac_status); }; }; then
12605
ac_cv_lib_svld_dlopen=yes
12607
echo "$as_me: failed program was:" >&5
12608
sed 's/^/| /' conftest.$ac_ext >&5
12610
ac_cv_lib_svld_dlopen=no
12612
rm -f conftest.err conftest.$ac_objext \
12613
conftest$ac_exeext conftest.$ac_ext
12614
LIBS=$ac_check_lib_save_LIBS
12616
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12617
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12618
if test $ac_cv_lib_svld_dlopen = yes; then
12619
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12621
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12622
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12623
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12624
echo $ECHO_N "(cached) $ECHO_C" >&6
12626
ac_check_lib_save_LIBS=$LIBS
12628
cat >conftest.$ac_ext <<_ACEOF
12631
cat confdefs.h >>conftest.$ac_ext
12632
cat >>conftest.$ac_ext <<_ACEOF
12633
/* end confdefs.h. */
12635
/* Override any gcc2 internal prototype to avoid an error. */
12639
/* We use char because int might match the return type of a gcc2
12640
builtin and then its argument prototype would still apply. */
12650
rm -f conftest.$ac_objext conftest$ac_exeext
12651
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652
(eval $ac_link) 2>conftest.er1
12654
grep -v '^ *+' conftest.er1 >conftest.err
12656
cat conftest.err >&5
12657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658
(exit $ac_status); } &&
12659
{ ac_try='test -z "$ac_cxx_werror_flag"
12660
|| test ! -s conftest.err'
12661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662
(eval $ac_try) 2>&5
12664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665
(exit $ac_status); }; } &&
12666
{ ac_try='test -s conftest$ac_exeext'
12667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668
(eval $ac_try) 2>&5
12670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671
(exit $ac_status); }; }; then
12672
ac_cv_lib_dld_dld_link=yes
12674
echo "$as_me: failed program was:" >&5
12675
sed 's/^/| /' conftest.$ac_ext >&5
12677
ac_cv_lib_dld_dld_link=no
12679
rm -f conftest.err conftest.$ac_objext \
12680
conftest$ac_exeext conftest.$ac_ext
12681
LIBS=$ac_check_lib_save_LIBS
12683
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12684
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12685
if test $ac_cv_lib_dld_dld_link = yes; then
12686
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12707
if test "x$lt_cv_dlopen" != xno; then
12713
case $lt_cv_dlopen in
12715
save_CPPFLAGS="$CPPFLAGS"
12716
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12718
save_LDFLAGS="$LDFLAGS"
12719
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12722
LIBS="$lt_cv_dlopen_libs $LIBS"
12724
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12725
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12726
if test "${lt_cv_dlopen_self+set}" = set; then
12727
echo $ECHO_N "(cached) $ECHO_C" >&6
12729
if test "$cross_compiling" = yes; then :
12730
lt_cv_dlopen_self=cross
12732
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12733
lt_status=$lt_dlunknown
12734
cat > conftest.$ac_ext <<EOF
12735
#line 12735 "configure"
12736
#include "confdefs.h"
12745
# define LT_DLGLOBAL RTLD_GLOBAL
12748
# define LT_DLGLOBAL DL_GLOBAL
12750
# define LT_DLGLOBAL 0
12754
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12755
find out it does not work in some platform. */
12756
#ifndef LT_DLLAZY_OR_NOW
12758
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12761
# define LT_DLLAZY_OR_NOW DL_LAZY
12764
# define LT_DLLAZY_OR_NOW RTLD_NOW
12767
# define LT_DLLAZY_OR_NOW DL_NOW
12769
# define LT_DLLAZY_OR_NOW 0
12777
extern "C" void exit (int);
12780
void fnord() { int i=42;}
12783
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12784
int status = $lt_dlunknown;
12788
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12789
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12790
/* dlclose (self); */
12796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797
(eval $ac_link) 2>&5
12799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12801
(./conftest; exit; ) 2>/dev/null
12803
case x$lt_status in
12804
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12805
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12806
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12809
# compilation failed
12810
lt_cv_dlopen_self=no
12817
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12818
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12820
if test "x$lt_cv_dlopen_self" = xyes; then
12821
LDFLAGS="$LDFLAGS $link_static_flag"
12822
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12823
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12824
if test "${lt_cv_dlopen_self_static+set}" = set; then
12825
echo $ECHO_N "(cached) $ECHO_C" >&6
12827
if test "$cross_compiling" = yes; then :
12828
lt_cv_dlopen_self_static=cross
12830
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12831
lt_status=$lt_dlunknown
12832
cat > conftest.$ac_ext <<EOF
12833
#line 12833 "configure"
12834
#include "confdefs.h"
12843
# define LT_DLGLOBAL RTLD_GLOBAL
12846
# define LT_DLGLOBAL DL_GLOBAL
12848
# define LT_DLGLOBAL 0
12852
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12853
find out it does not work in some platform. */
12854
#ifndef LT_DLLAZY_OR_NOW
12856
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12859
# define LT_DLLAZY_OR_NOW DL_LAZY
12862
# define LT_DLLAZY_OR_NOW RTLD_NOW
12865
# define LT_DLLAZY_OR_NOW DL_NOW
12867
# define LT_DLLAZY_OR_NOW 0
12875
extern "C" void exit (int);
12878
void fnord() { int i=42;}
12881
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12882
int status = $lt_dlunknown;
12886
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12887
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12888
/* dlclose (self); */
12894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12895
(eval $ac_link) 2>&5
12897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12899
(./conftest; exit; ) 2>/dev/null
12901
case x$lt_status in
12902
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12903
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12904
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12907
# compilation failed
12908
lt_cv_dlopen_self_static=no
12915
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12916
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12919
CPPFLAGS="$save_CPPFLAGS"
12920
LDFLAGS="$save_LDFLAGS"
12925
case $lt_cv_dlopen_self in
12926
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12927
*) enable_dlopen_self=unknown ;;
12930
case $lt_cv_dlopen_self_static in
12931
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12932
*) enable_dlopen_self_static=unknown ;;
12937
13536
# The else clause should only fire when bootstrapping the
12938
13537
# libtool distribution, otherwise you forgot to ship ltmain.sh
17861
18800
enable_fast_install=needless
17866
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17867
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17868
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17869
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17870
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17871
echo "$as_me:$LINENO: result: yes" >&5
17872
echo "${ECHO_T}yes" >&6
17874
# FIXME - insert some real tests, host_os isn't really good enough
17877
if test -n "$STRIP" ; then
17878
striplib="$STRIP -x"
17879
echo "$as_me:$LINENO: result: yes" >&5
17880
echo "${ECHO_T}yes" >&6
17882
echo "$as_me:$LINENO: result: no" >&5
17883
echo "${ECHO_T}no" >&6
17887
echo "$as_me:$LINENO: result: no" >&5
17888
echo "${ECHO_T}no" >&6
17893
if test "x$enable_dlopen" != xyes; then
17894
enable_dlopen=unknown
17895
enable_dlopen_self=unknown
17896
enable_dlopen_self_static=unknown
17903
lt_cv_dlopen="load_add_on"
17905
lt_cv_dlopen_self=yes
17909
lt_cv_dlopen="LoadLibrary"
17914
lt_cv_dlopen="dlopen"
17919
# if libdl is installed we need to link against it
17920
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17921
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17922
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17923
echo $ECHO_N "(cached) $ECHO_C" >&6
17925
ac_check_lib_save_LIBS=$LIBS
17927
cat >conftest.$ac_ext <<_ACEOF
17930
cat confdefs.h >>conftest.$ac_ext
17931
cat >>conftest.$ac_ext <<_ACEOF
17932
/* end confdefs.h. */
17934
/* Override any gcc2 internal prototype to avoid an error. */
17938
/* We use char because int might match the return type of a gcc2
17939
builtin and then its argument prototype would still apply. */
17949
rm -f conftest.$ac_objext conftest$ac_exeext
17950
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17951
(eval $ac_link) 2>conftest.er1
17953
grep -v '^ *+' conftest.er1 >conftest.err
17955
cat conftest.err >&5
17956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957
(exit $ac_status); } &&
17958
{ ac_try='test -z "$ac_cxx_werror_flag"
17959
|| test ! -s conftest.err'
17960
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961
(eval $ac_try) 2>&5
17963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964
(exit $ac_status); }; } &&
17965
{ ac_try='test -s conftest$ac_exeext'
17966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967
(eval $ac_try) 2>&5
17969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970
(exit $ac_status); }; }; then
17971
ac_cv_lib_dl_dlopen=yes
17973
echo "$as_me: failed program was:" >&5
17974
sed 's/^/| /' conftest.$ac_ext >&5
17976
ac_cv_lib_dl_dlopen=no
17978
rm -f conftest.err conftest.$ac_objext \
17979
conftest$ac_exeext conftest.$ac_ext
17980
LIBS=$ac_check_lib_save_LIBS
17982
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17983
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17984
if test $ac_cv_lib_dl_dlopen = yes; then
17985
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17988
lt_cv_dlopen="dyld"
17990
lt_cv_dlopen_self=yes
17997
echo "$as_me:$LINENO: checking for shl_load" >&5
17998
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17999
if test "${ac_cv_func_shl_load+set}" = set; then
18000
echo $ECHO_N "(cached) $ECHO_C" >&6
18002
cat >conftest.$ac_ext <<_ACEOF
18005
cat confdefs.h >>conftest.$ac_ext
18006
cat >>conftest.$ac_ext <<_ACEOF
18007
/* end confdefs.h. */
18008
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18009
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18010
#define shl_load innocuous_shl_load
18012
/* System header to define __stub macros and hopefully few prototypes,
18013
which can conflict with char shl_load (); below.
18014
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015
<limits.h> exists even on freestanding compilers. */
18018
# include <limits.h>
18020
# include <assert.h>
18025
/* Override any gcc2 internal prototype to avoid an error. */
18030
/* We use char because int might match the return type of a gcc2
18031
builtin and then its argument prototype would still apply. */
18033
/* The GNU C library defines this for functions which it implements
18034
to always fail with ENOSYS. Some functions are actually named
18035
something starting with __ and the normal name is an alias. */
18036
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18039
char (*f) () = shl_load;
18048
return f != shl_load;
18053
rm -f conftest.$ac_objext conftest$ac_exeext
18054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055
(eval $ac_link) 2>conftest.er1
18057
grep -v '^ *+' conftest.er1 >conftest.err
18059
cat conftest.err >&5
18060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061
(exit $ac_status); } &&
18062
{ ac_try='test -z "$ac_cxx_werror_flag"
18063
|| test ! -s conftest.err'
18064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065
(eval $ac_try) 2>&5
18067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068
(exit $ac_status); }; } &&
18069
{ ac_try='test -s conftest$ac_exeext'
18070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071
(eval $ac_try) 2>&5
18073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074
(exit $ac_status); }; }; then
18075
ac_cv_func_shl_load=yes
18077
echo "$as_me: failed program was:" >&5
18078
sed 's/^/| /' conftest.$ac_ext >&5
18080
ac_cv_func_shl_load=no
18082
rm -f conftest.err conftest.$ac_objext \
18083
conftest$ac_exeext conftest.$ac_ext
18085
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18086
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18087
if test $ac_cv_func_shl_load = yes; then
18088
lt_cv_dlopen="shl_load"
18090
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18091
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18092
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18093
echo $ECHO_N "(cached) $ECHO_C" >&6
18095
ac_check_lib_save_LIBS=$LIBS
18097
cat >conftest.$ac_ext <<_ACEOF
18100
cat confdefs.h >>conftest.$ac_ext
18101
cat >>conftest.$ac_ext <<_ACEOF
18102
/* end confdefs.h. */
18104
/* Override any gcc2 internal prototype to avoid an error. */
18108
/* We use char because int might match the return type of a gcc2
18109
builtin and then its argument prototype would still apply. */
18119
rm -f conftest.$ac_objext conftest$ac_exeext
18120
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121
(eval $ac_link) 2>conftest.er1
18123
grep -v '^ *+' conftest.er1 >conftest.err
18125
cat conftest.err >&5
18126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127
(exit $ac_status); } &&
18128
{ ac_try='test -z "$ac_cxx_werror_flag"
18129
|| test ! -s conftest.err'
18130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131
(eval $ac_try) 2>&5
18133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134
(exit $ac_status); }; } &&
18135
{ ac_try='test -s conftest$ac_exeext'
18136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137
(eval $ac_try) 2>&5
18139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140
(exit $ac_status); }; }; then
18141
ac_cv_lib_dld_shl_load=yes
18143
echo "$as_me: failed program was:" >&5
18144
sed 's/^/| /' conftest.$ac_ext >&5
18146
ac_cv_lib_dld_shl_load=no
18148
rm -f conftest.err conftest.$ac_objext \
18149
conftest$ac_exeext conftest.$ac_ext
18150
LIBS=$ac_check_lib_save_LIBS
18152
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18153
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18154
if test $ac_cv_lib_dld_shl_load = yes; then
18155
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18157
echo "$as_me:$LINENO: checking for dlopen" >&5
18158
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18159
if test "${ac_cv_func_dlopen+set}" = set; then
18160
echo $ECHO_N "(cached) $ECHO_C" >&6
18162
cat >conftest.$ac_ext <<_ACEOF
18165
cat confdefs.h >>conftest.$ac_ext
18166
cat >>conftest.$ac_ext <<_ACEOF
18167
/* end confdefs.h. */
18168
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18169
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18170
#define dlopen innocuous_dlopen
18172
/* System header to define __stub macros and hopefully few prototypes,
18173
which can conflict with char dlopen (); below.
18174
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18175
<limits.h> exists even on freestanding compilers. */
18178
# include <limits.h>
18180
# include <assert.h>
18185
/* Override any gcc2 internal prototype to avoid an error. */
18190
/* We use char because int might match the return type of a gcc2
18191
builtin and then its argument prototype would still apply. */
18193
/* The GNU C library defines this for functions which it implements
18194
to always fail with ENOSYS. Some functions are actually named
18195
something starting with __ and the normal name is an alias. */
18196
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18199
char (*f) () = dlopen;
18208
return f != dlopen;
18213
rm -f conftest.$ac_objext conftest$ac_exeext
18214
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215
(eval $ac_link) 2>conftest.er1
18217
grep -v '^ *+' conftest.er1 >conftest.err
18219
cat conftest.err >&5
18220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221
(exit $ac_status); } &&
18222
{ ac_try='test -z "$ac_cxx_werror_flag"
18223
|| test ! -s conftest.err'
18224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225
(eval $ac_try) 2>&5
18227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228
(exit $ac_status); }; } &&
18229
{ ac_try='test -s conftest$ac_exeext'
18230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231
(eval $ac_try) 2>&5
18233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234
(exit $ac_status); }; }; then
18235
ac_cv_func_dlopen=yes
18237
echo "$as_me: failed program was:" >&5
18238
sed 's/^/| /' conftest.$ac_ext >&5
18240
ac_cv_func_dlopen=no
18242
rm -f conftest.err conftest.$ac_objext \
18243
conftest$ac_exeext conftest.$ac_ext
18245
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18246
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18247
if test $ac_cv_func_dlopen = yes; then
18248
lt_cv_dlopen="dlopen"
18250
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18251
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18252
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18253
echo $ECHO_N "(cached) $ECHO_C" >&6
18255
ac_check_lib_save_LIBS=$LIBS
18257
cat >conftest.$ac_ext <<_ACEOF
18260
cat confdefs.h >>conftest.$ac_ext
18261
cat >>conftest.$ac_ext <<_ACEOF
18262
/* end confdefs.h. */
18264
/* Override any gcc2 internal prototype to avoid an error. */
18268
/* We use char because int might match the return type of a gcc2
18269
builtin and then its argument prototype would still apply. */
18279
rm -f conftest.$ac_objext conftest$ac_exeext
18280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281
(eval $ac_link) 2>conftest.er1
18283
grep -v '^ *+' conftest.er1 >conftest.err
18285
cat conftest.err >&5
18286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287
(exit $ac_status); } &&
18288
{ ac_try='test -z "$ac_cxx_werror_flag"
18289
|| test ! -s conftest.err'
18290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291
(eval $ac_try) 2>&5
18293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294
(exit $ac_status); }; } &&
18295
{ ac_try='test -s conftest$ac_exeext'
18296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297
(eval $ac_try) 2>&5
18299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300
(exit $ac_status); }; }; then
18301
ac_cv_lib_dl_dlopen=yes
18303
echo "$as_me: failed program was:" >&5
18304
sed 's/^/| /' conftest.$ac_ext >&5
18306
ac_cv_lib_dl_dlopen=no
18308
rm -f conftest.err conftest.$ac_objext \
18309
conftest$ac_exeext conftest.$ac_ext
18310
LIBS=$ac_check_lib_save_LIBS
18312
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18313
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18314
if test $ac_cv_lib_dl_dlopen = yes; then
18315
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18317
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18318
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18319
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18320
echo $ECHO_N "(cached) $ECHO_C" >&6
18322
ac_check_lib_save_LIBS=$LIBS
18323
LIBS="-lsvld $LIBS"
18324
cat >conftest.$ac_ext <<_ACEOF
18327
cat confdefs.h >>conftest.$ac_ext
18328
cat >>conftest.$ac_ext <<_ACEOF
18329
/* end confdefs.h. */
18331
/* Override any gcc2 internal prototype to avoid an error. */
18335
/* We use char because int might match the return type of a gcc2
18336
builtin and then its argument prototype would still apply. */
18346
rm -f conftest.$ac_objext conftest$ac_exeext
18347
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18348
(eval $ac_link) 2>conftest.er1
18350
grep -v '^ *+' conftest.er1 >conftest.err
18352
cat conftest.err >&5
18353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354
(exit $ac_status); } &&
18355
{ ac_try='test -z "$ac_cxx_werror_flag"
18356
|| test ! -s conftest.err'
18357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358
(eval $ac_try) 2>&5
18360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361
(exit $ac_status); }; } &&
18362
{ ac_try='test -s conftest$ac_exeext'
18363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364
(eval $ac_try) 2>&5
18366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367
(exit $ac_status); }; }; then
18368
ac_cv_lib_svld_dlopen=yes
18370
echo "$as_me: failed program was:" >&5
18371
sed 's/^/| /' conftest.$ac_ext >&5
18373
ac_cv_lib_svld_dlopen=no
18375
rm -f conftest.err conftest.$ac_objext \
18376
conftest$ac_exeext conftest.$ac_ext
18377
LIBS=$ac_check_lib_save_LIBS
18379
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18380
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18381
if test $ac_cv_lib_svld_dlopen = yes; then
18382
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18384
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18385
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18386
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18387
echo $ECHO_N "(cached) $ECHO_C" >&6
18389
ac_check_lib_save_LIBS=$LIBS
18391
cat >conftest.$ac_ext <<_ACEOF
18394
cat confdefs.h >>conftest.$ac_ext
18395
cat >>conftest.$ac_ext <<_ACEOF
18396
/* end confdefs.h. */
18398
/* Override any gcc2 internal prototype to avoid an error. */
18402
/* We use char because int might match the return type of a gcc2
18403
builtin and then its argument prototype would still apply. */
18413
rm -f conftest.$ac_objext conftest$ac_exeext
18414
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415
(eval $ac_link) 2>conftest.er1
18417
grep -v '^ *+' conftest.er1 >conftest.err
18419
cat conftest.err >&5
18420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421
(exit $ac_status); } &&
18422
{ ac_try='test -z "$ac_cxx_werror_flag"
18423
|| test ! -s conftest.err'
18424
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425
(eval $ac_try) 2>&5
18427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428
(exit $ac_status); }; } &&
18429
{ ac_try='test -s conftest$ac_exeext'
18430
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431
(eval $ac_try) 2>&5
18433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434
(exit $ac_status); }; }; then
18435
ac_cv_lib_dld_dld_link=yes
18437
echo "$as_me: failed program was:" >&5
18438
sed 's/^/| /' conftest.$ac_ext >&5
18440
ac_cv_lib_dld_dld_link=no
18442
rm -f conftest.err conftest.$ac_objext \
18443
conftest$ac_exeext conftest.$ac_ext
18444
LIBS=$ac_check_lib_save_LIBS
18446
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18447
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18448
if test $ac_cv_lib_dld_dld_link = yes; then
18449
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18470
if test "x$lt_cv_dlopen" != xno; then
18476
case $lt_cv_dlopen in
18478
save_CPPFLAGS="$CPPFLAGS"
18479
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18481
save_LDFLAGS="$LDFLAGS"
18482
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18485
LIBS="$lt_cv_dlopen_libs $LIBS"
18487
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18488
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18489
if test "${lt_cv_dlopen_self+set}" = set; then
18490
echo $ECHO_N "(cached) $ECHO_C" >&6
18492
if test "$cross_compiling" = yes; then :
18493
lt_cv_dlopen_self=cross
18495
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18496
lt_status=$lt_dlunknown
18497
cat > conftest.$ac_ext <<EOF
18498
#line 18498 "configure"
18499
#include "confdefs.h"
18508
# define LT_DLGLOBAL RTLD_GLOBAL
18511
# define LT_DLGLOBAL DL_GLOBAL
18513
# define LT_DLGLOBAL 0
18517
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18518
find out it does not work in some platform. */
18519
#ifndef LT_DLLAZY_OR_NOW
18521
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18524
# define LT_DLLAZY_OR_NOW DL_LAZY
18527
# define LT_DLLAZY_OR_NOW RTLD_NOW
18530
# define LT_DLLAZY_OR_NOW DL_NOW
18532
# define LT_DLLAZY_OR_NOW 0
18540
extern "C" void exit (int);
18543
void fnord() { int i=42;}
18546
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18547
int status = $lt_dlunknown;
18551
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18552
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18553
/* dlclose (self); */
18559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18560
(eval $ac_link) 2>&5
18562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18564
(./conftest; exit; ) 2>/dev/null
18566
case x$lt_status in
18567
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18568
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18569
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18572
# compilation failed
18573
lt_cv_dlopen_self=no
18580
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18581
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18583
if test "x$lt_cv_dlopen_self" = xyes; then
18584
LDFLAGS="$LDFLAGS $link_static_flag"
18585
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18586
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18587
if test "${lt_cv_dlopen_self_static+set}" = set; then
18588
echo $ECHO_N "(cached) $ECHO_C" >&6
18590
if test "$cross_compiling" = yes; then :
18591
lt_cv_dlopen_self_static=cross
18593
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18594
lt_status=$lt_dlunknown
18595
cat > conftest.$ac_ext <<EOF
18596
#line 18596 "configure"
18597
#include "confdefs.h"
18606
# define LT_DLGLOBAL RTLD_GLOBAL
18609
# define LT_DLGLOBAL DL_GLOBAL
18611
# define LT_DLGLOBAL 0
18615
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18616
find out it does not work in some platform. */
18617
#ifndef LT_DLLAZY_OR_NOW
18619
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18622
# define LT_DLLAZY_OR_NOW DL_LAZY
18625
# define LT_DLLAZY_OR_NOW RTLD_NOW
18628
# define LT_DLLAZY_OR_NOW DL_NOW
18630
# define LT_DLLAZY_OR_NOW 0
18638
extern "C" void exit (int);
18641
void fnord() { int i=42;}
18644
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18645
int status = $lt_dlunknown;
18649
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18650
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18651
/* dlclose (self); */
18657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658
(eval $ac_link) 2>&5
18660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18662
(./conftest; exit; ) 2>/dev/null
18664
case x$lt_status in
18665
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18666
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18667
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18670
# compilation failed
18671
lt_cv_dlopen_self_static=no
18678
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18679
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18682
CPPFLAGS="$save_CPPFLAGS"
18683
LDFLAGS="$save_LDFLAGS"
18688
case $lt_cv_dlopen_self in
18689
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18690
*) enable_dlopen_self=unknown ;;
18693
case $lt_cv_dlopen_self_static in
18694
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18695
*) enable_dlopen_self_static=unknown ;;
18700
18804
# The else clause should only fire when bootstrapping the
18701
18805
# libtool distribution, otherwise you forgot to ship ltmain.sh
20620
20757
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20621
20758
if test $ac_header_dirent = dirent.h; then
20622
echo "$as_me:$LINENO: checking for library containing opendir" >&5
20623
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20624
if test "${ac_cv_search_opendir+set}" = set; then
20625
echo $ECHO_N "(cached) $ECHO_C" >&6
20627
ac_func_search_save_LIBS=$LIBS
20628
ac_cv_search_opendir=no
20629
cat >conftest.$ac_ext <<_ACEOF
20632
cat confdefs.h >>conftest.$ac_ext
20633
cat >>conftest.$ac_ext <<_ACEOF
20634
/* end confdefs.h. */
20636
/* Override any gcc2 internal prototype to avoid an error. */
20640
/* We use char because int might match the return type of a gcc2
20641
builtin and then its argument prototype would still apply. */
20651
rm -f conftest.$ac_objext conftest$ac_exeext
20652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20653
(eval $ac_link) 2>conftest.er1
20655
grep -v '^ *+' conftest.er1 >conftest.err
20657
cat conftest.err >&5
20658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659
(exit $ac_status); } &&
20660
{ ac_try='test -z "$ac_cxx_werror_flag"
20661
|| test ! -s conftest.err'
20662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663
(eval $ac_try) 2>&5
20665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666
(exit $ac_status); }; } &&
20667
{ ac_try='test -s conftest$ac_exeext'
20668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669
(eval $ac_try) 2>&5
20671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672
(exit $ac_status); }; }; then
20673
ac_cv_search_opendir="none required"
20675
echo "$as_me: failed program was:" >&5
20676
sed 's/^/| /' conftest.$ac_ext >&5
20679
rm -f conftest.err conftest.$ac_objext \
20680
conftest$ac_exeext conftest.$ac_ext
20681
if test "$ac_cv_search_opendir" = no; then
20682
for ac_lib in dir; do
20683
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20684
cat >conftest.$ac_ext <<_ACEOF
20687
cat confdefs.h >>conftest.$ac_ext
20688
cat >>conftest.$ac_ext <<_ACEOF
20689
/* end confdefs.h. */
20691
/* Override any gcc2 internal prototype to avoid an error. */
20695
/* We use char because int might match the return type of a gcc2
20696
builtin and then its argument prototype would still apply. */
20706
rm -f conftest.$ac_objext conftest$ac_exeext
20707
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708
(eval $ac_link) 2>conftest.er1
20710
grep -v '^ *+' conftest.er1 >conftest.err
20712
cat conftest.err >&5
20713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714
(exit $ac_status); } &&
20715
{ ac_try='test -z "$ac_cxx_werror_flag"
20716
|| test ! -s conftest.err'
20717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718
(eval $ac_try) 2>&5
20720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721
(exit $ac_status); }; } &&
20722
{ ac_try='test -s conftest$ac_exeext'
20723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724
(eval $ac_try) 2>&5
20726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727
(exit $ac_status); }; }; then
20728
ac_cv_search_opendir="-l$ac_lib"
20731
echo "$as_me: failed program was:" >&5
20732
sed 's/^/| /' conftest.$ac_ext >&5
20735
rm -f conftest.err conftest.$ac_objext \
20736
conftest$ac_exeext conftest.$ac_ext
20739
LIBS=$ac_func_search_save_LIBS
20741
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20742
echo "${ECHO_T}$ac_cv_search_opendir" >&6
20743
if test "$ac_cv_search_opendir" != no; then
20744
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20749
echo "$as_me:$LINENO: checking for library containing opendir" >&5
20750
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20751
if test "${ac_cv_search_opendir+set}" = set; then
20752
echo $ECHO_N "(cached) $ECHO_C" >&6
20754
ac_func_search_save_LIBS=$LIBS
20755
ac_cv_search_opendir=no
20756
cat >conftest.$ac_ext <<_ACEOF
20759
cat confdefs.h >>conftest.$ac_ext
20760
cat >>conftest.$ac_ext <<_ACEOF
20761
/* end confdefs.h. */
20763
/* Override any gcc2 internal prototype to avoid an error. */
20767
/* We use char because int might match the return type of a gcc2
20768
builtin and then its argument prototype would still apply. */
20778
rm -f conftest.$ac_objext conftest$ac_exeext
20779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20780
(eval $ac_link) 2>conftest.er1
20782
grep -v '^ *+' conftest.er1 >conftest.err
20784
cat conftest.err >&5
20785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786
(exit $ac_status); } &&
20787
{ ac_try='test -z "$ac_cxx_werror_flag"
20788
|| test ! -s conftest.err'
20789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790
(eval $ac_try) 2>&5
20792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793
(exit $ac_status); }; } &&
20794
{ ac_try='test -s conftest$ac_exeext'
20795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796
(eval $ac_try) 2>&5
20798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799
(exit $ac_status); }; }; then
20800
ac_cv_search_opendir="none required"
20802
echo "$as_me: failed program was:" >&5
20803
sed 's/^/| /' conftest.$ac_ext >&5
20806
rm -f conftest.err conftest.$ac_objext \
20807
conftest$ac_exeext conftest.$ac_ext
20808
if test "$ac_cv_search_opendir" = no; then
20809
for ac_lib in x; do
20810
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20811
cat >conftest.$ac_ext <<_ACEOF
20814
cat confdefs.h >>conftest.$ac_ext
20815
cat >>conftest.$ac_ext <<_ACEOF
20816
/* end confdefs.h. */
20818
/* Override any gcc2 internal prototype to avoid an error. */
20822
/* We use char because int might match the return type of a gcc2
20823
builtin and then its argument prototype would still apply. */
20833
rm -f conftest.$ac_objext conftest$ac_exeext
20834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20835
(eval $ac_link) 2>conftest.er1
20837
grep -v '^ *+' conftest.er1 >conftest.err
20839
cat conftest.err >&5
20840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841
(exit $ac_status); } &&
20842
{ ac_try='test -z "$ac_cxx_werror_flag"
20843
|| test ! -s conftest.err'
20844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845
(eval $ac_try) 2>&5
20847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848
(exit $ac_status); }; } &&
20849
{ ac_try='test -s conftest$ac_exeext'
20850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851
(eval $ac_try) 2>&5
20853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854
(exit $ac_status); }; }; then
20855
ac_cv_search_opendir="-l$ac_lib"
20858
echo "$as_me: failed program was:" >&5
20859
sed 's/^/| /' conftest.$ac_ext >&5
20862
rm -f conftest.err conftest.$ac_objext \
20863
conftest$ac_exeext conftest.$ac_ext
20866
LIBS=$ac_func_search_save_LIBS
20868
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20869
echo "${ECHO_T}$ac_cv_search_opendir" >&6
20870
if test "$ac_cv_search_opendir" != no; then
20871
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20877
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20878
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20759
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
20760
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20761
if test "${ac_cv_search_opendir+set}" = set; then
20762
echo $ECHO_N "(cached) $ECHO_C" >&6
20764
ac_func_search_save_LIBS=$LIBS
20765
cat >conftest.$ac_ext <<_ACEOF
20768
cat confdefs.h >>conftest.$ac_ext
20769
cat >>conftest.$ac_ext <<_ACEOF
20770
/* end confdefs.h. */
20772
/* Override any GCC internal prototype to avoid an error.
20773
Use char because int might match the return type of a GCC
20774
builtin and then its argument prototype would still apply. */
20787
for ac_lib in '' dir; do
20788
if test -z "$ac_lib"; then
20789
ac_res="none required"
20792
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20794
rm -f conftest.$ac_objext conftest$ac_exeext
20795
if { (ac_try="$ac_link"
20796
case "(($ac_try" in
20797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798
*) ac_try_echo=$ac_try;;
20800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801
(eval "$ac_link") 2>conftest.er1
20803
grep -v '^ *+' conftest.er1 >conftest.err
20805
cat conftest.err >&5
20806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807
(exit $ac_status); } && {
20808
test -z "$ac_cxx_werror_flag" ||
20809
test ! -s conftest.err
20810
} && test -s conftest$ac_exeext &&
20811
$as_test_x conftest$ac_exeext; then
20812
ac_cv_search_opendir=$ac_res
20814
echo "$as_me: failed program was:" >&5
20815
sed 's/^/| /' conftest.$ac_ext >&5
20820
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20822
if test "${ac_cv_search_opendir+set}" = set; then
20826
if test "${ac_cv_search_opendir+set}" = set; then
20829
ac_cv_search_opendir=no
20831
rm conftest.$ac_ext
20832
LIBS=$ac_func_search_save_LIBS
20834
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20835
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20836
ac_res=$ac_cv_search_opendir
20837
if test "$ac_res" != no; then
20838
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20843
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
20844
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20845
if test "${ac_cv_search_opendir+set}" = set; then
20846
echo $ECHO_N "(cached) $ECHO_C" >&6
20848
ac_func_search_save_LIBS=$LIBS
20849
cat >conftest.$ac_ext <<_ACEOF
20852
cat confdefs.h >>conftest.$ac_ext
20853
cat >>conftest.$ac_ext <<_ACEOF
20854
/* end confdefs.h. */
20856
/* Override any GCC internal prototype to avoid an error.
20857
Use char because int might match the return type of a GCC
20858
builtin and then its argument prototype would still apply. */
20871
for ac_lib in '' x; do
20872
if test -z "$ac_lib"; then
20873
ac_res="none required"
20876
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20878
rm -f conftest.$ac_objext conftest$ac_exeext
20879
if { (ac_try="$ac_link"
20880
case "(($ac_try" in
20881
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882
*) ac_try_echo=$ac_try;;
20884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885
(eval "$ac_link") 2>conftest.er1
20887
grep -v '^ *+' conftest.er1 >conftest.err
20889
cat conftest.err >&5
20890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891
(exit $ac_status); } && {
20892
test -z "$ac_cxx_werror_flag" ||
20893
test ! -s conftest.err
20894
} && test -s conftest$ac_exeext &&
20895
$as_test_x conftest$ac_exeext; then
20896
ac_cv_search_opendir=$ac_res
20898
echo "$as_me: failed program was:" >&5
20899
sed 's/^/| /' conftest.$ac_ext >&5
20904
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20906
if test "${ac_cv_search_opendir+set}" = set; then
20910
if test "${ac_cv_search_opendir+set}" = set; then
20913
ac_cv_search_opendir=no
20915
rm conftest.$ac_ext
20916
LIBS=$ac_func_search_save_LIBS
20918
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20919
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20920
ac_res=$ac_cv_search_opendir
20921
if test "$ac_res" != no; then
20922
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20928
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20929
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20879
20930
if test "${ac_cv_header_stat_broken+set}" = set; then
20880
20931
echo $ECHO_N "(cached) $ECHO_C" >&6
27385
27337
# Name of the executable.
27386
as_me=`$as_basename "$0" ||
27338
as_me=`$as_basename -- "$0" ||
27387
27339
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27388
27340
X"$0" : 'X\(//\)$' \| \
27389
X"$0" : 'X\(/\)$' \| \
27390
. : '\(.\)' 2>/dev/null ||
27341
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27391
27342
echo X/"$0" |
27392
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27393
/^X\/\(\/\/\)$/{ s//\1/; q; }
27394
/^X\/\(\/\).*/{ s//\1/; q; }
27398
# PATH needs CR, and LINENO needs CR and PATH.
27399
# Avoid depending upon Character Ranges.
27400
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27401
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27402
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27403
as_cr_digits='0123456789'
27404
as_cr_alnum=$as_cr_Letters$as_cr_digits
27406
# The user is always right.
27407
if test "${PATH_SEPARATOR+set}" != set; then
27408
echo "#! /bin/sh" >conf$$.sh
27409
echo "exit 0" >>conf$$.sh
27411
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27420
as_lineno_1=$LINENO
27421
as_lineno_2=$LINENO
27422
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27423
test "x$as_lineno_1" != "x$as_lineno_2" &&
27424
test "x$as_lineno_3" = "x$as_lineno_2" || {
27425
# Find who we are. Look in the path if we contain no path at all
27428
*[\\/]* ) as_myself=$0 ;;
27429
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27430
for as_dir in $PATH
27433
test -z "$as_dir" && as_dir=.
27434
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27439
# We did not find ourselves, most probably we were run as `sh COMMAND'
27440
# in which case we are not to be found in the path.
27441
if test "x$as_myself" = x; then
27444
if test ! -f "$as_myself"; then
27445
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27446
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27447
{ (exit 1); exit 1; }; }
27449
case $CONFIG_SHELL in
27451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27452
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27455
test -z "$as_dir" && as_dir=.
27456
for as_base in sh bash ksh sh5; do
27459
if ("$as_dir/$as_base" -c '
27460
as_lineno_1=$LINENO
27461
as_lineno_2=$LINENO
27462
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27463
test "x$as_lineno_1" != "x$as_lineno_2" &&
27464
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27465
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27466
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27467
CONFIG_SHELL=$as_dir/$as_base
27468
export CONFIG_SHELL
27469
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27343
sed '/^.*\/\([^/][^/]*\)\/*$/{
27362
as_lineno_1=$LINENO
27363
as_lineno_2=$LINENO
27364
test "x$as_lineno_1" != "x$as_lineno_2" &&
27365
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27477
27367
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27478
27368
# uniformly replaced by the line number. The first 'sed' inserts a
27479
# line-number line before each line; the second 'sed' does the real
27480
# work. The second script uses 'N' to pair each line-number line
27481
# with the numbered line, and appends trailing '-' during
27482
# substitution so that $LINENO is not a special case at line end.
27369
# line-number line after each line using $LINENO; the second 'sed'
27370
# does the real work. The second script uses 'N' to pair each
27371
# line-number line with the line containing $LINENO, and appends
27372
# trailing '-' during substitution so that $LINENO is not a special
27373
# case at line end.
27483
27374
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27484
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27485
sed '=' <$as_myself |
27375
# scripts with optimization help from Paolo Bonzini. Blame Lee
27376
# E. McMahon (1931-1989) for sed's syntax. :-)
27490
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27388
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27493
s,^['$as_cr_digits']*\n,,
27494
27391
' >$as_me.lineno &&
27495
chmod +x $as_me.lineno ||
27496
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27497
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27392
chmod +x "$as_me.lineno" ||
27393
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27498
27394
{ (exit 1); exit 1; }; }
27500
27396
# Don't try to exec as it changes $[0], causing all sort of problems
27501
27397
# (the dirname of $[0] is not the place where we might find the
27502
# original and so on. Autoconf is especially sensible to this).
27398
# original and so on. Autoconf is especially sensitive to this).
27399
. "./$as_me.lineno"
27504
27400
# Exit status is that of the last command.
27509
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27510
*c*,-n*) ECHO_N= ECHO_C='
27512
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27513
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27405
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27411
ECHO_C= ECHO_N= ECHO_T=
27412
case `echo -n x` in
27414
case `echo 'x\c'` in
27415
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
27516
if expr a : '\(a\)' >/dev/null 2>&1; then
27422
if expr a : '\(a\)' >/dev/null 2>&1 &&
27423
test "X`expr 00001 : '.*\(...\)'`" = X001; then
27519
27426
as_expr=false
27522
27429
rm -f conf$$ conf$$.exe conf$$.file
27430
if test -d conf$$.dir; then
27431
rm -f conf$$.dir/conf$$.file
27523
27436
echo >conf$$.file
27524
27437
if ln -s conf$$.file conf$$ 2>/dev/null; then
27525
# We could just check for DJGPP; but this test a) works b) is more generic
27526
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27527
if test -f conf$$.exe; then
27528
# Don't use ln at all; we don't have any links
27439
# ... but there are two gotchas:
27440
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27441
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27442
# In both cases, we have to default to `cp -p'.
27443
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27529
27444
as_ln_s='cp -p'
27533
27445
elif ln conf$$.file conf$$ 2>/dev/null; then
27536
27448
as_ln_s='cp -p'
27538
rm -f conf$$ conf$$.exe conf$$.file
27450
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27451
rmdir conf$$.dir 2>/dev/null
27540
27453
if mkdir -p . 2>/dev/null; then
27781
27693
# Have a temporary directory for convenience. Make it in the build tree
27782
# simply because there is no reason to put it here, and in addition,
27694
# simply because there is no reason against having it here, and in addition,
27783
27695
# creating and moving files from /tmp can sometimes cause problems.
27784
# Create a temporary directory, and hook for its removal unless debugging.
27696
# Hook for its removal unless debugging.
27697
# Note that there is a small window in which the directory will not be cleaned:
27698
# after its creation but before its name has been assigned to `$tmp'.
27787
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27702
trap 'exit_status=$?
27703
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27788
27705
trap '{ (exit 1); exit 1; }' 1 2 13 15
27791
27707
# Create a (secure) tmp directory for tmp files.
27794
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27710
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27795
27711
test -n "$tmp" && test -d "$tmp"
27798
tmp=./confstat$$-$RANDOM
27799
(umask 077 && mkdir $tmp)
27714
tmp=./conf$$-$RANDOM
27715
(umask 077 && mkdir "$tmp")
27802
27718
echo "$me: cannot create a temporary directory in ." >&2
27803
27719
{ (exit 1); exit 1; }
27808
cat >>$CONFIG_STATUS <<_ACEOF
27811
# CONFIG_FILES section.
27723
# Set up the sed scripts for CONFIG_FILES section.
27814
27726
# No need to generate the scripts if there are no CONFIG_FILES.
27815
27727
# This happens for instance when ./config.status config.h
27816
if test -n "\$CONFIG_FILES"; then
27817
# Protect against being on the right side of a sed subst in config.status.
27818
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27819
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27820
s,@SHELL@,$SHELL,;t t
27821
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27822
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27823
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27824
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27825
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27826
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27827
s,@exec_prefix@,$exec_prefix,;t t
27828
s,@prefix@,$prefix,;t t
27829
s,@program_transform_name@,$program_transform_name,;t t
27830
s,@bindir@,$bindir,;t t
27831
s,@sbindir@,$sbindir,;t t
27832
s,@libexecdir@,$libexecdir,;t t
27833
s,@datadir@,$datadir,;t t
27834
s,@sysconfdir@,$sysconfdir,;t t
27835
s,@sharedstatedir@,$sharedstatedir,;t t
27836
s,@localstatedir@,$localstatedir,;t t
27837
s,@libdir@,$libdir,;t t
27838
s,@includedir@,$includedir,;t t
27839
s,@oldincludedir@,$oldincludedir,;t t
27840
s,@infodir@,$infodir,;t t
27841
s,@mandir@,$mandir,;t t
27842
s,@build_alias@,$build_alias,;t t
27843
s,@host_alias@,$host_alias,;t t
27844
s,@target_alias@,$target_alias,;t t
27845
s,@DEFS@,$DEFS,;t t
27846
s,@ECHO_C@,$ECHO_C,;t t
27847
s,@ECHO_N@,$ECHO_N,;t t
27848
s,@ECHO_T@,$ECHO_T,;t t
27849
s,@LIBS@,$LIBS,;t t
27850
s,@CLLIB_VERSION@,$CLLIB_VERSION,;t t
27851
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27852
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27853
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27854
s,@CYGPATH_W@,$CYGPATH_W,;t t
27855
s,@PACKAGE@,$PACKAGE,;t t
27856
s,@VERSION@,$VERSION,;t t
27857
s,@ACLOCAL@,$ACLOCAL,;t t
27858
s,@AUTOCONF@,$AUTOCONF,;t t
27859
s,@AUTOMAKE@,$AUTOMAKE,;t t
27860
s,@AUTOHEADER@,$AUTOHEADER,;t t
27861
s,@MAKEINFO@,$MAKEINFO,;t t
27862
s,@install_sh@,$install_sh,;t t
27863
s,@STRIP@,$STRIP,;t t
27864
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27865
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27866
s,@mkdir_p@,$mkdir_p,;t t
27868
s,@SET_MAKE@,$SET_MAKE,;t t
27869
s,@am__leading_dot@,$am__leading_dot,;t t
27870
s,@AMTAR@,$AMTAR,;t t
27871
s,@am__tar@,$am__tar,;t t
27872
s,@am__untar@,$am__untar,;t t
27874
s,@CFLAGS@,$CFLAGS,;t t
27875
s,@LDFLAGS@,$LDFLAGS,;t t
27876
s,@CPPFLAGS@,$CPPFLAGS,;t t
27877
s,@ac_ct_CC@,$ac_ct_CC,;t t
27878
s,@EXEEXT@,$EXEEXT,;t t
27879
s,@OBJEXT@,$OBJEXT,;t t
27880
s,@DEPDIR@,$DEPDIR,;t t
27881
s,@am__include@,$am__include,;t t
27882
s,@am__quote@,$am__quote,;t t
27883
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27884
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27885
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27886
s,@CCDEPMODE@,$CCDEPMODE,;t t
27887
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27888
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27890
s,@CXXFLAGS@,$CXXFLAGS,;t t
27891
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27892
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27893
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27894
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27895
s,@build@,$build,;t t
27896
s,@build_cpu@,$build_cpu,;t t
27897
s,@build_vendor@,$build_vendor,;t t
27898
s,@build_os@,$build_os,;t t
27899
s,@host@,$host,;t t
27900
s,@host_cpu@,$host_cpu,;t t
27901
s,@host_vendor@,$host_vendor,;t t
27902
s,@host_os@,$host_os,;t t
27903
s,@EGREP@,$EGREP,;t t
27904
s,@LN_S@,$LN_S,;t t
27905
s,@ECHO@,$ECHO,;t t
27907
s,@ac_ct_AR@,$ac_ct_AR,;t t
27908
s,@RANLIB@,$RANLIB,;t t
27909
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27911
s,@CXXCPP@,$CXXCPP,;t t
27913
s,@FFLAGS@,$FFLAGS,;t t
27914
s,@ac_ct_F77@,$ac_ct_F77,;t t
27915
s,@LIBTOOL@,$LIBTOOL,;t t
27916
s,@acx_pthread_config@,$acx_pthread_config,;t t
27917
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
27918
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
27919
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
27920
s,@DOXYGEN@,$DOXYGEN,;t t
27922
s,@enable_doxygen@,$enable_doxygen,;t t
27923
s,@enable_dot@,$enable_dot,;t t
27924
s,@POW_LIB@,$POW_LIB,;t t
27925
s,@LIBOBJS@,$LIBOBJS,;t t
27926
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27931
cat >>$CONFIG_STATUS <<\_ACEOF
27932
# Split the substitutions into bite-sized pieces for seds with
27933
# small command number limits, like on Digital OSF/1 and HP-UX.
27934
ac_max_sed_lines=48
27935
ac_sed_frag=1 # Number of current file.
27936
ac_beg=1 # First line for current file.
27937
ac_end=$ac_max_sed_lines # Line after last line for current file.
27940
while $ac_more_lines; do
27941
if test $ac_beg -gt 1; then
27942
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27944
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27946
if test ! -s $tmp/subs.frag; then
27947
ac_more_lines=false
27949
# The purpose of the label and of the branching condition is to
27950
# speed up the sed processing (if there are no `@' at all, there
27951
# is no need to browse any of the substitutions).
27952
# These are the two extra sed commands mentioned above.
27954
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27955
if test -z "$ac_sed_cmds"; then
27956
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27958
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27960
ac_sed_frag=`expr $ac_sed_frag + 1`
27962
ac_end=`expr $ac_end + $ac_max_sed_lines`
27965
if test -z "$ac_sed_cmds"; then
27728
if test -n "$CONFIG_FILES"; then
27735
for ac_last_try in false false false false false :; do
27736
cat >conf$$subs.sed <<_ACEOF
27737
SHELL!$SHELL$ac_delim
27738
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27739
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27740
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27741
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27742
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27743
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27744
exec_prefix!$exec_prefix$ac_delim
27745
prefix!$prefix$ac_delim
27746
program_transform_name!$program_transform_name$ac_delim
27747
bindir!$bindir$ac_delim
27748
sbindir!$sbindir$ac_delim
27749
libexecdir!$libexecdir$ac_delim
27750
datarootdir!$datarootdir$ac_delim
27751
datadir!$datadir$ac_delim
27752
sysconfdir!$sysconfdir$ac_delim
27753
sharedstatedir!$sharedstatedir$ac_delim
27754
localstatedir!$localstatedir$ac_delim
27755
includedir!$includedir$ac_delim
27756
oldincludedir!$oldincludedir$ac_delim
27757
docdir!$docdir$ac_delim
27758
infodir!$infodir$ac_delim
27759
htmldir!$htmldir$ac_delim
27760
dvidir!$dvidir$ac_delim
27761
pdfdir!$pdfdir$ac_delim
27762
psdir!$psdir$ac_delim
27763
libdir!$libdir$ac_delim
27764
localedir!$localedir$ac_delim
27765
mandir!$mandir$ac_delim
27766
DEFS!$DEFS$ac_delim
27767
ECHO_C!$ECHO_C$ac_delim
27768
ECHO_N!$ECHO_N$ac_delim
27769
ECHO_T!$ECHO_T$ac_delim
27770
LIBS!$LIBS$ac_delim
27771
build_alias!$build_alias$ac_delim
27772
host_alias!$host_alias$ac_delim
27773
target_alias!$target_alias$ac_delim
27774
CLLIB_VERSION!$CLLIB_VERSION$ac_delim
27775
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27776
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27777
INSTALL_DATA!$INSTALL_DATA$ac_delim
27778
CYGPATH_W!$CYGPATH_W$ac_delim
27779
PACKAGE!$PACKAGE$ac_delim
27780
VERSION!$VERSION$ac_delim
27781
ACLOCAL!$ACLOCAL$ac_delim
27782
AUTOCONF!$AUTOCONF$ac_delim
27783
AUTOMAKE!$AUTOMAKE$ac_delim
27784
AUTOHEADER!$AUTOHEADER$ac_delim
27785
MAKEINFO!$MAKEINFO$ac_delim
27786
install_sh!$install_sh$ac_delim
27787
STRIP!$STRIP$ac_delim
27788
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27789
mkdir_p!$mkdir_p$ac_delim
27791
SET_MAKE!$SET_MAKE$ac_delim
27792
am__leading_dot!$am__leading_dot$ac_delim
27793
AMTAR!$AMTAR$ac_delim
27794
am__tar!$am__tar$ac_delim
27795
am__untar!$am__untar$ac_delim
27797
CFLAGS!$CFLAGS$ac_delim
27798
LDFLAGS!$LDFLAGS$ac_delim
27799
CPPFLAGS!$CPPFLAGS$ac_delim
27800
ac_ct_CC!$ac_ct_CC$ac_delim
27801
EXEEXT!$EXEEXT$ac_delim
27802
OBJEXT!$OBJEXT$ac_delim
27803
DEPDIR!$DEPDIR$ac_delim
27804
am__include!$am__include$ac_delim
27805
am__quote!$am__quote$ac_delim
27806
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27807
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27808
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27809
CCDEPMODE!$CCDEPMODE$ac_delim
27810
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27811
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27813
CXXFLAGS!$CXXFLAGS$ac_delim
27814
ac_ct_CXX!$ac_ct_CXX$ac_delim
27815
CXXDEPMODE!$CXXDEPMODE$ac_delim
27816
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27817
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27818
build!$build$ac_delim
27819
build_cpu!$build_cpu$ac_delim
27820
build_vendor!$build_vendor$ac_delim
27821
build_os!$build_os$ac_delim
27822
host!$host$ac_delim
27823
host_cpu!$host_cpu$ac_delim
27824
host_vendor!$host_vendor$ac_delim
27825
host_os!$host_os$ac_delim
27827
GREP!$GREP$ac_delim
27828
EGREP!$EGREP$ac_delim
27829
LN_S!$LN_S$ac_delim
27830
ECHO!$ECHO$ac_delim
27832
RANLIB!$RANLIB$ac_delim
27833
DSYMUTIL!$DSYMUTIL$ac_delim
27836
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27838
elif $ac_last_try; then
27839
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27840
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27841
{ (exit 1); exit 1; }; }
27843
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27847
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27848
if test -n "$ac_eof"; then
27849
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27850
ac_eof=`expr $ac_eof + 1`
27853
cat >>$CONFIG_STATUS <<_ACEOF
27854
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27855
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27858
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27859
s/^/s,@/; s/!/@,|#_!!_#|/
27862
s/'"$ac_delim"'$/,g/; t
27864
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27865
' >>$CONFIG_STATUS <conf$$subs.sed
27866
rm -f conf$$subs.sed
27867
cat >>$CONFIG_STATUS <<_ACEOF
27873
for ac_last_try in false false false false false :; do
27874
cat >conf$$subs.sed <<_ACEOF
27875
NMEDIT!$NMEDIT$ac_delim
27877
CXXCPP!$CXXCPP$ac_delim
27879
FFLAGS!$FFLAGS$ac_delim
27880
ac_ct_F77!$ac_ct_F77$ac_delim
27881
LIBTOOL!$LIBTOOL$ac_delim
27882
acx_pthread_config!$acx_pthread_config$ac_delim
27883
PTHREAD_CC!$PTHREAD_CC$ac_delim
27884
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27885
PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27886
DOXYGEN!$DOXYGEN$ac_delim
27888
enable_doxygen!$enable_doxygen$ac_delim
27889
enable_dot!$enable_dot$ac_delim
27890
POW_LIB!$POW_LIB$ac_delim
27891
LIBOBJS!$LIBOBJS$ac_delim
27892
LTLIBOBJS!$LTLIBOBJS$ac_delim
27895
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
27897
elif $ac_last_try; then
27898
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27899
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27900
{ (exit 1); exit 1; }; }
27902
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27906
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27907
if test -n "$ac_eof"; then
27908
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27909
ac_eof=`expr $ac_eof + 1`
27912
cat >>$CONFIG_STATUS <<_ACEOF
27913
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27914
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27917
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27918
s/^/s,@/; s/!/@,|#_!!_#|/
27921
s/'"$ac_delim"'$/,g/; t
27923
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27924
' >>$CONFIG_STATUS <conf$$subs.sed
27925
rm -f conf$$subs.sed
27926
cat >>$CONFIG_STATUS <<_ACEOF
27933
# VPATH may cause trouble with some makes, so we remove $(srcdir),
27934
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27935
# trailing colons and then remove the whole line if VPATH becomes empty
27936
# (actually we leave an empty line to preserve line numbers).
27937
if test "x$srcdir" = x.; then
27938
ac_vpsub='/^[ ]*VPATH[ ]*=/{
27939
s/:*\$(srcdir):*/:/
27940
s/:*\${srcdir}:*/:/
27942
s/^\([^=]*=[ ]*\):*/\1/
27948
cat >>$CONFIG_STATUS <<\_ACEOF
27968
27949
fi # test -n "$CONFIG_FILES"
27971
cat >>$CONFIG_STATUS <<\_ACEOF
27972
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27973
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27975
- | *:- | *:-:* ) # input from stdin
27977
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27978
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27979
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27980
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27981
* ) ac_file_in=$ac_file.in ;;
27984
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27985
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27952
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27955
:[FHLC]) ac_mode=$ac_tag; continue;;
27957
case $ac_mode$ac_tag in
27959
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27960
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27961
{ (exit 1); exit 1; }; };;
27962
:[FH]-) ac_tag=-:-;;
27963
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27980
-) ac_f="$tmp/stdin";;
27981
*) # Look for the file first in the build tree, then in the source tree
27982
# (if the path is not absolute). The absolute path cannot be DOS-style,
27983
# because $ac_f cannot contain `:'.
27987
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27989
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27990
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27991
{ (exit 1); exit 1; }; };;
27993
ac_file_inputs="$ac_file_inputs $ac_f"
27996
# Let's still pretend it is `configure' which instantiates (i.e., don't
27997
# use $as_me), people would be surprised to read:
27998
# /* config.h. Generated by config.status. */
27999
configure_input="Generated from "`IFS=:
28000
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28001
if test x"$ac_file" != x-; then
28002
configure_input="$ac_file. $configure_input"
28003
{ echo "$as_me:$LINENO: creating $ac_file" >&5
28004
echo "$as_me: creating $ac_file" >&6;}
28008
*:-:* | *:-) cat >"$tmp/stdin";;
28013
ac_dir=`$as_dirname -- "$ac_file" ||
27986
28014
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27987
28015
X"$ac_file" : 'X\(//\)[^/]' \| \
27988
28016
X"$ac_file" : 'X\(//\)$' \| \
27989
X"$ac_file" : 'X\(/\)' \| \
27990
. : '\(.\)' 2>/dev/null ||
28017
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27991
28018
echo X"$ac_file" |
27992
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27993
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27994
/^X\(\/\/\)$/{ s//\1/; q; }
27995
/^X\(\/\).*/{ s//\1/; q; }
27997
{ if $as_mkdir_p; then
28019
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28023
/^X\(\/\/\)[^/].*/{
28038
-*) as_dir=./$as_dir;;
28040
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28002
while test ! -d "$as_dir"; do
28003
as_dirs="$as_dir $as_dirs"
28004
as_dir=`(dirname "$as_dir") 2>/dev/null ||
28044
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28045
*) as_qdir=$as_dir;;
28047
as_dirs="'$as_qdir' $as_dirs"
28048
as_dir=`$as_dirname -- "$as_dir" ||
28005
28049
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28006
28050
X"$as_dir" : 'X\(//\)[^/]' \| \
28007
28051
X"$as_dir" : 'X\(//\)$' \| \
28008
X"$as_dir" : 'X\(/\)' \| \
28009
. : '\(.\)' 2>/dev/null ||
28052
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28010
28053
echo X"$as_dir" |
28011
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28012
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28013
/^X\(\/\/\)$/{ s//\1/; q; }
28014
/^X\(\/\).*/{ s//\1/; q; }
28054
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28058
/^X\(\/\/\)[^/].*/{
28071
test -d "$as_dir" && break
28017
test ! -n "$as_dirs" || mkdir $as_dirs
28018
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28019
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28073
test -z "$as_dirs" || eval "mkdir $as_dirs"
28074
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28075
echo "$as_me: error: cannot create directory $as_dir" >&2;}
28020
28076
{ (exit 1); exit 1; }; }; }
28022
28077
ac_builddir=.
28024
if test "$ac_dir" != .; then
28080
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28025
28082
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28026
# A "../" for each directory in $ac_dir_suffix.
28027
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28029
ac_dir_suffix= ac_top_builddir=
28083
# A ".." for each directory in $ac_dir_suffix.
28084
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28085
case $ac_top_builddir_sub in
28086
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28087
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28090
ac_abs_top_builddir=$ac_pwd
28091
ac_abs_builddir=$ac_pwd$ac_dir_suffix
28092
# for backward compatibility:
28093
ac_top_builddir=$ac_top_build_prefix
28032
28095
case $srcdir in
28033
.) # No --srcdir option. We are building in place.
28096
.) # We are building in place.
28035
if test -z "$ac_top_builddir"; then
28038
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28040
[\\/]* | ?:[\\/]* ) # Absolute path.
28098
ac_top_srcdir=$ac_top_builddir_sub
28099
ac_abs_top_srcdir=$ac_pwd ;;
28100
[\\/]* | ?:[\\/]* ) # Absolute name.
28041
28101
ac_srcdir=$srcdir$ac_dir_suffix;
28042
ac_top_srcdir=$srcdir ;;
28043
*) # Relative path.
28044
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28045
ac_top_srcdir=$ac_top_builddir$srcdir ;;
28048
# Do not use `cd foo && pwd` to compute absolute paths, because
28049
# the directories may not exist.
28051
.) ac_abs_builddir="$ac_dir";;
28054
.) ac_abs_builddir=`pwd`;;
28055
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28056
*) ac_abs_builddir=`pwd`/"$ac_dir";;
28059
case $ac_abs_builddir in
28060
.) ac_abs_top_builddir=${ac_top_builddir}.;;
28062
case ${ac_top_builddir}. in
28063
.) ac_abs_top_builddir=$ac_abs_builddir;;
28064
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28065
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28068
case $ac_abs_builddir in
28069
.) ac_abs_srcdir=$ac_srcdir;;
28072
.) ac_abs_srcdir=$ac_abs_builddir;;
28073
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28074
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28077
case $ac_abs_builddir in
28078
.) ac_abs_top_srcdir=$ac_top_srcdir;;
28080
case $ac_top_srcdir in
28081
.) ac_abs_top_srcdir=$ac_abs_builddir;;
28082
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28083
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28102
ac_top_srcdir=$srcdir
28103
ac_abs_top_srcdir=$srcdir ;;
28104
*) # Relative name.
28105
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28106
ac_top_srcdir=$ac_top_build_prefix$srcdir
28107
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28109
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28088
28118
case $INSTALL in
28089
28119
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28090
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28120
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28093
if test x"$ac_file" != x-; then
28094
{ echo "$as_me:$LINENO: creating $ac_file" >&5
28095
echo "$as_me: creating $ac_file" >&6;}
28098
# Let's still pretend it is `configure' which instantiates (i.e., don't
28099
# use $as_me), people would be surprised to read:
28100
# /* config.h. Generated by config.status. */
28101
if test x"$ac_file" = x-; then
28104
configure_input="$ac_file. "
28106
configure_input=$configure_input"Generated from `echo $ac_file_in |
28107
sed 's,.*/,,'` by configure."
28109
# First look for the input files in the build tree, otherwise in the
28111
ac_file_inputs=`IFS=:
28112
for f in $ac_file_in; do
28114
-) echo $tmp/stdin ;;
28116
# Absolute (can't be DOS-style, as IFS=:)
28117
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28118
echo "$as_me: error: cannot find input file: $f" >&2;}
28119
{ (exit 1); exit 1; }; }
28122
if test -f "$f"; then
28125
elif test -f "$srcdir/$f"; then
28130
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28131
echo "$as_me: error: cannot find input file: $f" >&2;}
28132
{ (exit 1); exit 1; }; }
28135
done` || { (exit 1); exit 1; }
28124
cat >>$CONFIG_STATUS <<\_ACEOF
28125
# If the template does not know about datarootdir, expand it.
28126
# FIXME: This hack should be removed a few years after 2.60.
28127
ac_datarootdir_hack=; ac_datarootdir_seen=
28129
case `sed -n '/datarootdir/ {
28138
' $ac_file_inputs` in
28139
*datarootdir*) ac_datarootdir_seen=yes;;
28140
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28141
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28142
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28144
cat >>$CONFIG_STATUS <<_ACEOF
28145
ac_datarootdir_hack='
28146
s&@datadir@&$datadir&g
28147
s&@docdir@&$docdir&g
28148
s&@infodir@&$infodir&g
28149
s&@localedir@&$localedir&g
28150
s&@mandir@&$mandir&g
28151
s&\\\${datarootdir}&$datarootdir&g' ;;
28155
# Neutralize VPATH when `$srcdir' = `.'.
28156
# Shell code in configure.ac might set extrasub.
28157
# FIXME: do we really want to maintain this feature?
28137
28158
cat >>$CONFIG_STATUS <<_ACEOF
28138
28159
sed "$ac_vpsub
28141
28162
cat >>$CONFIG_STATUS <<\_ACEOF
28143
28164
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28144
s,@configure_input@,$configure_input,;t t
28145
s,@srcdir@,$ac_srcdir,;t t
28146
s,@abs_srcdir@,$ac_abs_srcdir,;t t
28147
s,@top_srcdir@,$ac_top_srcdir,;t t
28148
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28149
s,@builddir@,$ac_builddir,;t t
28150
s,@abs_builddir@,$ac_abs_builddir,;t t
28151
s,@top_builddir@,$ac_top_builddir,;t t
28152
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28153
s,@INSTALL@,$ac_INSTALL,;t t
28154
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28156
if test x"$ac_file" != x-; then
28157
mv $tmp/out $ac_file
28165
s&@configure_input@&$configure_input&;t t
28166
s&@top_builddir@&$ac_top_builddir_sub&;t t
28167
s&@srcdir@&$ac_srcdir&;t t
28168
s&@abs_srcdir@&$ac_abs_srcdir&;t t
28169
s&@top_srcdir@&$ac_top_srcdir&;t t
28170
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28171
s&@builddir@&$ac_builddir&;t t
28172
s&@abs_builddir@&$ac_abs_builddir&;t t
28173
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28174
s&@INSTALL@&$ac_INSTALL&;t t
28175
$ac_datarootdir_hack
28176
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28178
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28179
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28180
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28181
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28182
which seems to be undefined. Please make sure it is defined." >&5
28183
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28184
which seems to be undefined. Please make sure it is defined." >&2;}
28188
-) cat "$tmp/out"; rm -f "$tmp/out";;
28189
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28165
cat >>$CONFIG_STATUS <<\_ACEOF
28168
# CONFIG_HEADER section.
28171
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28172
# NAME is the cpp macro being defined and VALUE is the value it is being given.
28174
# ac_d sets the value in "#define NAME VALUE" lines.
28175
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28176
ac_dB='[ ].*$,\1#\2'
28198
# Transform confdefs.h into a sed script `conftest.defines', that
28199
# substitutes the proper values into config.h.in to produce config.h.
28200
rm -f conftest.defines conftest.tail
28201
# First, append a space to every undef/define line, to ease matching.
28202
echo 's/$/ /' >conftest.defines
28203
# Then, protect against being on the right side of a sed subst, or in
28204
# an unquoted here document, in config.status. If some macros were
28205
# called several times there might be several #defines for the same
28206
# symbol, which is useless. But do not sort them, since the last
28207
# AC_DEFINE must be honored.
28208
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28209
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28210
# NAME is the cpp macro being defined, VALUE is the value it is being given.
28211
# PARAMS is the parameter list in the macro definition--in most cases, it's
28212
# just an empty string.
28213
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28214
ac_dB='\\)[ (].*,\\1define\\2'
28179
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28180
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28181
ac_uB='$,\1#\2define\3'
28185
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28186
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28188
- | *:- | *:-:* ) # input from stdin
28190
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28191
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28192
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28193
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28194
* ) ac_file_in=$ac_file.in ;;
28197
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28198
echo "$as_me: creating $ac_file" >&6;}
28200
# First look for the input files in the build tree, otherwise in the
28202
ac_file_inputs=`IFS=:
28203
for f in $ac_file_in; do
28205
-) echo $tmp/stdin ;;
28207
# Absolute (can't be DOS-style, as IFS=:)
28208
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28209
echo "$as_me: error: cannot find input file: $f" >&2;}
28210
{ (exit 1); exit 1; }; }
28211
# Do quote $f, to prevent DOS paths from being IFS'd.
28214
if test -f "$f"; then
28217
elif test -f "$srcdir/$f"; then
28222
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28223
echo "$as_me: error: cannot find input file: $f" >&2;}
28224
{ (exit 1); exit 1; }; }
28227
done` || { (exit 1); exit 1; }
28228
# Remove the trailing spaces.
28229
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28233
# Transform confdefs.h into two sed scripts, `conftest.defines' and
28234
# `conftest.undefs', that substitutes the proper values into
28235
# config.h.in to produce config.h. The first handles `#define'
28236
# templates, and the second `#undef' templates.
28237
# And first: Protect against being on the right side of a sed subst in
28238
# config.status. Protect against being in an unquoted here document
28239
# in config.status.
28240
rm -f conftest.defines conftest.undefs
28241
# Using a here document instead of a string reduces the quoting nightmare.
28242
# Putting comments in sed scripts is not portable.
28244
# `end' is used to avoid that the second main sed command (meant for
28245
# 0-ary CPP macros) applies to n-ary macro definitions.
28246
# See the Autoconf documentation for `clear'.
28247
cat >confdef2sed.sed <<\_ACEOF
28252
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28254
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28257
# If some macros were called several times there might be several times
28258
# the same #defines, which is useless. Nevertheless, we may not want to
28259
# sort them, since we want the *last* AC-DEFINE to be honored.
28260
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28261
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28262
rm -f confdef2sed.sed
28264
# This sed command replaces #undef with comments. This is necessary, for
28222
s/^[ ]*#[ ]*define[ ][ ]*//
28227
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28228
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28229
' >>conftest.defines
28231
# Remove the space that was appended to ease matching.
28232
# Then replace #undef with comments. This is necessary, for
28265
28233
# example, in the case of _POSIX_SOURCE, which is predefined and required
28266
28234
# on some systems where configure will not decide to define it.
28267
cat >>conftest.undefs <<\_ACEOF
28268
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28235
# (The regexp can be short, since the line contains either #define or #undef.)
28237
s,^[ #]*u.*,/* & */,' >>conftest.defines
28239
# Break up conftest.defines:
28240
ac_max_sed_lines=50
28242
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28243
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28244
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28246
ac_in='$ac_file_inputs'
28247
ac_out='"$tmp/out1"'
28248
ac_nxt='"$tmp/out2"'
28252
# Write a here document:
28253
cat >>$CONFIG_STATUS <<_ACEOF
28254
# First, check the format of the line:
28255
cat >"\$tmp/defines.sed" <<\\CEOF
28256
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28257
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28271
# Break up conftest.defines because some shells have a limit on the size
28272
# of here documents, and old seds have small limits too (100 cmds).
28273
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28274
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28275
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28276
echo ' :' >>$CONFIG_STATUS
28277
rm -f conftest.tail
28278
while grep . conftest.defines >/dev/null
28280
# Write a limited-size here document to $tmp/defines.sed.
28281
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28282
# Speed up: don't consider the non `#define' lines.
28283
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28284
# Work around the forget-to-reset-the-flag bug.
28285
echo 't clr' >>$CONFIG_STATUS
28286
echo ': clr' >>$CONFIG_STATUS
28287
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28261
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28289
sed -f $tmp/defines.sed $tmp/in >$tmp/out
28291
mv $tmp/out $tmp/in
28293
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28263
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28264
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28265
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28266
grep . conftest.tail >/dev/null || break
28294
28267
rm -f conftest.defines
28295
28268
mv conftest.tail conftest.defines
28297
rm -f conftest.defines
28298
echo ' fi # grep' >>$CONFIG_STATUS
28299
echo >>$CONFIG_STATUS
28301
# Break up conftest.undefs because some shells have a limit on the size
28302
# of here documents, and old seds have small limits too (100 cmds).
28303
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28304
rm -f conftest.tail
28305
while grep . conftest.undefs >/dev/null
28307
# Write a limited-size here document to $tmp/undefs.sed.
28308
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28309
# Speed up: don't consider the non `#undef'
28310
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28311
# Work around the forget-to-reset-the-flag bug.
28312
echo 't clr' >>$CONFIG_STATUS
28313
echo ': clr' >>$CONFIG_STATUS
28314
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28316
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28318
mv $tmp/out $tmp/in
28320
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28321
rm -f conftest.undefs
28322
mv conftest.tail conftest.undefs
28324
rm -f conftest.undefs
28270
rm -f conftest.defines conftest.tail
28272
echo "ac_result=$ac_in" >>$CONFIG_STATUS
28326
28273
cat >>$CONFIG_STATUS <<\_ACEOF
28327
# Let's still pretend it is `configure' which instantiates (i.e., don't
28328
# use $as_me), people would be surprised to read:
28329
# /* config.h. Generated by config.status. */
28330
if test x"$ac_file" = x-; then
28331
echo "/* Generated by configure. */" >$tmp/config.h
28333
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28335
cat $tmp/in >>$tmp/config.h
28337
28274
if test x"$ac_file" != x-; then
28338
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28275
echo "/* $configure_input */" >"$tmp/config.h"
28276
cat "$ac_result" >>"$tmp/config.h"
28277
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28339
28278
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28340
28279
echo "$as_me: $ac_file is unchanged" >&6;}
28342
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28343
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28344
X"$ac_file" : 'X\(//\)[^/]' \| \
28345
X"$ac_file" : 'X\(//\)$' \| \
28346
X"$ac_file" : 'X\(/\)' \| \
28347
. : '\(.\)' 2>/dev/null ||
28349
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28350
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28351
/^X\(\/\/\)$/{ s//\1/; q; }
28352
/^X\(\/\).*/{ s//\1/; q; }
28354
{ if $as_mkdir_p; then
28359
while test ! -d "$as_dir"; do
28360
as_dirs="$as_dir $as_dirs"
28361
as_dir=`(dirname "$as_dir") 2>/dev/null ||
28362
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28363
X"$as_dir" : 'X\(//\)[^/]' \| \
28364
X"$as_dir" : 'X\(//\)$' \| \
28365
X"$as_dir" : 'X\(/\)' \| \
28366
. : '\(.\)' 2>/dev/null ||
28368
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28369
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28370
/^X\(\/\/\)$/{ s//\1/; q; }
28371
/^X\(\/\).*/{ s//\1/; q; }
28374
test ! -n "$as_dirs" || mkdir $as_dirs
28375
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28376
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28377
{ (exit 1); exit 1; }; }; }
28379
28281
rm -f $ac_file
28380
mv $tmp/config.h $ac_file
28282
mv "$tmp/config.h" $ac_file
28384
rm -f $tmp/config.h
28285
echo "/* $configure_input */"
28386
28289
# Compute $ac_file's index in $config_headers.
28387
28290
_am_stamp_count=1
28388
28291
for _am_header in $config_headers :; do