67
132
# Name of the executable.
68
as_me=`$as_basename "$0" ||
133
as_me=`$as_basename -- "$0" ||
69
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
135
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
132
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
227
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
158
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
431
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
164
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
174
s,^['$as_cr_digits']*\n,,
175
454
' >$as_me.lineno &&
176
chmod +x $as_me.lineno ||
455
chmod +x "$as_me.lineno" ||
177
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
457
{ (exit 1); exit 1; }; }
180
459
# Don't try to exec as it changes $[0], causing all sort of problems
181
460
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
461
# original and so on. Autoconf is especially sensitive to this).
184
463
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
196
if expr a : '\(a\)' >/dev/null 2>&1; then
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
202
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
203
499
echo >conf$$.file
204
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
213
508
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
220
516
if mkdir -p . 2>/dev/null; then
2558
3068
rm -f conftest.$ac_objext
2559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560
(eval $ac_compile) 2>conftest.er1
3069
if { (ac_try="$ac_compile"
3071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072
*) ac_try_echo=$ac_try;;
3074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075
(eval "$ac_compile") 2>conftest.er1
2562
3077
grep -v '^ *+' conftest.er1 >conftest.err
2563
3078
rm -f conftest.er1
2564
3079
cat conftest.err >&5
2565
3080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566
(exit $ac_status); } &&
2567
{ ac_try='test -z "$ac_c_werror_flag"
2568
|| test ! -s conftest.err'
2569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
(exit $ac_status); }; } &&
2574
{ ac_try='test -s conftest.$ac_objext'
2575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579
(exit $ac_status); }; }; then
3081
(exit $ac_status); } && {
3082
test -z "$ac_c_werror_flag" ||
3083
test ! -s conftest.err
3084
} && test -s conftest.$ac_objext; then
2580
3085
ac_compiler_gnu=yes
2582
3087
echo "$as_me: failed program was:" >&5
2583
3088
sed 's/^/| /' conftest.$ac_ext >&5
2587
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588
3094
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2591
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3097
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3098
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2593
3099
GCC=`test $ac_compiler_gnu = yes && echo yes`
2594
3100
ac_test_CFLAGS=${CFLAGS+set}
2595
3101
ac_save_CFLAGS=$CFLAGS
2597
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3102
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3103
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2599
3104
if test "${ac_cv_prog_cc_g+set}" = set; then
2600
3105
echo $ECHO_N "(cached) $ECHO_C" >&6
2602
cat >conftest.$ac_ext <<_ACEOF
2605
cat confdefs.h >>conftest.$ac_ext
2606
cat >>conftest.$ac_ext <<_ACEOF
2607
/* end confdefs.h. */
2617
rm -f conftest.$ac_objext
2618
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619
(eval $ac_compile) 2>conftest.er1
2621
grep -v '^ *+' conftest.er1 >conftest.err
2623
cat conftest.err >&5
2624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625
(exit $ac_status); } &&
2626
{ ac_try='test -z "$ac_c_werror_flag"
2627
|| test ! -s conftest.err'
2628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
(exit $ac_status); }; } &&
2633
{ ac_try='test -s conftest.$ac_objext'
2634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
(exit $ac_status); }; }; then
2641
echo "$as_me: failed program was:" >&5
2642
sed 's/^/| /' conftest.$ac_ext >&5
2646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3107
ac_save_c_werror_flag=$ac_c_werror_flag
3108
ac_c_werror_flag=yes
3111
cat >conftest.$ac_ext <<_ACEOF
3114
cat confdefs.h >>conftest.$ac_ext
3115
cat >>conftest.$ac_ext <<_ACEOF
3116
/* end confdefs.h. */
3126
rm -f conftest.$ac_objext
3127
if { (ac_try="$ac_compile"
3129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130
*) ac_try_echo=$ac_try;;
3132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133
(eval "$ac_compile") 2>conftest.er1
3135
grep -v '^ *+' conftest.er1 >conftest.err
3137
cat conftest.err >&5
3138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139
(exit $ac_status); } && {
3140
test -z "$ac_c_werror_flag" ||
3141
test ! -s conftest.err
3142
} && test -s conftest.$ac_objext; then
3145
echo "$as_me: failed program was:" >&5
3146
sed 's/^/| /' conftest.$ac_ext >&5
3149
cat >conftest.$ac_ext <<_ACEOF
3152
cat confdefs.h >>conftest.$ac_ext
3153
cat >>conftest.$ac_ext <<_ACEOF
3154
/* end confdefs.h. */
3164
rm -f conftest.$ac_objext
3165
if { (ac_try="$ac_compile"
3167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168
*) ac_try_echo=$ac_try;;
3170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171
(eval "$ac_compile") 2>conftest.er1
3173
grep -v '^ *+' conftest.er1 >conftest.err
3175
cat conftest.err >&5
3176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
(exit $ac_status); } && {
3178
test -z "$ac_c_werror_flag" ||
3179
test ! -s conftest.err
3180
} && test -s conftest.$ac_objext; then
3183
echo "$as_me: failed program was:" >&5
3184
sed 's/^/| /' conftest.$ac_ext >&5
3186
ac_c_werror_flag=$ac_save_c_werror_flag
3188
cat >conftest.$ac_ext <<_ACEOF
3191
cat confdefs.h >>conftest.$ac_ext
3192
cat >>conftest.$ac_ext <<_ACEOF
3193
/* end confdefs.h. */
3203
rm -f conftest.$ac_objext
3204
if { (ac_try="$ac_compile"
3206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207
*) ac_try_echo=$ac_try;;
3209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210
(eval "$ac_compile") 2>conftest.er1
3212
grep -v '^ *+' conftest.er1 >conftest.err
3214
cat conftest.err >&5
3215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216
(exit $ac_status); } && {
3217
test -z "$ac_c_werror_flag" ||
3218
test ! -s conftest.err
3219
} && test -s conftest.$ac_objext; then
3222
echo "$as_me: failed program was:" >&5
3223
sed 's/^/| /' conftest.$ac_ext >&5
3228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235
ac_c_werror_flag=$ac_save_c_werror_flag
3237
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2650
3239
if test "$ac_test_CFLAGS" = set; then
2651
3240
CFLAGS=$ac_save_CFLAGS
2652
3241
elif test $ac_cv_prog_cc_g = yes; then
2724
# Don't try gcc -ansi; that turns off useful extensions and
2725
# breaks some systems' header files.
2726
# AIX -qlanglvl=ansi
2727
# Ultrix and OSF/1 -std1
2728
# HP-UX 10.20 and later -Ae
2729
# HP-UX older versions -Aa -D_HPUX_SOURCE
2730
# SVR4 -Xc -D__EXTENSIONS__
2731
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3318
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2733
3321
CC="$ac_save_CC $ac_arg"
2734
3322
rm -f conftest.$ac_objext
2735
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736
(eval $ac_compile) 2>conftest.er1
3323
if { (ac_try="$ac_compile"
3325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326
*) ac_try_echo=$ac_try;;
3328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329
(eval "$ac_compile") 2>conftest.er1
2738
3331
grep -v '^ *+' conftest.er1 >conftest.err
2739
3332
rm -f conftest.er1
2740
3333
cat conftest.err >&5
2741
3334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742
(exit $ac_status); } &&
2743
{ ac_try='test -z "$ac_c_werror_flag"
2744
|| test ! -s conftest.err'
2745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
(exit $ac_status); }; } &&
2750
{ ac_try='test -s conftest.$ac_objext'
2751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
(exit $ac_status); }; }; then
2756
ac_cv_prog_cc_stdc=$ac_arg
3335
(exit $ac_status); } && {
3336
test -z "$ac_c_werror_flag" ||
3337
test ! -s conftest.err
3338
} && test -s conftest.$ac_objext; then
3339
ac_cv_prog_cc_c89=$ac_arg
2759
3341
echo "$as_me: failed program was:" >&5
2760
3342
sed 's/^/| /' conftest.$ac_ext >&5
2763
rm -f conftest.err conftest.$ac_objext
3347
rm -f core conftest.err conftest.$ac_objext
3348
test "x$ac_cv_prog_cc_c89" != "xno" && break
2765
rm -f conftest.$ac_ext conftest.$ac_objext
3350
rm -f conftest.$ac_ext
2770
case "x$ac_cv_prog_cc_stdc" in
2772
echo "$as_me:$LINENO: result: none needed" >&5
2773
echo "${ECHO_T}none needed" >&6 ;;
3355
case "x$ac_cv_prog_cc_c89" in
3357
{ echo "$as_me:$LINENO: result: none needed" >&5
3358
echo "${ECHO_T}none needed" >&6; } ;;
3360
{ echo "$as_me:$LINENO: result: unsupported" >&5
3361
echo "${ECHO_T}unsupported" >&6; } ;;
2775
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2776
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2777
CC="$CC $ac_cv_prog_cc_stdc" ;;
3363
CC="$CC $ac_cv_prog_cc_c89"
3364
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3365
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2780
# Some people use a C++ compiler to compile C. Since we use `exit',
2781
# in C++ we need to declare it. In case someone uses the same compiler
2782
# for both compiling C and C++ we need to have the C++ compiler decide
2783
# the declaration of exit, since it's the most demanding environment.
2784
cat >conftest.$ac_ext <<_ACEOF
2789
rm -f conftest.$ac_objext
2790
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791
(eval $ac_compile) 2>conftest.er1
2793
grep -v '^ *+' conftest.er1 >conftest.err
2795
cat conftest.err >&5
2796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797
(exit $ac_status); } &&
2798
{ ac_try='test -z "$ac_c_werror_flag"
2799
|| test ! -s conftest.err'
2800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804
(exit $ac_status); }; } &&
2805
{ ac_try='test -s conftest.$ac_objext'
2806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810
(exit $ac_status); }; }; then
2811
for ac_declaration in \
2813
'extern "C" void std::exit (int) throw (); using std::exit;' \
2814
'extern "C" void std::exit (int); using std::exit;' \
2815
'extern "C" void exit (int) throw ();' \
2816
'extern "C" void exit (int);' \
2819
cat >conftest.$ac_ext <<_ACEOF
2822
cat confdefs.h >>conftest.$ac_ext
2823
cat >>conftest.$ac_ext <<_ACEOF
2824
/* end confdefs.h. */
2835
rm -f conftest.$ac_objext
2836
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837
(eval $ac_compile) 2>conftest.er1
2839
grep -v '^ *+' conftest.er1 >conftest.err
2841
cat conftest.err >&5
2842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843
(exit $ac_status); } &&
2844
{ ac_try='test -z "$ac_c_werror_flag"
2845
|| test ! -s conftest.err'
2846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
(exit $ac_status); }; } &&
2851
{ ac_try='test -s conftest.$ac_objext'
2852
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856
(exit $ac_status); }; }; then
2859
echo "$as_me: failed program was:" >&5
2860
sed 's/^/| /' conftest.$ac_ext >&5
2864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865
cat >conftest.$ac_ext <<_ACEOF
2868
cat confdefs.h >>conftest.$ac_ext
2869
cat >>conftest.$ac_ext <<_ACEOF
2870
/* end confdefs.h. */
2880
rm -f conftest.$ac_objext
2881
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882
(eval $ac_compile) 2>conftest.er1
2884
grep -v '^ *+' conftest.er1 >conftest.err
2886
cat conftest.err >&5
2887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888
(exit $ac_status); } &&
2889
{ ac_try='test -z "$ac_c_werror_flag"
2890
|| test ! -s conftest.err'
2891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895
(exit $ac_status); }; } &&
2896
{ ac_try='test -s conftest.$ac_objext'
2897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901
(exit $ac_status); }; }; then
2904
echo "$as_me: failed program was:" >&5
2905
sed 's/^/| /' conftest.$ac_ext >&5
2908
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911
if test -n "$ac_declaration"; then
2912
echo '#ifdef __cplusplus' >>confdefs.h
2913
echo $ac_declaration >>confdefs.h
2914
echo '#endif' >>confdefs.h
2918
echo "$as_me: failed program was:" >&5
2919
sed 's/^/| /' conftest.$ac_ext >&5
2922
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924
3370
ac_cpp='$CPP $CPPFLAGS'
2925
3371
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282
3757
SED=$lt_cv_path_SED
3283
echo "$as_me:$LINENO: result: $SED" >&5
3284
echo "${ECHO_T}$SED" >&6
3286
echo "$as_me:$LINENO: checking for egrep" >&5
3287
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3288
if test "${ac_cv_prog_egrep+set}" = set; then
3289
echo $ECHO_N "(cached) $ECHO_C" >&6
3291
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3292
then ac_cv_prog_egrep='grep -E'
3293
else ac_cv_prog_egrep='egrep'
3296
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3297
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3298
EGREP=$ac_cv_prog_egrep
3302
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3758
{ echo "$as_me:$LINENO: result: $SED" >&5
3759
echo "${ECHO_T}$SED" >&6; }
3761
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3762
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3763
if test "${ac_cv_path_GREP+set}" = set; then
3764
echo $ECHO_N "(cached) $ECHO_C" >&6
3766
# Extract the first word of "grep ggrep" to use in msg output
3767
if test -z "$GREP"; then
3768
set dummy grep ggrep; ac_prog_name=$2
3769
if test "${ac_cv_path_GREP+set}" = set; then
3770
echo $ECHO_N "(cached) $ECHO_C" >&6
3772
ac_path_GREP_found=false
3773
# Loop through the user's path and test for each of PROGNAME-LIST
3774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778
test -z "$as_dir" && as_dir=.
3779
for ac_prog in grep ggrep; do
3780
for ac_exec_ext in '' $ac_executable_extensions; do
3781
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3782
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3783
# Check for GNU ac_path_GREP and select it if it is found.
3784
# Check for GNU $ac_path_GREP
3785
case `"$ac_path_GREP" --version 2>&1` in
3787
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3790
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3793
cat "conftest.in" "conftest.in" >"conftest.tmp"
3794
mv "conftest.tmp" "conftest.in"
3795
cp "conftest.in" "conftest.nl"
3796
echo 'GREP' >> "conftest.nl"
3797
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799
ac_count=`expr $ac_count + 1`
3800
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3801
# Best one so far, save it but keep looking for a better one
3802
ac_cv_path_GREP="$ac_path_GREP"
3803
ac_path_GREP_max=$ac_count
3805
# 10*(2^10) chars as input seems more than enough
3806
test $ac_count -gt 10 && break
3808
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812
$ac_path_GREP_found && break 3
3822
GREP="$ac_cv_path_GREP"
3823
if test -z "$GREP"; then
3824
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3825
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3826
{ (exit 1); exit 1; }; }
3830
ac_cv_path_GREP=$GREP
3835
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3836
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3837
GREP="$ac_cv_path_GREP"
3840
{ echo "$as_me:$LINENO: checking for egrep" >&5
3841
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3842
if test "${ac_cv_path_EGREP+set}" = set; then
3843
echo $ECHO_N "(cached) $ECHO_C" >&6
3845
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3846
then ac_cv_path_EGREP="$GREP -E"
3848
# Extract the first word of "egrep" to use in msg output
3849
if test -z "$EGREP"; then
3850
set dummy egrep; ac_prog_name=$2
3851
if test "${ac_cv_path_EGREP+set}" = set; then
3852
echo $ECHO_N "(cached) $ECHO_C" >&6
3854
ac_path_EGREP_found=false
3855
# Loop through the user's path and test for each of PROGNAME-LIST
3856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860
test -z "$as_dir" && as_dir=.
3861
for ac_prog in egrep; do
3862
for ac_exec_ext in '' $ac_executable_extensions; do
3863
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3864
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3865
# Check for GNU ac_path_EGREP and select it if it is found.
3866
# Check for GNU $ac_path_EGREP
3867
case `"$ac_path_EGREP" --version 2>&1` in
3869
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3872
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3875
cat "conftest.in" "conftest.in" >"conftest.tmp"
3876
mv "conftest.tmp" "conftest.in"
3877
cp "conftest.in" "conftest.nl"
3878
echo 'EGREP' >> "conftest.nl"
3879
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3880
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3881
ac_count=`expr $ac_count + 1`
3882
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3883
# Best one so far, save it but keep looking for a better one
3884
ac_cv_path_EGREP="$ac_path_EGREP"
3885
ac_path_EGREP_max=$ac_count
3887
# 10*(2^10) chars as input seems more than enough
3888
test $ac_count -gt 10 && break
3890
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894
$ac_path_EGREP_found && break 3
3904
EGREP="$ac_cv_path_EGREP"
3905
if test -z "$EGREP"; then
3906
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3907
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3908
{ (exit 1); exit 1; }; }
3912
ac_cv_path_EGREP=$EGREP
3918
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3919
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3920
EGREP="$ac_cv_path_EGREP"
3924
# Check whether --with-gnu-ld was given.
3303
3925
if test "${with_gnu_ld+set}" = set; then
3304
withval="$with_gnu_ld"
3305
test "$withval" = no || with_gnu_ld=yes
3926
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3310
3932
if test "$GCC" = yes; then
3311
3933
# Check if gcc -print-prog-name=ld gives a path.
3312
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3313
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3934
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3935
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3316
3938
# gcc leaves a trailing carriage return which upsets mingw
4664
5315
rm -f conftest.$ac_objext
4665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666
(eval $ac_compile) 2>conftest.er1
5316
if { (ac_try="$ac_compile"
5318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319
*) ac_try_echo=$ac_try;;
5321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322
(eval "$ac_compile") 2>conftest.er1
4668
5324
grep -v '^ *+' conftest.er1 >conftest.err
4669
5325
rm -f conftest.er1
4670
5326
cat conftest.err >&5
4671
5327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672
(exit $ac_status); } &&
4673
{ ac_try='test -z "$ac_cxx_werror_flag"
4674
|| test ! -s conftest.err'
4675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679
(exit $ac_status); }; } &&
4680
{ ac_try='test -s conftest.$ac_objext'
4681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685
(exit $ac_status); }; }; then
5328
(exit $ac_status); } && {
5329
test -z "$ac_cxx_werror_flag" ||
5330
test ! -s conftest.err
5331
} && test -s conftest.$ac_objext; then
4686
5332
ac_compiler_gnu=yes
4688
5334
echo "$as_me: failed program was:" >&5
4689
5335
sed 's/^/| /' conftest.$ac_ext >&5
4693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694
5341
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4697
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4698
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5344
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5345
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4699
5346
GXX=`test $ac_compiler_gnu = yes && echo yes`
4700
5347
ac_test_CXXFLAGS=${CXXFLAGS+set}
4701
5348
ac_save_CXXFLAGS=$CXXFLAGS
4703
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4704
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5349
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5350
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4705
5351
if test "${ac_cv_prog_cxx_g+set}" = set; then
4706
5352
echo $ECHO_N "(cached) $ECHO_C" >&6
4708
cat >conftest.$ac_ext <<_ACEOF
4711
cat confdefs.h >>conftest.$ac_ext
4712
cat >>conftest.$ac_ext <<_ACEOF
4713
/* end confdefs.h. */
4723
rm -f conftest.$ac_objext
4724
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725
(eval $ac_compile) 2>conftest.er1
4727
grep -v '^ *+' conftest.er1 >conftest.err
4729
cat conftest.err >&5
4730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731
(exit $ac_status); } &&
4732
{ ac_try='test -z "$ac_cxx_werror_flag"
4733
|| test ! -s conftest.err'
4734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738
(exit $ac_status); }; } &&
4739
{ ac_try='test -s conftest.$ac_objext'
4740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744
(exit $ac_status); }; }; then
4745
ac_cv_prog_cxx_g=yes
4747
echo "$as_me: failed program was:" >&5
4748
sed 's/^/| /' conftest.$ac_ext >&5
4752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4755
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5354
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5355
ac_cxx_werror_flag=yes
5358
cat >conftest.$ac_ext <<_ACEOF
5361
cat confdefs.h >>conftest.$ac_ext
5362
cat >>conftest.$ac_ext <<_ACEOF
5363
/* end confdefs.h. */
5373
rm -f conftest.$ac_objext
5374
if { (ac_try="$ac_compile"
5376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377
*) ac_try_echo=$ac_try;;
5379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380
(eval "$ac_compile") 2>conftest.er1
5382
grep -v '^ *+' conftest.er1 >conftest.err
5384
cat conftest.err >&5
5385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386
(exit $ac_status); } && {
5387
test -z "$ac_cxx_werror_flag" ||
5388
test ! -s conftest.err
5389
} && test -s conftest.$ac_objext; then
5390
ac_cv_prog_cxx_g=yes
5392
echo "$as_me: failed program was:" >&5
5393
sed 's/^/| /' conftest.$ac_ext >&5
5396
cat >conftest.$ac_ext <<_ACEOF
5399
cat confdefs.h >>conftest.$ac_ext
5400
cat >>conftest.$ac_ext <<_ACEOF
5401
/* end confdefs.h. */
5411
rm -f conftest.$ac_objext
5412
if { (ac_try="$ac_compile"
5414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415
*) ac_try_echo=$ac_try;;
5417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418
(eval "$ac_compile") 2>conftest.er1
5420
grep -v '^ *+' conftest.er1 >conftest.err
5422
cat conftest.err >&5
5423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424
(exit $ac_status); } && {
5425
test -z "$ac_cxx_werror_flag" ||
5426
test ! -s conftest.err
5427
} && test -s conftest.$ac_objext; then
5430
echo "$as_me: failed program was:" >&5
5431
sed 's/^/| /' conftest.$ac_ext >&5
5433
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5435
cat >conftest.$ac_ext <<_ACEOF
5438
cat confdefs.h >>conftest.$ac_ext
5439
cat >>conftest.$ac_ext <<_ACEOF
5440
/* end confdefs.h. */
5450
rm -f conftest.$ac_objext
5451
if { (ac_try="$ac_compile"
5453
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454
*) ac_try_echo=$ac_try;;
5456
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457
(eval "$ac_compile") 2>conftest.er1
5459
grep -v '^ *+' conftest.er1 >conftest.err
5461
cat conftest.err >&5
5462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463
(exit $ac_status); } && {
5464
test -z "$ac_cxx_werror_flag" ||
5465
test ! -s conftest.err
5466
} && test -s conftest.$ac_objext; then
5467
ac_cv_prog_cxx_g=yes
5469
echo "$as_me: failed program was:" >&5
5470
sed 's/^/| /' conftest.$ac_ext >&5
5475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5484
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5485
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4756
5486
if test "$ac_test_CXXFLAGS" = set; then
4757
5487
CXXFLAGS=$ac_save_CXXFLAGS
4758
5488
elif test $ac_cv_prog_cxx_g = yes; then
19253
19836
# Name of the executable.
19254
as_me=`$as_basename "$0" ||
19837
as_me=`$as_basename -- "$0" ||
19255
19838
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19256
19839
X"$0" : 'X\(//\)$' \| \
19257
X"$0" : 'X\(/\)$' \| \
19258
. : '\(.\)' 2>/dev/null ||
19840
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19259
19841
echo X/"$0" |
19260
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19261
/^X\/\(\/\/\)$/{ s//\1/; q; }
19262
/^X\/\(\/\).*/{ s//\1/; q; }
19266
# PATH needs CR, and LINENO needs CR and PATH.
19267
# Avoid depending upon Character Ranges.
19268
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19269
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19270
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19271
as_cr_digits='0123456789'
19272
as_cr_alnum=$as_cr_Letters$as_cr_digits
19274
# The user is always right.
19275
if test "${PATH_SEPARATOR+set}" != set; then
19276
echo "#! /bin/sh" >conf$$.sh
19277
echo "exit 0" >>conf$$.sh
19279
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19288
as_lineno_1=$LINENO
19289
as_lineno_2=$LINENO
19290
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19291
test "x$as_lineno_1" != "x$as_lineno_2" &&
19292
test "x$as_lineno_3" = "x$as_lineno_2" || {
19293
# Find who we are. Look in the path if we contain no path at all
19296
*[\\/]* ) as_myself=$0 ;;
19297
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19298
for as_dir in $PATH
19301
test -z "$as_dir" && as_dir=.
19302
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19307
# We did not find ourselves, most probably we were run as `sh COMMAND'
19308
# in which case we are not to be found in the path.
19309
if test "x$as_myself" = x; then
19312
if test ! -f "$as_myself"; then
19313
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19314
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19315
{ (exit 1); exit 1; }; }
19317
case $CONFIG_SHELL in
19319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19320
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19323
test -z "$as_dir" && as_dir=.
19324
for as_base in sh bash ksh sh5; do
19327
if ("$as_dir/$as_base" -c '
19328
as_lineno_1=$LINENO
19329
as_lineno_2=$LINENO
19330
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19331
test "x$as_lineno_1" != "x$as_lineno_2" &&
19332
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19333
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19334
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19335
CONFIG_SHELL=$as_dir/$as_base
19336
export CONFIG_SHELL
19337
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19842
sed '/^.*\/\([^/][^/]*\)\/*$/{
19861
as_lineno_1=$LINENO
19862
as_lineno_2=$LINENO
19863
test "x$as_lineno_1" != "x$as_lineno_2" &&
19864
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19345
19866
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19346
19867
# uniformly replaced by the line number. The first 'sed' inserts a
19347
# line-number line before each line; the second 'sed' does the real
19348
# work. The second script uses 'N' to pair each line-number line
19349
# with the numbered line, and appends trailing '-' during
19350
# substitution so that $LINENO is not a special case at line end.
19868
# line-number line after each line using $LINENO; the second 'sed'
19869
# does the real work. The second script uses 'N' to pair each
19870
# line-number line with the line containing $LINENO, and appends
19871
# trailing '-' during substitution so that $LINENO is not a special
19872
# case at line end.
19351
19873
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19352
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19353
sed '=' <$as_myself |
19874
# scripts with optimization help from Paolo Bonzini. Blame Lee
19875
# E. McMahon (1931-1989) for sed's syntax. :-)
19358
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19887
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19361
s,^['$as_cr_digits']*\n,,
19362
19890
' >$as_me.lineno &&
19363
chmod +x $as_me.lineno ||
19364
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19365
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19891
chmod +x "$as_me.lineno" ||
19892
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19366
19893
{ (exit 1); exit 1; }; }
19368
19895
# Don't try to exec as it changes $[0], causing all sort of problems
19369
19896
# (the dirname of $[0] is not the place where we might find the
19370
# original and so on. Autoconf is especially sensible to this).
19897
# original and so on. Autoconf is especially sensitive to this).
19898
. "./$as_me.lineno"
19372
19899
# Exit status is that of the last command.
19377
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19378
*c*,-n*) ECHO_N= ECHO_C='
19380
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19381
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19904
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19910
ECHO_C= ECHO_N= ECHO_T=
19911
case `echo -n x` in
19913
case `echo 'x\c'` in
19914
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
19384
if expr a : '\(a\)' >/dev/null 2>&1; then
19921
if expr a : '\(a\)' >/dev/null 2>&1 &&
19922
test "X`expr 00001 : '.*\(...\)'`" = X001; then
19387
19925
as_expr=false
19390
19928
rm -f conf$$ conf$$.exe conf$$.file
19929
if test -d conf$$.dir; then
19930
rm -f conf$$.dir/conf$$.file
19391
19935
echo >conf$$.file
19392
19936
if ln -s conf$$.file conf$$ 2>/dev/null; then
19393
# We could just check for DJGPP; but this test a) works b) is more generic
19394
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19395
if test -f conf$$.exe; then
19396
# Don't use ln at all; we don't have any links
19938
# ... but there are two gotchas:
19939
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19940
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19941
# In both cases, we have to default to `cp -p'.
19942
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19397
19943
as_ln_s='cp -p'
19401
19944
elif ln conf$$.file conf$$ 2>/dev/null; then
19404
19947
as_ln_s='cp -p'
19406
rm -f conf$$ conf$$.exe conf$$.file
19949
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19950
rmdir conf$$.dir 2>/dev/null
19408
19952
if mkdir -p . 2>/dev/null; then
19642
20185
# Have a temporary directory for convenience. Make it in the build tree
19643
# simply because there is no reason to put it here, and in addition,
20186
# simply because there is no reason against having it here, and in addition,
19644
20187
# creating and moving files from /tmp can sometimes cause problems.
19645
# Create a temporary directory, and hook for its removal unless debugging.
20188
# Hook for its removal unless debugging.
20189
# Note that there is a small window in which the directory will not be cleaned:
20190
# after its creation but before its name has been assigned to `$tmp'.
19648
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20194
trap 'exit_status=$?
20195
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19649
20197
trap '{ (exit 1); exit 1; }' 1 2 13 15
19652
20199
# Create a (secure) tmp directory for tmp files.
19655
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20202
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19656
20203
test -n "$tmp" && test -d "$tmp"
19659
tmp=./confstat$$-$RANDOM
19660
(umask 077 && mkdir $tmp)
20206
tmp=./conf$$-$RANDOM
20207
(umask 077 && mkdir "$tmp")
19663
20210
echo "$me: cannot create a temporary directory in ." >&2
19664
20211
{ (exit 1); exit 1; }
19669
cat >>$CONFIG_STATUS <<_ACEOF
19672
# CONFIG_FILES section.
20215
# Set up the sed scripts for CONFIG_FILES section.
19675
20218
# No need to generate the scripts if there are no CONFIG_FILES.
19676
20219
# This happens for instance when ./config.status config.h
19677
if test -n "\$CONFIG_FILES"; then
19678
# Protect against being on the right side of a sed subst in config.status.
19679
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19680
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19681
s,@SHELL@,$SHELL,;t t
19682
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19683
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19684
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19685
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19686
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19687
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19688
s,@exec_prefix@,$exec_prefix,;t t
19689
s,@prefix@,$prefix,;t t
19690
s,@program_transform_name@,$program_transform_name,;t t
19691
s,@bindir@,$bindir,;t t
19692
s,@sbindir@,$sbindir,;t t
19693
s,@libexecdir@,$libexecdir,;t t
19694
s,@datadir@,$datadir,;t t
19695
s,@sysconfdir@,$sysconfdir,;t t
19696
s,@sharedstatedir@,$sharedstatedir,;t t
19697
s,@localstatedir@,$localstatedir,;t t
19698
s,@libdir@,$libdir,;t t
19699
s,@includedir@,$includedir,;t t
19700
s,@oldincludedir@,$oldincludedir,;t t
19701
s,@infodir@,$infodir,;t t
19702
s,@mandir@,$mandir,;t t
19703
s,@build_alias@,$build_alias,;t t
19704
s,@host_alias@,$host_alias,;t t
19705
s,@target_alias@,$target_alias,;t t
19706
s,@DEFS@,$DEFS,;t t
19707
s,@ECHO_C@,$ECHO_C,;t t
19708
s,@ECHO_N@,$ECHO_N,;t t
19709
s,@ECHO_T@,$ECHO_T,;t t
19710
s,@LIBS@,$LIBS,;t t
19711
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19712
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19713
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19714
s,@CYGPATH_W@,$CYGPATH_W,;t t
19715
s,@PACKAGE@,$PACKAGE,;t t
19716
s,@VERSION@,$VERSION,;t t
19717
s,@ACLOCAL@,$ACLOCAL,;t t
19718
s,@AUTOCONF@,$AUTOCONF,;t t
19719
s,@AUTOMAKE@,$AUTOMAKE,;t t
19720
s,@AUTOHEADER@,$AUTOHEADER,;t t
19721
s,@MAKEINFO@,$MAKEINFO,;t t
19722
s,@install_sh@,$install_sh,;t t
19723
s,@STRIP@,$STRIP,;t t
19724
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19725
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19726
s,@mkdir_p@,$mkdir_p,;t t
19728
s,@SET_MAKE@,$SET_MAKE,;t t
19729
s,@am__leading_dot@,$am__leading_dot,;t t
19730
s,@AMTAR@,$AMTAR,;t t
19731
s,@am__tar@,$am__tar,;t t
19732
s,@am__untar@,$am__untar,;t t
19733
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19734
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19735
s,@MAINT@,$MAINT,;t t
19737
s,@CFLAGS@,$CFLAGS,;t t
19738
s,@LDFLAGS@,$LDFLAGS,;t t
19739
s,@CPPFLAGS@,$CPPFLAGS,;t t
19740
s,@ac_ct_CC@,$ac_ct_CC,;t t
19741
s,@EXEEXT@,$EXEEXT,;t t
19742
s,@OBJEXT@,$OBJEXT,;t t
19743
s,@DEPDIR@,$DEPDIR,;t t
19744
s,@am__include@,$am__include,;t t
19745
s,@am__quote@,$am__quote,;t t
19746
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19747
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19748
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19749
s,@CCDEPMODE@,$CCDEPMODE,;t t
19750
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19751
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19752
s,@build@,$build,;t t
19753
s,@build_cpu@,$build_cpu,;t t
19754
s,@build_vendor@,$build_vendor,;t t
19755
s,@build_os@,$build_os,;t t
19756
s,@host@,$host,;t t
19757
s,@host_cpu@,$host_cpu,;t t
19758
s,@host_vendor@,$host_vendor,;t t
19759
s,@host_os@,$host_os,;t t
19760
s,@EGREP@,$EGREP,;t t
19761
s,@LN_S@,$LN_S,;t t
19762
s,@ECHO@,$ECHO,;t t
19764
s,@ac_ct_AR@,$ac_ct_AR,;t t
19765
s,@RANLIB@,$RANLIB,;t t
19766
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19769
s,@CXXFLAGS@,$CXXFLAGS,;t t
19770
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19771
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19772
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19773
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19774
s,@CXXCPP@,$CXXCPP,;t t
19776
s,@FFLAGS@,$FFLAGS,;t t
19777
s,@ac_ct_F77@,$ac_ct_F77,;t t
19778
s,@LIBTOOL@,$LIBTOOL,;t t
19779
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19780
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19781
s,@XEVIE_CFLAGS@,$XEVIE_CFLAGS,;t t
19782
s,@XEVIE_LIBS@,$XEVIE_LIBS,;t t
19783
s,@MALLOC_ZERO_CFLAGS@,$MALLOC_ZERO_CFLAGS,;t t
19784
s,@XMALLOC_ZERO_CFLAGS@,$XMALLOC_ZERO_CFLAGS,;t t
19785
s,@XTMALLOC_ZERO_CFLAGS@,$XTMALLOC_ZERO_CFLAGS,;t t
19786
s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
19787
s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
19788
s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
19789
s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
19790
s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
19791
s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
19792
s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
19793
s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
19794
s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
19795
s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
19796
s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
19797
s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
19798
s,@LIBOBJS@,$LIBOBJS,;t t
19799
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19804
cat >>$CONFIG_STATUS <<\_ACEOF
19805
# Split the substitutions into bite-sized pieces for seds with
19806
# small command number limits, like on Digital OSF/1 and HP-UX.
19807
ac_max_sed_lines=48
19808
ac_sed_frag=1 # Number of current file.
19809
ac_beg=1 # First line for current file.
19810
ac_end=$ac_max_sed_lines # Line after last line for current file.
19813
while $ac_more_lines; do
19814
if test $ac_beg -gt 1; then
19815
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19817
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19819
if test ! -s $tmp/subs.frag; then
19820
ac_more_lines=false
19822
# The purpose of the label and of the branching condition is to
19823
# speed up the sed processing (if there are no `@' at all, there
19824
# is no need to browse any of the substitutions).
19825
# These are the two extra sed commands mentioned above.
19827
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19828
if test -z "$ac_sed_cmds"; then
19829
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19831
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19833
ac_sed_frag=`expr $ac_sed_frag + 1`
19835
ac_end=`expr $ac_end + $ac_max_sed_lines`
19838
if test -z "$ac_sed_cmds"; then
20220
if test -n "$CONFIG_FILES"; then
20227
for ac_last_try in false false false false false :; do
20228
cat >conf$$subs.sed <<_ACEOF
20229
SHELL!$SHELL$ac_delim
20230
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20231
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20232
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20233
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20234
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20235
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20236
exec_prefix!$exec_prefix$ac_delim
20237
prefix!$prefix$ac_delim
20238
program_transform_name!$program_transform_name$ac_delim
20239
bindir!$bindir$ac_delim
20240
sbindir!$sbindir$ac_delim
20241
libexecdir!$libexecdir$ac_delim
20242
datarootdir!$datarootdir$ac_delim
20243
datadir!$datadir$ac_delim
20244
sysconfdir!$sysconfdir$ac_delim
20245
sharedstatedir!$sharedstatedir$ac_delim
20246
localstatedir!$localstatedir$ac_delim
20247
includedir!$includedir$ac_delim
20248
oldincludedir!$oldincludedir$ac_delim
20249
docdir!$docdir$ac_delim
20250
infodir!$infodir$ac_delim
20251
htmldir!$htmldir$ac_delim
20252
dvidir!$dvidir$ac_delim
20253
pdfdir!$pdfdir$ac_delim
20254
psdir!$psdir$ac_delim
20255
libdir!$libdir$ac_delim
20256
localedir!$localedir$ac_delim
20257
mandir!$mandir$ac_delim
20258
DEFS!$DEFS$ac_delim
20259
ECHO_C!$ECHO_C$ac_delim
20260
ECHO_N!$ECHO_N$ac_delim
20261
ECHO_T!$ECHO_T$ac_delim
20262
LIBS!$LIBS$ac_delim
20263
build_alias!$build_alias$ac_delim
20264
host_alias!$host_alias$ac_delim
20265
target_alias!$target_alias$ac_delim
20266
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20267
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20268
INSTALL_DATA!$INSTALL_DATA$ac_delim
20269
CYGPATH_W!$CYGPATH_W$ac_delim
20270
PACKAGE!$PACKAGE$ac_delim
20271
VERSION!$VERSION$ac_delim
20272
ACLOCAL!$ACLOCAL$ac_delim
20273
AUTOCONF!$AUTOCONF$ac_delim
20274
AUTOMAKE!$AUTOMAKE$ac_delim
20275
AUTOHEADER!$AUTOHEADER$ac_delim
20276
MAKEINFO!$MAKEINFO$ac_delim
20277
install_sh!$install_sh$ac_delim
20278
STRIP!$STRIP$ac_delim
20279
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20280
mkdir_p!$mkdir_p$ac_delim
20282
SET_MAKE!$SET_MAKE$ac_delim
20283
am__leading_dot!$am__leading_dot$ac_delim
20284
AMTAR!$AMTAR$ac_delim
20285
am__tar!$am__tar$ac_delim
20286
am__untar!$am__untar$ac_delim
20287
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20288
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20289
MAINT!$MAINT$ac_delim
20291
CFLAGS!$CFLAGS$ac_delim
20292
LDFLAGS!$LDFLAGS$ac_delim
20293
CPPFLAGS!$CPPFLAGS$ac_delim
20294
ac_ct_CC!$ac_ct_CC$ac_delim
20295
EXEEXT!$EXEEXT$ac_delim
20296
OBJEXT!$OBJEXT$ac_delim
20297
DEPDIR!$DEPDIR$ac_delim
20298
am__include!$am__include$ac_delim
20299
am__quote!$am__quote$ac_delim
20300
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20301
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20302
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20303
CCDEPMODE!$CCDEPMODE$ac_delim
20304
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20305
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20306
build!$build$ac_delim
20307
build_cpu!$build_cpu$ac_delim
20308
build_vendor!$build_vendor$ac_delim
20309
build_os!$build_os$ac_delim
20310
host!$host$ac_delim
20311
host_cpu!$host_cpu$ac_delim
20312
host_vendor!$host_vendor$ac_delim
20313
host_os!$host_os$ac_delim
20314
GREP!$GREP$ac_delim
20315
EGREP!$EGREP$ac_delim
20316
LN_S!$LN_S$ac_delim
20317
ECHO!$ECHO$ac_delim
20319
RANLIB!$RANLIB$ac_delim
20322
CXXFLAGS!$CXXFLAGS$ac_delim
20323
ac_ct_CXX!$ac_ct_CXX$ac_delim
20324
CXXDEPMODE!$CXXDEPMODE$ac_delim
20325
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20328
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20330
elif $ac_last_try; then
20331
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20332
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20333
{ (exit 1); exit 1; }; }
20335
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20339
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20340
if test -n "$ac_eof"; then
20341
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20342
ac_eof=`expr $ac_eof + 1`
20345
cat >>$CONFIG_STATUS <<_ACEOF
20346
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20347
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20350
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20351
s/^/s,@/; s/!/@,|#_!!_#|/
20354
s/'"$ac_delim"'$/,g/; t
20356
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20357
' >>$CONFIG_STATUS <conf$$subs.sed
20358
rm -f conf$$subs.sed
20359
cat >>$CONFIG_STATUS <<_ACEOF
20365
for ac_last_try in false false false false false :; do
20366
cat >conf$$subs.sed <<_ACEOF
20367
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20368
CXXCPP!$CXXCPP$ac_delim
20370
FFLAGS!$FFLAGS$ac_delim
20371
ac_ct_F77!$ac_ct_F77$ac_delim
20372
LIBTOOL!$LIBTOOL$ac_delim
20373
PKG_CONFIG!$PKG_CONFIG$ac_delim
20374
XEVIE_CFLAGS!$XEVIE_CFLAGS$ac_delim
20375
XEVIE_LIBS!$XEVIE_LIBS$ac_delim
20376
MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
20377
XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
20378
XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
20379
APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
20380
LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
20381
FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
20382
MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
20383
DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
20384
ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
20385
APP_MAN_DIR!$APP_MAN_DIR$ac_delim
20386
LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
20387
FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
20388
MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
20389
DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
20390
ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
20391
LIBOBJS!$LIBOBJS$ac_delim
20392
LTLIBOBJS!$LTLIBOBJS$ac_delim
20395
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
20397
elif $ac_last_try; then
20398
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20399
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20400
{ (exit 1); exit 1; }; }
20402
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20406
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20407
if test -n "$ac_eof"; then
20408
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20409
ac_eof=`expr $ac_eof + 1`
20412
cat >>$CONFIG_STATUS <<_ACEOF
20413
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20414
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20417
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20418
s/^/s,@/; s/!/@,|#_!!_#|/
20421
s/'"$ac_delim"'$/,g/; t
20423
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20424
' >>$CONFIG_STATUS <conf$$subs.sed
20425
rm -f conf$$subs.sed
20426
cat >>$CONFIG_STATUS <<_ACEOF
20433
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20434
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20435
# trailing colons and then remove the whole line if VPATH becomes empty
20436
# (actually we leave an empty line to preserve line numbers).
20437
if test "x$srcdir" = x.; then
20438
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20439
s/:*\$(srcdir):*/:/
20440
s/:*\${srcdir}:*/:/
20442
s/^\([^=]*=[ ]*\):*/\1/
20448
cat >>$CONFIG_STATUS <<\_ACEOF
19841
20449
fi # test -n "$CONFIG_FILES"
19844
cat >>$CONFIG_STATUS <<\_ACEOF
19845
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19846
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19848
- | *:- | *:-:* ) # input from stdin
19850
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19851
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19852
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19853
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19854
* ) ac_file_in=$ac_file.in ;;
19857
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19858
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20452
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20455
:[FHLC]) ac_mode=$ac_tag; continue;;
20457
case $ac_mode$ac_tag in
20459
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20460
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20461
{ (exit 1); exit 1; }; };;
20462
:[FH]-) ac_tag=-:-;;
20463
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20480
-) ac_f="$tmp/stdin";;
20481
*) # Look for the file first in the build tree, then in the source tree
20482
# (if the path is not absolute). The absolute path cannot be DOS-style,
20483
# because $ac_f cannot contain `:'.
20487
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20489
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20490
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20491
{ (exit 1); exit 1; }; };;
20493
ac_file_inputs="$ac_file_inputs $ac_f"
20496
# Let's still pretend it is `configure' which instantiates (i.e., don't
20497
# use $as_me), people would be surprised to read:
20498
# /* config.h. Generated by config.status. */
20499
configure_input="Generated from "`IFS=:
20500
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20501
if test x"$ac_file" != x-; then
20502
configure_input="$ac_file. $configure_input"
20503
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20504
echo "$as_me: creating $ac_file" >&6;}
20508
*:-:* | *:-) cat >"$tmp/stdin";;
20513
ac_dir=`$as_dirname -- "$ac_file" ||
19859
20514
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19860
20515
X"$ac_file" : 'X\(//\)[^/]' \| \
19861
20516
X"$ac_file" : 'X\(//\)$' \| \
19862
X"$ac_file" : 'X\(/\)' \| \
19863
. : '\(.\)' 2>/dev/null ||
20517
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19864
20518
echo X"$ac_file" |
19865
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19866
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19867
/^X\(\/\/\)$/{ s//\1/; q; }
19868
/^X\(\/\).*/{ s//\1/; q; }
19870
{ if $as_mkdir_p; then
20519
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20523
/^X\(\/\/\)[^/].*/{
20538
-*) as_dir=./$as_dir;;
20540
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19875
while test ! -d "$as_dir"; do
19876
as_dirs="$as_dir $as_dirs"
19877
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20544
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20545
*) as_qdir=$as_dir;;
20547
as_dirs="'$as_qdir' $as_dirs"
20548
as_dir=`$as_dirname -- "$as_dir" ||
19878
20549
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19879
20550
X"$as_dir" : 'X\(//\)[^/]' \| \
19880
20551
X"$as_dir" : 'X\(//\)$' \| \
19881
X"$as_dir" : 'X\(/\)' \| \
19882
. : '\(.\)' 2>/dev/null ||
20552
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19883
20553
echo X"$as_dir" |
19884
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19885
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19886
/^X\(\/\/\)$/{ s//\1/; q; }
19887
/^X\(\/\).*/{ s//\1/; q; }
20554
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20558
/^X\(\/\/\)[^/].*/{
20571
test -d "$as_dir" && break
19890
test ! -n "$as_dirs" || mkdir $as_dirs
19891
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19892
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20573
test -z "$as_dirs" || eval "mkdir $as_dirs"
20574
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20575
echo "$as_me: error: cannot create directory $as_dir" >&2;}
19893
20576
{ (exit 1); exit 1; }; }; }
19895
20577
ac_builddir=.
19897
if test "$ac_dir" != .; then
20580
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19898
20582
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19899
# A "../" for each directory in $ac_dir_suffix.
19900
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19902
ac_dir_suffix= ac_top_builddir=
20583
# A ".." for each directory in $ac_dir_suffix.
20584
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20585
case $ac_top_builddir_sub in
20586
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20587
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20590
ac_abs_top_builddir=$ac_pwd
20591
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20592
# for backward compatibility:
20593
ac_top_builddir=$ac_top_build_prefix
19905
20595
case $srcdir in
19906
.) # No --srcdir option. We are building in place.
20596
.) # We are building in place.
19908
if test -z "$ac_top_builddir"; then
19911
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19913
[\\/]* | ?:[\\/]* ) # Absolute path.
20598
ac_top_srcdir=$ac_top_builddir_sub
20599
ac_abs_top_srcdir=$ac_pwd ;;
20600
[\\/]* | ?:[\\/]* ) # Absolute name.
19914
20601
ac_srcdir=$srcdir$ac_dir_suffix;
19915
ac_top_srcdir=$srcdir ;;
19916
*) # Relative path.
19917
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19918
ac_top_srcdir=$ac_top_builddir$srcdir ;;
19921
# Do not use `cd foo && pwd` to compute absolute paths, because
19922
# the directories may not exist.
19924
.) ac_abs_builddir="$ac_dir";;
19927
.) ac_abs_builddir=`pwd`;;
19928
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19929
*) ac_abs_builddir=`pwd`/"$ac_dir";;
19932
case $ac_abs_builddir in
19933
.) ac_abs_top_builddir=${ac_top_builddir}.;;
19935
case ${ac_top_builddir}. in
19936
.) ac_abs_top_builddir=$ac_abs_builddir;;
19937
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19938
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19941
case $ac_abs_builddir in
19942
.) ac_abs_srcdir=$ac_srcdir;;
19945
.) ac_abs_srcdir=$ac_abs_builddir;;
19946
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19947
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19950
case $ac_abs_builddir in
19951
.) ac_abs_top_srcdir=$ac_top_srcdir;;
19953
case $ac_top_srcdir in
19954
.) ac_abs_top_srcdir=$ac_abs_builddir;;
19955
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19956
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20602
ac_top_srcdir=$srcdir
20603
ac_abs_top_srcdir=$srcdir ;;
20604
*) # Relative name.
20605
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20606
ac_top_srcdir=$ac_top_build_prefix$srcdir
20607
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20609
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19961
20618
case $INSTALL in
19962
20619
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19963
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20620
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19966
if test x"$ac_file" != x-; then
19967
{ echo "$as_me:$LINENO: creating $ac_file" >&5
19968
echo "$as_me: creating $ac_file" >&6;}
19971
# Let's still pretend it is `configure' which instantiates (i.e., don't
19972
# use $as_me), people would be surprised to read:
19973
# /* config.h. Generated by config.status. */
19974
if test x"$ac_file" = x-; then
19977
configure_input="$ac_file. "
19979
configure_input=$configure_input"Generated from `echo $ac_file_in |
19980
sed 's,.*/,,'` by configure."
19982
# First look for the input files in the build tree, otherwise in the
19984
ac_file_inputs=`IFS=:
19985
for f in $ac_file_in; do
19987
-) echo $tmp/stdin ;;
19989
# Absolute (can't be DOS-style, as IFS=:)
19990
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19991
echo "$as_me: error: cannot find input file: $f" >&2;}
19992
{ (exit 1); exit 1; }; }
19995
if test -f "$f"; then
19998
elif test -f "$srcdir/$f"; then
20003
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20004
echo "$as_me: error: cannot find input file: $f" >&2;}
20005
{ (exit 1); exit 1; }; }
20008
done` || { (exit 1); exit 1; }
20624
cat >>$CONFIG_STATUS <<\_ACEOF
20625
# If the template does not know about datarootdir, expand it.
20626
# FIXME: This hack should be removed a few years after 2.60.
20627
ac_datarootdir_hack=; ac_datarootdir_seen=
20629
case `sed -n '/datarootdir/ {
20638
' $ac_file_inputs` in
20639
*datarootdir*) ac_datarootdir_seen=yes;;
20640
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20641
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20642
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20644
cat >>$CONFIG_STATUS <<_ACEOF
20645
ac_datarootdir_hack='
20646
s&@datadir@&$datadir&g
20647
s&@docdir@&$docdir&g
20648
s&@infodir@&$infodir&g
20649
s&@localedir@&$localedir&g
20650
s&@mandir@&$mandir&g
20651
s&\\\${datarootdir}&$datarootdir&g' ;;
20655
# Neutralize VPATH when `$srcdir' = `.'.
20656
# Shell code in configure.ac might set extrasub.
20657
# FIXME: do we really want to maintain this feature?
20010
20658
cat >>$CONFIG_STATUS <<_ACEOF
20011
20659
sed "$ac_vpsub
20014
20662
cat >>$CONFIG_STATUS <<\_ACEOF
20016
20664
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20017
s,@configure_input@,$configure_input,;t t
20018
s,@srcdir@,$ac_srcdir,;t t
20019
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20020
s,@top_srcdir@,$ac_top_srcdir,;t t
20021
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20022
s,@builddir@,$ac_builddir,;t t
20023
s,@abs_builddir@,$ac_abs_builddir,;t t
20024
s,@top_builddir@,$ac_top_builddir,;t t
20025
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20026
s,@INSTALL@,$ac_INSTALL,;t t
20027
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20029
if test x"$ac_file" != x-; then
20030
mv $tmp/out $ac_file
20665
s&@configure_input@&$configure_input&;t t
20666
s&@top_builddir@&$ac_top_builddir_sub&;t t
20667
s&@srcdir@&$ac_srcdir&;t t
20668
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20669
s&@top_srcdir@&$ac_top_srcdir&;t t
20670
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20671
s&@builddir@&$ac_builddir&;t t
20672
s&@abs_builddir@&$ac_abs_builddir&;t t
20673
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20674
s&@INSTALL@&$ac_INSTALL&;t t
20675
$ac_datarootdir_hack
20676
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20678
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20679
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20680
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20681
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20682
which seems to be undefined. Please make sure it is defined." >&5
20683
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20684
which seems to be undefined. Please make sure it is defined." >&2;}
20688
-) cat "$tmp/out"; rm -f "$tmp/out";;
20689
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20038
cat >>$CONFIG_STATUS <<\_ACEOF
20041
# CONFIG_HEADER section.
20044
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20045
# NAME is the cpp macro being defined and VALUE is the value it is being given.
20047
# ac_d sets the value in "#define NAME VALUE" lines.
20048
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20049
ac_dB='[ ].*$,\1#\2'
20698
# Transform confdefs.h into a sed script `conftest.defines', that
20699
# substitutes the proper values into config.h.in to produce config.h.
20700
rm -f conftest.defines conftest.tail
20701
# First, append a space to every undef/define line, to ease matching.
20702
echo 's/$/ /' >conftest.defines
20703
# Then, protect against being on the right side of a sed subst, or in
20704
# an unquoted here document, in config.status. If some macros were
20705
# called several times there might be several #defines for the same
20706
# symbol, which is useless. But do not sort them, since the last
20707
# AC_DEFINE must be honored.
20708
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20709
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20710
# NAME is the cpp macro being defined, VALUE is the value it is being given.
20711
# PARAMS is the parameter list in the macro definition--in most cases, it's
20712
# just an empty string.
20713
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20714
ac_dB='\\)[ (].*,\\1define\\2'
20052
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20053
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20054
ac_uB='$,\1#\2define\3'
20058
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20059
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20061
- | *:- | *:-:* ) # input from stdin
20063
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20064
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20065
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20066
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20067
* ) ac_file_in=$ac_file.in ;;
20070
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20071
echo "$as_me: creating $ac_file" >&6;}
20073
# First look for the input files in the build tree, otherwise in the
20075
ac_file_inputs=`IFS=:
20076
for f in $ac_file_in; do
20078
-) echo $tmp/stdin ;;
20080
# Absolute (can't be DOS-style, as IFS=:)
20081
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20082
echo "$as_me: error: cannot find input file: $f" >&2;}
20083
{ (exit 1); exit 1; }; }
20084
# Do quote $f, to prevent DOS paths from being IFS'd.
20087
if test -f "$f"; then
20090
elif test -f "$srcdir/$f"; then
20095
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20096
echo "$as_me: error: cannot find input file: $f" >&2;}
20097
{ (exit 1); exit 1; }; }
20100
done` || { (exit 1); exit 1; }
20101
# Remove the trailing spaces.
20102
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20106
# Transform confdefs.h into two sed scripts, `conftest.defines' and
20107
# `conftest.undefs', that substitutes the proper values into
20108
# config.h.in to produce config.h. The first handles `#define'
20109
# templates, and the second `#undef' templates.
20110
# And first: Protect against being on the right side of a sed subst in
20111
# config.status. Protect against being in an unquoted here document
20112
# in config.status.
20113
rm -f conftest.defines conftest.undefs
20114
# Using a here document instead of a string reduces the quoting nightmare.
20115
# Putting comments in sed scripts is not portable.
20117
# `end' is used to avoid that the second main sed command (meant for
20118
# 0-ary CPP macros) applies to n-ary macro definitions.
20119
# See the Autoconf documentation for `clear'.
20120
cat >confdef2sed.sed <<\_ACEOF
20125
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20127
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20130
# If some macros were called several times there might be several times
20131
# the same #defines, which is useless. Nevertheless, we may not want to
20132
# sort them, since we want the *last* AC-DEFINE to be honored.
20133
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20134
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20135
rm -f confdef2sed.sed
20137
# This sed command replaces #undef with comments. This is necessary, for
20722
s/^[ ]*#[ ]*define[ ][ ]*//
20727
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20728
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20729
' >>conftest.defines
20731
# Remove the space that was appended to ease matching.
20732
# Then replace #undef with comments. This is necessary, for
20138
20733
# example, in the case of _POSIX_SOURCE, which is predefined and required
20139
20734
# on some systems where configure will not decide to define it.
20140
cat >>conftest.undefs <<\_ACEOF
20141
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20735
# (The regexp can be short, since the line contains either #define or #undef.)
20737
s,^[ #]*u.*,/* & */,' >>conftest.defines
20739
# Break up conftest.defines:
20740
ac_max_sed_lines=50
20742
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20743
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20744
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20746
ac_in='$ac_file_inputs'
20747
ac_out='"$tmp/out1"'
20748
ac_nxt='"$tmp/out2"'
20752
# Write a here document:
20753
cat >>$CONFIG_STATUS <<_ACEOF
20754
# First, check the format of the line:
20755
cat >"\$tmp/defines.sed" <<\\CEOF
20756
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20757
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20144
# Break up conftest.defines because some shells have a limit on the size
20145
# of here documents, and old seds have small limits too (100 cmds).
20146
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20147
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20148
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20149
echo ' :' >>$CONFIG_STATUS
20150
rm -f conftest.tail
20151
while grep . conftest.defines >/dev/null
20153
# Write a limited-size here document to $tmp/defines.sed.
20154
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20155
# Speed up: don't consider the non `#define' lines.
20156
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20157
# Work around the forget-to-reset-the-flag bug.
20158
echo 't clr' >>$CONFIG_STATUS
20159
echo ': clr' >>$CONFIG_STATUS
20160
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20761
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20162
sed -f $tmp/defines.sed $tmp/in >$tmp/out
20164
mv $tmp/out $tmp/in
20166
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20763
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20764
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20765
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20766
grep . conftest.tail >/dev/null || break
20167
20767
rm -f conftest.defines
20168
20768
mv conftest.tail conftest.defines
20170
rm -f conftest.defines
20171
echo ' fi # grep' >>$CONFIG_STATUS
20172
echo >>$CONFIG_STATUS
20174
# Break up conftest.undefs because some shells have a limit on the size
20175
# of here documents, and old seds have small limits too (100 cmds).
20176
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20177
rm -f conftest.tail
20178
while grep . conftest.undefs >/dev/null
20180
# Write a limited-size here document to $tmp/undefs.sed.
20181
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20182
# Speed up: don't consider the non `#undef'
20183
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20184
# Work around the forget-to-reset-the-flag bug.
20185
echo 't clr' >>$CONFIG_STATUS
20186
echo ': clr' >>$CONFIG_STATUS
20187
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20189
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20191
mv $tmp/out $tmp/in
20193
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20194
rm -f conftest.undefs
20195
mv conftest.tail conftest.undefs
20197
rm -f conftest.undefs
20770
rm -f conftest.defines conftest.tail
20772
echo "ac_result=$ac_in" >>$CONFIG_STATUS
20199
20773
cat >>$CONFIG_STATUS <<\_ACEOF
20200
# Let's still pretend it is `configure' which instantiates (i.e., don't
20201
# use $as_me), people would be surprised to read:
20202
# /* config.h. Generated by config.status. */
20203
if test x"$ac_file" = x-; then
20204
echo "/* Generated by configure. */" >$tmp/config.h
20206
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20208
cat $tmp/in >>$tmp/config.h
20210
20774
if test x"$ac_file" != x-; then
20211
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20775
echo "/* $configure_input */" >"$tmp/config.h"
20776
cat "$ac_result" >>"$tmp/config.h"
20777
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20212
20778
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20213
20779
echo "$as_me: $ac_file is unchanged" >&6;}
20215
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20216
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20217
X"$ac_file" : 'X\(//\)[^/]' \| \
20218
X"$ac_file" : 'X\(//\)$' \| \
20219
X"$ac_file" : 'X\(/\)' \| \
20220
. : '\(.\)' 2>/dev/null ||
20222
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20223
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20224
/^X\(\/\/\)$/{ s//\1/; q; }
20225
/^X\(\/\).*/{ s//\1/; q; }
20227
{ if $as_mkdir_p; then
20232
while test ! -d "$as_dir"; do
20233
as_dirs="$as_dir $as_dirs"
20234
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20235
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20236
X"$as_dir" : 'X\(//\)[^/]' \| \
20237
X"$as_dir" : 'X\(//\)$' \| \
20238
X"$as_dir" : 'X\(/\)' \| \
20239
. : '\(.\)' 2>/dev/null ||
20241
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20242
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20243
/^X\(\/\/\)$/{ s//\1/; q; }
20244
/^X\(\/\).*/{ s//\1/; q; }
20247
test ! -n "$as_dirs" || mkdir $as_dirs
20248
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20249
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20250
{ (exit 1); exit 1; }; }; }
20252
20781
rm -f $ac_file
20253
mv $tmp/config.h $ac_file
20782
mv "$tmp/config.h" $ac_file
20257
rm -f $tmp/config.h
20785
echo "/* $configure_input */"
20259
20789
# Compute $ac_file's index in $config_headers.
20260
20790
_am_stamp_count=1
20261
20791
for _am_header in $config_headers :; do