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
704
1101
test "$silent" = yes && exec 6>/dev/null
1104
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1105
ac_ls_di=`ls -di .` &&
1106
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1107
{ echo "$as_me: error: Working directory cannot be determined" >&2
1108
{ (exit 1); exit 1; }; }
1109
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1110
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1111
{ (exit 1); exit 1; }; }
707
1114
# Find the source files, if location was not specified.
708
1115
if test -z "$srcdir"; then
709
1116
ac_srcdir_defaulted=yes
710
# Try the directory containing this script, then its parent.
711
ac_confdir=`(dirname "$0") 2>/dev/null ||
1117
# Try the directory containing this script, then the parent directory.
1118
ac_confdir=`$as_dirname -- "$0" ||
712
1119
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713
1120
X"$0" : 'X\(//\)[^/]' \| \
714
1121
X"$0" : 'X\(//\)$' \| \
715
X"$0" : 'X\(/\)' \| \
716
. : '\(.\)' 2>/dev/null ||
1122
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
718
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
720
/^X\(\/\/\)$/{ s//\1/; q; }
721
/^X\(\/\).*/{ s//\1/; q; }
1124
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
723
1141
srcdir=$ac_confdir
724
if test ! -r $srcdir/$ac_unique_file; then
1142
if test ! -r "$srcdir/$ac_unique_file"; then
728
1146
ac_srcdir_defaulted=no
730
if test ! -r $srcdir/$ac_unique_file; then
731
if test "$ac_srcdir_defaulted" = yes; then
732
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733
{ (exit 1); exit 1; }; }
735
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736
{ (exit 1); exit 1; }; }
739
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741
{ (exit 1); exit 1; }; }
742
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743
ac_env_build_alias_set=${build_alias+set}
744
ac_env_build_alias_value=$build_alias
745
ac_cv_env_build_alias_set=${build_alias+set}
746
ac_cv_env_build_alias_value=$build_alias
747
ac_env_host_alias_set=${host_alias+set}
748
ac_env_host_alias_value=$host_alias
749
ac_cv_env_host_alias_set=${host_alias+set}
750
ac_cv_env_host_alias_value=$host_alias
751
ac_env_target_alias_set=${target_alias+set}
752
ac_env_target_alias_value=$target_alias
753
ac_cv_env_target_alias_set=${target_alias+set}
754
ac_cv_env_target_alias_value=$target_alias
755
ac_env_CC_set=${CC+set}
757
ac_cv_env_CC_set=${CC+set}
758
ac_cv_env_CC_value=$CC
759
ac_env_CFLAGS_set=${CFLAGS+set}
760
ac_env_CFLAGS_value=$CFLAGS
761
ac_cv_env_CFLAGS_set=${CFLAGS+set}
762
ac_cv_env_CFLAGS_value=$CFLAGS
763
ac_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_env_LDFLAGS_value=$LDFLAGS
765
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766
ac_cv_env_LDFLAGS_value=$LDFLAGS
767
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_env_CPPFLAGS_value=$CPPFLAGS
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771
ac_env_CPP_set=${CPP+set}
772
ac_env_CPP_value=$CPP
773
ac_cv_env_CPP_set=${CPP+set}
774
ac_cv_env_CPP_value=$CPP
1148
if test ! -r "$srcdir/$ac_unique_file"; then
1149
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1150
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1151
{ (exit 1); exit 1; }; }
1153
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1155
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1156
{ (exit 1); exit 1; }; }
1158
# When building in place, set srcdir=.
1159
if test "$ac_abs_confdir" = "$ac_pwd"; then
1162
# Remove unnecessary trailing slashes from srcdir.
1163
# Double slashes in file names in object file debugging info
1164
# mess up M-x gdb in Emacs.
1166
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1168
for ac_var in $ac_precious_vars; do
1169
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1170
eval ac_env_${ac_var}_value=\$${ac_var}
1171
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1172
eval ac_cv_env_${ac_var}_value=\$${ac_var}
777
1176
# Report the --help message.
871
1275
Report bugs to <Holger Zuleger hznet.de>.
875
1280
if test "$ac_init_help" = "recursive"; then
876
1281
# If there are subdirs, report their specific --help.
878
1282
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879
test -d $ac_dir || continue
1283
test -d "$ac_dir" || continue
882
if test "$ac_dir" != .; then
1287
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
883
1289
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884
# A "../" for each directory in $ac_dir_suffix.
885
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887
ac_dir_suffix= ac_top_builddir=
1290
# A ".." for each directory in $ac_dir_suffix.
1291
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1292
case $ac_top_builddir_sub in
1293
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1294
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1297
ac_abs_top_builddir=$ac_pwd
1298
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1299
# for backward compatibility:
1300
ac_top_builddir=$ac_top_build_prefix
891
.) # No --srcdir option. We are building in place.
1303
.) # We are building in place.
893
if test -z "$ac_top_builddir"; then
896
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898
[\\/]* | ?:[\\/]* ) # Absolute path.
1305
ac_top_srcdir=$ac_top_builddir_sub
1306
ac_abs_top_srcdir=$ac_pwd ;;
1307
[\\/]* | ?:[\\/]* ) # Absolute name.
899
1308
ac_srcdir=$srcdir$ac_dir_suffix;
900
ac_top_srcdir=$srcdir ;;
902
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903
ac_top_srcdir=$ac_top_builddir$srcdir ;;
906
# Do not use `cd foo && pwd` to compute absolute paths, because
907
# the directories may not exist.
909
.) ac_abs_builddir="$ac_dir";;
912
.) ac_abs_builddir=`pwd`;;
913
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914
*) ac_abs_builddir=`pwd`/"$ac_dir";;
917
case $ac_abs_builddir in
918
.) ac_abs_top_builddir=${ac_top_builddir}.;;
920
case ${ac_top_builddir}. in
921
.) ac_abs_top_builddir=$ac_abs_builddir;;
922
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926
case $ac_abs_builddir in
927
.) ac_abs_srcdir=$ac_srcdir;;
930
.) ac_abs_srcdir=$ac_abs_builddir;;
931
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935
case $ac_abs_builddir in
936
.) ac_abs_top_srcdir=$ac_top_srcdir;;
938
case $ac_top_srcdir in
939
.) ac_abs_top_srcdir=$ac_abs_builddir;;
940
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946
# Check for guested configure; otherwise get Cygnus style configure.
947
if test -f $ac_srcdir/configure.gnu; then
949
$SHELL $ac_srcdir/configure.gnu --help=recursive
950
elif test -f $ac_srcdir/configure; then
952
$SHELL $ac_srcdir/configure --help=recursive
953
elif test -f $ac_srcdir/configure.ac ||
954
test -f $ac_srcdir/configure.in; then
1309
ac_top_srcdir=$srcdir
1310
ac_abs_top_srcdir=$srcdir ;;
1312
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1313
ac_top_srcdir=$ac_top_build_prefix$srcdir
1314
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1316
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1318
cd "$ac_dir" || { ac_status=$?; continue; }
1319
# Check for guested configure.
1320
if test -f "$ac_srcdir/configure.gnu"; then
1322
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1323
elif test -f "$ac_srcdir/configure"; then
1325
$SHELL "$ac_srcdir/configure" --help=recursive
958
1327
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1329
cd "$ac_pwd" || { ac_status=$?; break; }
964
test -n "$ac_init_help" && exit 0
1333
test -n "$ac_init_help" && exit $ac_status
965
1334
if $ac_init_version; then
968
generated by GNU Autoconf 2.59
1337
generated by GNU Autoconf 2.61
970
Copyright (C) 2003 Free Software Foundation, Inc.
1339
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1340
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
971
1341
This configure script is free software; the Free Software Foundation
972
1342
gives unlimited permission to copy, distribute and modify it.
1346
cat >config.log <<_ACEOF
978
1347
This file contains any messages produced by compilers while
979
1348
running configure, to aid debugging if configure makes a mistake.
981
It was created by ZKT $as_me 0.98, which was
982
generated by GNU Autoconf 2.59. Invocation command line was
1350
It was created by ZKT $as_me 0.99c, which was
1351
generated by GNU Autoconf 2.61. Invocation command line was
1884
2327
rm -f conftest.$ac_objext
1885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886
(eval $ac_compile) 2>conftest.er1
2328
if { (ac_try="$ac_compile"
2330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331
*) ac_try_echo=$ac_try;;
2333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334
(eval "$ac_compile") 2>conftest.er1
1888
2336
grep -v '^ *+' conftest.er1 >conftest.err
1889
2337
rm -f conftest.er1
1890
2338
cat conftest.err >&5
1891
2339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892
(exit $ac_status); } &&
1893
{ ac_try='test -z "$ac_c_werror_flag"
1894
|| test ! -s conftest.err'
1895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899
(exit $ac_status); }; } &&
1900
{ ac_try='test -s conftest.$ac_objext'
1901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905
(exit $ac_status); }; }; then
2340
(exit $ac_status); } && {
2341
test -z "$ac_c_werror_flag" ||
2342
test ! -s conftest.err
2343
} && test -s conftest.$ac_objext; then
1906
2344
ac_compiler_gnu=yes
1908
2346
echo "$as_me: failed program was:" >&5
1909
2347
sed 's/^/| /' conftest.$ac_ext >&5
1913
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914
2353
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1917
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1918
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1919
2358
GCC=`test $ac_compiler_gnu = yes && echo yes`
1920
2359
ac_test_CFLAGS=${CFLAGS+set}
1921
2360
ac_save_CFLAGS=$CFLAGS
1923
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1924
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1925
2363
if test "${ac_cv_prog_cc_g+set}" = set; then
1926
2364
echo $ECHO_N "(cached) $ECHO_C" >&6
1928
cat >conftest.$ac_ext <<_ACEOF
1931
cat confdefs.h >>conftest.$ac_ext
1932
cat >>conftest.$ac_ext <<_ACEOF
1933
/* end confdefs.h. */
1943
rm -f conftest.$ac_objext
1944
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1945
(eval $ac_compile) 2>conftest.er1
1947
grep -v '^ *+' conftest.er1 >conftest.err
1949
cat conftest.err >&5
1950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951
(exit $ac_status); } &&
1952
{ ac_try='test -z "$ac_c_werror_flag"
1953
|| test ! -s conftest.err'
1954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958
(exit $ac_status); }; } &&
1959
{ ac_try='test -s conftest.$ac_objext'
1960
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964
(exit $ac_status); }; }; then
1967
echo "$as_me: failed program was:" >&5
1968
sed 's/^/| /' conftest.$ac_ext >&5
1972
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1974
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1975
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2366
ac_save_c_werror_flag=$ac_c_werror_flag
2367
ac_c_werror_flag=yes
2370
cat >conftest.$ac_ext <<_ACEOF
2373
cat confdefs.h >>conftest.$ac_ext
2374
cat >>conftest.$ac_ext <<_ACEOF
2375
/* end confdefs.h. */
2385
rm -f conftest.$ac_objext
2386
if { (ac_try="$ac_compile"
2388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389
*) ac_try_echo=$ac_try;;
2391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392
(eval "$ac_compile") 2>conftest.er1
2394
grep -v '^ *+' conftest.er1 >conftest.err
2396
cat conftest.err >&5
2397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398
(exit $ac_status); } && {
2399
test -z "$ac_c_werror_flag" ||
2400
test ! -s conftest.err
2401
} && test -s conftest.$ac_objext; then
2404
echo "$as_me: failed program was:" >&5
2405
sed 's/^/| /' conftest.$ac_ext >&5
2408
cat >conftest.$ac_ext <<_ACEOF
2411
cat confdefs.h >>conftest.$ac_ext
2412
cat >>conftest.$ac_ext <<_ACEOF
2413
/* end confdefs.h. */
2423
rm -f conftest.$ac_objext
2424
if { (ac_try="$ac_compile"
2426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427
*) ac_try_echo=$ac_try;;
2429
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430
(eval "$ac_compile") 2>conftest.er1
2432
grep -v '^ *+' conftest.er1 >conftest.err
2434
cat conftest.err >&5
2435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436
(exit $ac_status); } && {
2437
test -z "$ac_c_werror_flag" ||
2438
test ! -s conftest.err
2439
} && test -s conftest.$ac_objext; then
2442
echo "$as_me: failed program was:" >&5
2443
sed 's/^/| /' conftest.$ac_ext >&5
2445
ac_c_werror_flag=$ac_save_c_werror_flag
2447
cat >conftest.$ac_ext <<_ACEOF
2450
cat confdefs.h >>conftest.$ac_ext
2451
cat >>conftest.$ac_ext <<_ACEOF
2452
/* end confdefs.h. */
2462
rm -f conftest.$ac_objext
2463
if { (ac_try="$ac_compile"
2465
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466
*) ac_try_echo=$ac_try;;
2468
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469
(eval "$ac_compile") 2>conftest.er1
2471
grep -v '^ *+' conftest.er1 >conftest.err
2473
cat conftest.err >&5
2474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
(exit $ac_status); } && {
2476
test -z "$ac_c_werror_flag" ||
2477
test ! -s conftest.err
2478
} && test -s conftest.$ac_objext; then
2481
echo "$as_me: failed program was:" >&5
2482
sed 's/^/| /' conftest.$ac_ext >&5
2487
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494
ac_c_werror_flag=$ac_save_c_werror_flag
2496
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2497
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1976
2498
if test "$ac_test_CFLAGS" = set; then
1977
2499
CFLAGS=$ac_save_CFLAGS
1978
2500
elif test $ac_cv_prog_cc_g = yes; then
2050
# Don't try gcc -ansi; that turns off useful extensions and
2051
# breaks some systems' header files.
2052
# AIX -qlanglvl=ansi
2053
# Ultrix and OSF/1 -std1
2054
# HP-UX 10.20 and later -Ae
2055
# HP-UX older versions -Aa -D_HPUX_SOURCE
2056
# SVR4 -Xc -D__EXTENSIONS__
2057
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2577
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2578
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2059
2580
CC="$ac_save_CC $ac_arg"
2060
2581
rm -f conftest.$ac_objext
2061
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062
(eval $ac_compile) 2>conftest.er1
2582
if { (ac_try="$ac_compile"
2584
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585
*) ac_try_echo=$ac_try;;
2587
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588
(eval "$ac_compile") 2>conftest.er1
2064
2590
grep -v '^ *+' conftest.er1 >conftest.err
2065
2591
rm -f conftest.er1
2066
2592
cat conftest.err >&5
2067
2593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068
(exit $ac_status); } &&
2069
{ ac_try='test -z "$ac_c_werror_flag"
2070
|| test ! -s conftest.err'
2071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075
(exit $ac_status); }; } &&
2076
{ ac_try='test -s conftest.$ac_objext'
2077
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081
(exit $ac_status); }; }; then
2082
ac_cv_prog_cc_stdc=$ac_arg
2594
(exit $ac_status); } && {
2595
test -z "$ac_c_werror_flag" ||
2596
test ! -s conftest.err
2597
} && test -s conftest.$ac_objext; then
2598
ac_cv_prog_cc_c89=$ac_arg
2085
2600
echo "$as_me: failed program was:" >&5
2086
2601
sed 's/^/| /' conftest.$ac_ext >&5
2089
rm -f conftest.err conftest.$ac_objext
2606
rm -f core conftest.err conftest.$ac_objext
2607
test "x$ac_cv_prog_cc_c89" != "xno" && break
2091
rm -f conftest.$ac_ext conftest.$ac_objext
2609
rm -f conftest.$ac_ext
2096
case "x$ac_cv_prog_cc_stdc" in
2098
echo "$as_me:$LINENO: result: none needed" >&5
2099
echo "${ECHO_T}none needed" >&6 ;;
2614
case "x$ac_cv_prog_cc_c89" in
2616
{ echo "$as_me:$LINENO: result: none needed" >&5
2617
echo "${ECHO_T}none needed" >&6; } ;;
2619
{ echo "$as_me:$LINENO: result: unsupported" >&5
2620
echo "${ECHO_T}unsupported" >&6; } ;;
2101
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2102
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2103
CC="$CC $ac_cv_prog_cc_stdc" ;;
2622
CC="$CC $ac_cv_prog_cc_c89"
2623
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2624
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2106
# Some people use a C++ compiler to compile C. Since we use `exit',
2107
# in C++ we need to declare it. In case someone uses the same compiler
2108
# for both compiling C and C++ we need to have the C++ compiler decide
2109
# the declaration of exit, since it's the most demanding environment.
2110
cat >conftest.$ac_ext <<_ACEOF
2115
rm -f conftest.$ac_objext
2116
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117
(eval $ac_compile) 2>conftest.er1
2119
grep -v '^ *+' conftest.er1 >conftest.err
2121
cat conftest.err >&5
2122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123
(exit $ac_status); } &&
2124
{ ac_try='test -z "$ac_c_werror_flag"
2125
|| test ! -s conftest.err'
2126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130
(exit $ac_status); }; } &&
2131
{ ac_try='test -s conftest.$ac_objext'
2132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136
(exit $ac_status); }; }; then
2137
for ac_declaration in \
2139
'extern "C" void std::exit (int) throw (); using std::exit;' \
2140
'extern "C" void std::exit (int); using std::exit;' \
2141
'extern "C" void exit (int) throw ();' \
2142
'extern "C" void exit (int);' \
2145
cat >conftest.$ac_ext <<_ACEOF
2148
cat confdefs.h >>conftest.$ac_ext
2149
cat >>conftest.$ac_ext <<_ACEOF
2150
/* end confdefs.h. */
2161
rm -f conftest.$ac_objext
2162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163
(eval $ac_compile) 2>conftest.er1
2165
grep -v '^ *+' conftest.er1 >conftest.err
2167
cat conftest.err >&5
2168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169
(exit $ac_status); } &&
2170
{ ac_try='test -z "$ac_c_werror_flag"
2171
|| test ! -s conftest.err'
2172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176
(exit $ac_status); }; } &&
2177
{ ac_try='test -s conftest.$ac_objext'
2178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182
(exit $ac_status); }; }; then
2185
echo "$as_me: failed program was:" >&5
2186
sed 's/^/| /' conftest.$ac_ext >&5
2190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2191
cat >conftest.$ac_ext <<_ACEOF
2194
cat confdefs.h >>conftest.$ac_ext
2195
cat >>conftest.$ac_ext <<_ACEOF
2196
/* end confdefs.h. */
2206
rm -f conftest.$ac_objext
2207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208
(eval $ac_compile) 2>conftest.er1
2210
grep -v '^ *+' conftest.er1 >conftest.err
2212
cat conftest.err >&5
2213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214
(exit $ac_status); } &&
2215
{ ac_try='test -z "$ac_c_werror_flag"
2216
|| test ! -s conftest.err'
2217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
(exit $ac_status); }; } &&
2222
{ ac_try='test -s conftest.$ac_objext'
2223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
(exit $ac_status); }; }; then
2230
echo "$as_me: failed program was:" >&5
2231
sed 's/^/| /' conftest.$ac_ext >&5
2234
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237
if test -n "$ac_declaration"; then
2238
echo '#ifdef __cplusplus' >>confdefs.h
2239
echo $ac_declaration >>confdefs.h
2240
echo '#endif' >>confdefs.h
2244
echo "$as_me: failed program was:" >&5
2245
sed 's/^/| /' conftest.$ac_ext >&5
2248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250
2629
ac_cpp='$CPP $CPPFLAGS'
2251
2630
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552
2926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
echo "$as_me:$LINENO: checking for egrep" >&5
2556
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2557
if test "${ac_cv_prog_egrep+set}" = set; then
2558
echo $ECHO_N "(cached) $ECHO_C" >&6
2560
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2561
then ac_cv_prog_egrep='grep -E'
2562
else ac_cv_prog_egrep='egrep'
2565
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2566
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2567
EGREP=$ac_cv_prog_egrep
2570
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2571
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2929
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2930
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2931
if test "${ac_cv_path_GREP+set}" = set; then
2932
echo $ECHO_N "(cached) $ECHO_C" >&6
2934
# Extract the first word of "grep ggrep" to use in msg output
2935
if test -z "$GREP"; then
2936
set dummy grep ggrep; ac_prog_name=$2
2937
if test "${ac_cv_path_GREP+set}" = set; then
2938
echo $ECHO_N "(cached) $ECHO_C" >&6
2940
ac_path_GREP_found=false
2941
# Loop through the user's path and test for each of PROGNAME-LIST
2942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2946
test -z "$as_dir" && as_dir=.
2947
for ac_prog in grep ggrep; do
2948
for ac_exec_ext in '' $ac_executable_extensions; do
2949
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2950
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2951
# Check for GNU ac_path_GREP and select it if it is found.
2952
# Check for GNU $ac_path_GREP
2953
case `"$ac_path_GREP" --version 2>&1` in
2955
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2958
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2961
cat "conftest.in" "conftest.in" >"conftest.tmp"
2962
mv "conftest.tmp" "conftest.in"
2963
cp "conftest.in" "conftest.nl"
2964
echo 'GREP' >> "conftest.nl"
2965
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2966
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2967
ac_count=`expr $ac_count + 1`
2968
if test $ac_count -gt ${ac_path_GREP_max-0}; then
2969
# Best one so far, save it but keep looking for a better one
2970
ac_cv_path_GREP="$ac_path_GREP"
2971
ac_path_GREP_max=$ac_count
2973
# 10*(2^10) chars as input seems more than enough
2974
test $ac_count -gt 10 && break
2976
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2980
$ac_path_GREP_found && break 3
2990
GREP="$ac_cv_path_GREP"
2991
if test -z "$GREP"; then
2992
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2993
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2994
{ (exit 1); exit 1; }; }
2998
ac_cv_path_GREP=$GREP
3003
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3004
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3005
GREP="$ac_cv_path_GREP"
3008
{ echo "$as_me:$LINENO: checking for egrep" >&5
3009
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3010
if test "${ac_cv_path_EGREP+set}" = set; then
3011
echo $ECHO_N "(cached) $ECHO_C" >&6
3013
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3014
then ac_cv_path_EGREP="$GREP -E"
3016
# Extract the first word of "egrep" to use in msg output
3017
if test -z "$EGREP"; then
3018
set dummy egrep; ac_prog_name=$2
3019
if test "${ac_cv_path_EGREP+set}" = set; then
3020
echo $ECHO_N "(cached) $ECHO_C" >&6
3022
ac_path_EGREP_found=false
3023
# Loop through the user's path and test for each of PROGNAME-LIST
3024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3028
test -z "$as_dir" && as_dir=.
3029
for ac_prog in egrep; do
3030
for ac_exec_ext in '' $ac_executable_extensions; do
3031
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3032
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3033
# Check for GNU ac_path_EGREP and select it if it is found.
3034
# Check for GNU $ac_path_EGREP
3035
case `"$ac_path_EGREP" --version 2>&1` in
3037
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3040
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3043
cat "conftest.in" "conftest.in" >"conftest.tmp"
3044
mv "conftest.tmp" "conftest.in"
3045
cp "conftest.in" "conftest.nl"
3046
echo 'EGREP' >> "conftest.nl"
3047
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3048
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3049
ac_count=`expr $ac_count + 1`
3050
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3051
# Best one so far, save it but keep looking for a better one
3052
ac_cv_path_EGREP="$ac_path_EGREP"
3053
ac_path_EGREP_max=$ac_count
3055
# 10*(2^10) chars as input seems more than enough
3056
test $ac_count -gt 10 && break
3058
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3062
$ac_path_EGREP_found && break 3
3072
EGREP="$ac_cv_path_EGREP"
3073
if test -z "$EGREP"; then
3074
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3075
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3076
{ (exit 1); exit 1; }; }
3080
ac_cv_path_EGREP=$EGREP
3086
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3087
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3088
EGREP="$ac_cv_path_EGREP"
3091
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3092
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2572
3093
if test "${ac_cv_header_stdc+set}" = set; then
2573
3094
echo $ECHO_N "(cached) $ECHO_C" >&6
3275
3786
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3276
3787
if test $ac_header_dirent = dirent.h; then
3277
echo "$as_me:$LINENO: checking for library containing opendir" >&5
3278
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3279
if test "${ac_cv_search_opendir+set}" = set; then
3280
echo $ECHO_N "(cached) $ECHO_C" >&6
3282
ac_func_search_save_LIBS=$LIBS
3283
ac_cv_search_opendir=no
3284
cat >conftest.$ac_ext <<_ACEOF
3287
cat confdefs.h >>conftest.$ac_ext
3288
cat >>conftest.$ac_ext <<_ACEOF
3289
/* end confdefs.h. */
3291
/* Override any gcc2 internal prototype to avoid an error. */
3295
/* We use char because int might match the return type of a gcc2
3296
builtin and then its argument prototype would still apply. */
3306
rm -f conftest.$ac_objext conftest$ac_exeext
3307
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3308
(eval $ac_link) 2>conftest.er1
3310
grep -v '^ *+' conftest.er1 >conftest.err
3312
cat conftest.err >&5
3313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314
(exit $ac_status); } &&
3315
{ ac_try='test -z "$ac_c_werror_flag"
3316
|| test ! -s conftest.err'
3317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321
(exit $ac_status); }; } &&
3322
{ ac_try='test -s conftest$ac_exeext'
3323
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327
(exit $ac_status); }; }; then
3328
ac_cv_search_opendir="none required"
3330
echo "$as_me: failed program was:" >&5
3331
sed 's/^/| /' conftest.$ac_ext >&5
3334
rm -f conftest.err conftest.$ac_objext \
3335
conftest$ac_exeext conftest.$ac_ext
3336
if test "$ac_cv_search_opendir" = no; then
3337
for ac_lib in dir; do
3338
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3339
cat >conftest.$ac_ext <<_ACEOF
3342
cat confdefs.h >>conftest.$ac_ext
3343
cat >>conftest.$ac_ext <<_ACEOF
3344
/* end confdefs.h. */
3346
/* Override any gcc2 internal prototype to avoid an error. */
3350
/* We use char because int might match the return type of a gcc2
3351
builtin and then its argument prototype would still apply. */
3361
rm -f conftest.$ac_objext conftest$ac_exeext
3362
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363
(eval $ac_link) 2>conftest.er1
3365
grep -v '^ *+' conftest.er1 >conftest.err
3367
cat conftest.err >&5
3368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369
(exit $ac_status); } &&
3370
{ ac_try='test -z "$ac_c_werror_flag"
3371
|| test ! -s conftest.err'
3372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376
(exit $ac_status); }; } &&
3377
{ ac_try='test -s conftest$ac_exeext'
3378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382
(exit $ac_status); }; }; then
3383
ac_cv_search_opendir="-l$ac_lib"
3386
echo "$as_me: failed program was:" >&5
3387
sed 's/^/| /' conftest.$ac_ext >&5
3390
rm -f conftest.err conftest.$ac_objext \
3391
conftest$ac_exeext conftest.$ac_ext
3394
LIBS=$ac_func_search_save_LIBS
3396
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3397
echo "${ECHO_T}$ac_cv_search_opendir" >&6
3398
if test "$ac_cv_search_opendir" != no; then
3399
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3404
echo "$as_me:$LINENO: checking for library containing opendir" >&5
3405
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3406
if test "${ac_cv_search_opendir+set}" = set; then
3407
echo $ECHO_N "(cached) $ECHO_C" >&6
3409
ac_func_search_save_LIBS=$LIBS
3410
ac_cv_search_opendir=no
3411
cat >conftest.$ac_ext <<_ACEOF
3414
cat confdefs.h >>conftest.$ac_ext
3415
cat >>conftest.$ac_ext <<_ACEOF
3416
/* end confdefs.h. */
3418
/* Override any gcc2 internal prototype to avoid an error. */
3422
/* We use char because int might match the return type of a gcc2
3423
builtin and then its argument prototype would still apply. */
3433
rm -f conftest.$ac_objext conftest$ac_exeext
3434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435
(eval $ac_link) 2>conftest.er1
3437
grep -v '^ *+' conftest.er1 >conftest.err
3439
cat conftest.err >&5
3440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441
(exit $ac_status); } &&
3442
{ ac_try='test -z "$ac_c_werror_flag"
3443
|| test ! -s conftest.err'
3444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448
(exit $ac_status); }; } &&
3449
{ ac_try='test -s conftest$ac_exeext'
3450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454
(exit $ac_status); }; }; then
3455
ac_cv_search_opendir="none required"
3457
echo "$as_me: failed program was:" >&5
3458
sed 's/^/| /' conftest.$ac_ext >&5
3461
rm -f conftest.err conftest.$ac_objext \
3462
conftest$ac_exeext conftest.$ac_ext
3463
if test "$ac_cv_search_opendir" = no; then
3465
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3466
cat >conftest.$ac_ext <<_ACEOF
3469
cat confdefs.h >>conftest.$ac_ext
3470
cat >>conftest.$ac_ext <<_ACEOF
3471
/* end confdefs.h. */
3473
/* Override any gcc2 internal prototype to avoid an error. */
3477
/* We use char because int might match the return type of a gcc2
3478
builtin and then its argument prototype would still apply. */
3488
rm -f conftest.$ac_objext conftest$ac_exeext
3489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3490
(eval $ac_link) 2>conftest.er1
3492
grep -v '^ *+' conftest.er1 >conftest.err
3494
cat conftest.err >&5
3495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496
(exit $ac_status); } &&
3497
{ ac_try='test -z "$ac_c_werror_flag"
3498
|| test ! -s conftest.err'
3499
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503
(exit $ac_status); }; } &&
3504
{ ac_try='test -s conftest$ac_exeext'
3505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
(exit $ac_status); }; }; then
3510
ac_cv_search_opendir="-l$ac_lib"
3513
echo "$as_me: failed program was:" >&5
3514
sed 's/^/| /' conftest.$ac_ext >&5
3517
rm -f conftest.err conftest.$ac_objext \
3518
conftest$ac_exeext conftest.$ac_ext
3521
LIBS=$ac_func_search_save_LIBS
3523
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3524
echo "${ECHO_T}$ac_cv_search_opendir" >&6
3525
if test "$ac_cv_search_opendir" != no; then
3526
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3532
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3533
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3788
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
3789
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3790
if test "${ac_cv_search_opendir+set}" = set; then
3791
echo $ECHO_N "(cached) $ECHO_C" >&6
3793
ac_func_search_save_LIBS=$LIBS
3794
cat >conftest.$ac_ext <<_ACEOF
3797
cat confdefs.h >>conftest.$ac_ext
3798
cat >>conftest.$ac_ext <<_ACEOF
3799
/* end confdefs.h. */
3801
/* Override any GCC internal prototype to avoid an error.
3802
Use char because int might match the return type of a GCC
3803
builtin and then its argument prototype would still apply. */
3816
for ac_lib in '' dir; do
3817
if test -z "$ac_lib"; then
3818
ac_res="none required"
3821
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3823
rm -f conftest.$ac_objext conftest$ac_exeext
3824
if { (ac_try="$ac_link"
3826
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827
*) ac_try_echo=$ac_try;;
3829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830
(eval "$ac_link") 2>conftest.er1
3832
grep -v '^ *+' conftest.er1 >conftest.err
3834
cat conftest.err >&5
3835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836
(exit $ac_status); } && {
3837
test -z "$ac_c_werror_flag" ||
3838
test ! -s conftest.err
3839
} && test -s conftest$ac_exeext &&
3840
$as_test_x conftest$ac_exeext; then
3841
ac_cv_search_opendir=$ac_res
3843
echo "$as_me: failed program was:" >&5
3844
sed 's/^/| /' conftest.$ac_ext >&5
3849
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3851
if test "${ac_cv_search_opendir+set}" = set; then
3855
if test "${ac_cv_search_opendir+set}" = set; then
3858
ac_cv_search_opendir=no
3861
LIBS=$ac_func_search_save_LIBS
3863
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3864
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3865
ac_res=$ac_cv_search_opendir
3866
if test "$ac_res" != no; then
3867
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3872
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
3873
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3874
if test "${ac_cv_search_opendir+set}" = set; then
3875
echo $ECHO_N "(cached) $ECHO_C" >&6
3877
ac_func_search_save_LIBS=$LIBS
3878
cat >conftest.$ac_ext <<_ACEOF
3881
cat confdefs.h >>conftest.$ac_ext
3882
cat >>conftest.$ac_ext <<_ACEOF
3883
/* end confdefs.h. */
3885
/* Override any GCC internal prototype to avoid an error.
3886
Use char because int might match the return type of a GCC
3887
builtin and then its argument prototype would still apply. */
3900
for ac_lib in '' x; do
3901
if test -z "$ac_lib"; then
3902
ac_res="none required"
3905
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3907
rm -f conftest.$ac_objext conftest$ac_exeext
3908
if { (ac_try="$ac_link"
3910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911
*) ac_try_echo=$ac_try;;
3913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914
(eval "$ac_link") 2>conftest.er1
3916
grep -v '^ *+' conftest.er1 >conftest.err
3918
cat conftest.err >&5
3919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920
(exit $ac_status); } && {
3921
test -z "$ac_c_werror_flag" ||
3922
test ! -s conftest.err
3923
} && test -s conftest$ac_exeext &&
3924
$as_test_x conftest$ac_exeext; then
3925
ac_cv_search_opendir=$ac_res
3927
echo "$as_me: failed program was:" >&5
3928
sed 's/^/| /' conftest.$ac_ext >&5
3933
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3935
if test "${ac_cv_search_opendir+set}" = set; then
3939
if test "${ac_cv_search_opendir+set}" = set; then
3942
ac_cv_search_opendir=no
3945
LIBS=$ac_func_search_save_LIBS
3947
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3948
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3949
ac_res=$ac_cv_search_opendir
3950
if test "$ac_res" != no; then
3951
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3957
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3958
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3534
3959
if test "${ac_cv_header_stdc+set}" = set; then
3535
3960
echo $ECHO_N "(cached) $ECHO_C" >&6
5901
6452
# Name of the executable.
5902
as_me=`$as_basename "$0" ||
6453
as_me=`$as_basename -- "$0" ||
5903
6454
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5904
6455
X"$0" : 'X\(//\)$' \| \
5905
X"$0" : 'X\(/\)$' \| \
5906
. : '\(.\)' 2>/dev/null ||
6456
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5908
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5909
/^X\/\(\/\/\)$/{ s//\1/; q; }
5910
/^X\/\(\/\).*/{ s//\1/; q; }
5914
# PATH needs CR, and LINENO needs CR and PATH.
5915
# Avoid depending upon Character Ranges.
5916
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5917
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5918
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5919
as_cr_digits='0123456789'
5920
as_cr_alnum=$as_cr_Letters$as_cr_digits
5922
# The user is always right.
5923
if test "${PATH_SEPARATOR+set}" != set; then
5924
echo "#! /bin/sh" >conf$$.sh
5925
echo "exit 0" >>conf$$.sh
5927
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5938
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5939
test "x$as_lineno_1" != "x$as_lineno_2" &&
5940
test "x$as_lineno_3" = "x$as_lineno_2" || {
5941
# Find who we are. Look in the path if we contain no path at all
5944
*[\\/]* ) as_myself=$0 ;;
5945
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949
test -z "$as_dir" && as_dir=.
5950
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5955
# We did not find ourselves, most probably we were run as `sh COMMAND'
5956
# in which case we are not to be found in the path.
5957
if test "x$as_myself" = x; then
5960
if test ! -f "$as_myself"; then
5961
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5962
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5963
{ (exit 1); exit 1; }; }
5965
case $CONFIG_SHELL in
5967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5971
test -z "$as_dir" && as_dir=.
5972
for as_base in sh bash ksh sh5; do
5975
if ("$as_dir/$as_base" -c '
5978
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5979
test "x$as_lineno_1" != "x$as_lineno_2" &&
5980
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5981
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5982
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5983
CONFIG_SHELL=$as_dir/$as_base
5985
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6458
sed '/^.*\/\([^/][^/]*\)\/*$/{
6479
test "x$as_lineno_1" != "x$as_lineno_2" &&
6480
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5993
6482
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5994
6483
# uniformly replaced by the line number. The first 'sed' inserts a
5995
# line-number line before each line; the second 'sed' does the real
5996
# work. The second script uses 'N' to pair each line-number line
5997
# with the numbered line, and appends trailing '-' during
5998
# substitution so that $LINENO is not a special case at line end.
6484
# line-number line after each line using $LINENO; the second 'sed'
6485
# does the real work. The second script uses 'N' to pair each
6486
# line-number line with the line containing $LINENO, and appends
6487
# trailing '-' during substitution so that $LINENO is not a special
5999
6489
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6000
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6001
sed '=' <$as_myself |
6490
# scripts with optimization help from Paolo Bonzini. Blame Lee
6491
# E. McMahon (1931-1989) for sed's syntax. :-)
6006
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6503
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6009
s,^['$as_cr_digits']*\n,,
6010
6506
' >$as_me.lineno &&
6011
chmod +x $as_me.lineno ||
6012
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6013
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6507
chmod +x "$as_me.lineno" ||
6508
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6014
6509
{ (exit 1); exit 1; }; }
6016
6511
# Don't try to exec as it changes $[0], causing all sort of problems
6017
6512
# (the dirname of $[0] is not the place where we might find the
6018
# original and so on. Autoconf is especially sensible to this).
6513
# original and so on. Autoconf is especially sensitive to this).
6020
6515
# Exit status is that of the last command.
6025
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6026
*c*,-n*) ECHO_N= ECHO_C='
6028
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6029
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6520
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6526
ECHO_C= ECHO_N= ECHO_T=
6529
case `echo 'x\c'` in
6530
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
6032
if expr a : '\(a\)' >/dev/null 2>&1; then
6537
if expr a : '\(a\)' >/dev/null 2>&1 &&
6538
test "X`expr 00001 : '.*\(...\)'`" = X001; then
6038
6544
rm -f conf$$ conf$$.exe conf$$.file
6545
if test -d conf$$.dir; then
6546
rm -f conf$$.dir/conf$$.file
6039
6551
echo >conf$$.file
6040
6552
if ln -s conf$$.file conf$$ 2>/dev/null; then
6041
# We could just check for DJGPP; but this test a) works b) is more generic
6042
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6043
if test -f conf$$.exe; then
6044
# Don't use ln at all; we don't have any links
6554
# ... but there are two gotchas:
6555
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6556
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6557
# In both cases, we have to default to `cp -p'.
6558
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6045
6559
as_ln_s='cp -p'
6049
6560
elif ln conf$$.file conf$$ 2>/dev/null; then
6052
6563
as_ln_s='cp -p'
6054
rm -f conf$$ conf$$.exe conf$$.file
6565
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6566
rmdir conf$$.dir 2>/dev/null
6056
6568
if mkdir -p . 2>/dev/null; then
6274
6786
# Have a temporary directory for convenience. Make it in the build tree
6275
# simply because there is no reason to put it here, and in addition,
6787
# simply because there is no reason against having it here, and in addition,
6276
6788
# creating and moving files from /tmp can sometimes cause problems.
6277
# Create a temporary directory, and hook for its removal unless debugging.
6789
# Hook for its removal unless debugging.
6790
# Note that there is a small window in which the directory will not be cleaned:
6791
# after its creation but before its name has been assigned to `$tmp'.
6280
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6795
trap 'exit_status=$?
6796
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6281
6798
trap '{ (exit 1); exit 1; }' 1 2 13 15
6284
6800
# Create a (secure) tmp directory for tmp files.
6287
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6803
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6288
6804
test -n "$tmp" && test -d "$tmp"
6291
tmp=./confstat$$-$RANDOM
6292
(umask 077 && mkdir $tmp)
6807
tmp=./conf$$-$RANDOM
6808
(umask 077 && mkdir "$tmp")
6295
6811
echo "$me: cannot create a temporary directory in ." >&2
6296
6812
{ (exit 1); exit 1; }
6301
cat >>$CONFIG_STATUS <<_ACEOF
6304
# CONFIG_FILES section.
6816
# Set up the sed scripts for CONFIG_FILES section.
6307
6819
# No need to generate the scripts if there are no CONFIG_FILES.
6308
6820
# This happens for instance when ./config.status config.h
6309
if test -n "\$CONFIG_FILES"; then
6310
# Protect against being on the right side of a sed subst in config.status.
6311
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6312
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6313
s,@SHELL@,$SHELL,;t t
6314
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6315
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6316
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6317
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6318
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6319
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6320
s,@exec_prefix@,$exec_prefix,;t t
6321
s,@prefix@,$prefix,;t t
6322
s,@program_transform_name@,$program_transform_name,;t t
6323
s,@bindir@,$bindir,;t t
6324
s,@sbindir@,$sbindir,;t t
6325
s,@libexecdir@,$libexecdir,;t t
6326
s,@datadir@,$datadir,;t t
6327
s,@sysconfdir@,$sysconfdir,;t t
6328
s,@sharedstatedir@,$sharedstatedir,;t t
6329
s,@localstatedir@,$localstatedir,;t t
6330
s,@libdir@,$libdir,;t t
6331
s,@includedir@,$includedir,;t t
6332
s,@oldincludedir@,$oldincludedir,;t t
6333
s,@infodir@,$infodir,;t t
6334
s,@mandir@,$mandir,;t t
6335
s,@build_alias@,$build_alias,;t t
6336
s,@host_alias@,$host_alias,;t t
6337
s,@target_alias@,$target_alias,;t t
6339
s,@ECHO_C@,$ECHO_C,;t t
6340
s,@ECHO_N@,$ECHO_N,;t t
6341
s,@ECHO_T@,$ECHO_T,;t t
6344
s,@CFLAGS@,$CFLAGS,;t t
6345
s,@LDFLAGS@,$LDFLAGS,;t t
6346
s,@CPPFLAGS@,$CPPFLAGS,;t t
6347
s,@ac_ct_CC@,$ac_ct_CC,;t t
6348
s,@EXEEXT@,$EXEEXT,;t t
6349
s,@OBJEXT@,$OBJEXT,;t t
6350
s,@SIGNZONE_PROG@,$SIGNZONE_PROG,;t t
6352
s,@EGREP@,$EGREP,;t t
6353
s,@LIBOBJS@,$LIBOBJS,;t t
6354
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6359
cat >>$CONFIG_STATUS <<\_ACEOF
6360
# Split the substitutions into bite-sized pieces for seds with
6361
# small command number limits, like on Digital OSF/1 and HP-UX.
6363
ac_sed_frag=1 # Number of current file.
6364
ac_beg=1 # First line for current file.
6365
ac_end=$ac_max_sed_lines # Line after last line for current file.
6368
while $ac_more_lines; do
6369
if test $ac_beg -gt 1; then
6370
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6372
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6374
if test ! -s $tmp/subs.frag; then
6377
# The purpose of the label and of the branching condition is to
6378
# speed up the sed processing (if there are no `@' at all, there
6379
# is no need to browse any of the substitutions).
6380
# These are the two extra sed commands mentioned above.
6382
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6383
if test -z "$ac_sed_cmds"; then
6384
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6386
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6388
ac_sed_frag=`expr $ac_sed_frag + 1`
6390
ac_end=`expr $ac_end + $ac_max_sed_lines`
6393
if test -z "$ac_sed_cmds"; then
6821
if test -n "$CONFIG_FILES"; then
6828
for ac_last_try in false false false false false :; do
6829
cat >conf$$subs.sed <<_ACEOF
6830
SHELL!$SHELL$ac_delim
6831
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6832
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6833
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6834
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6835
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6836
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6837
exec_prefix!$exec_prefix$ac_delim
6838
prefix!$prefix$ac_delim
6839
program_transform_name!$program_transform_name$ac_delim
6840
bindir!$bindir$ac_delim
6841
sbindir!$sbindir$ac_delim
6842
libexecdir!$libexecdir$ac_delim
6843
datarootdir!$datarootdir$ac_delim
6844
datadir!$datadir$ac_delim
6845
sysconfdir!$sysconfdir$ac_delim
6846
sharedstatedir!$sharedstatedir$ac_delim
6847
localstatedir!$localstatedir$ac_delim
6848
includedir!$includedir$ac_delim
6849
oldincludedir!$oldincludedir$ac_delim
6850
docdir!$docdir$ac_delim
6851
infodir!$infodir$ac_delim
6852
htmldir!$htmldir$ac_delim
6853
dvidir!$dvidir$ac_delim
6854
pdfdir!$pdfdir$ac_delim
6855
psdir!$psdir$ac_delim
6856
libdir!$libdir$ac_delim
6857
localedir!$localedir$ac_delim
6858
mandir!$mandir$ac_delim
6860
ECHO_C!$ECHO_C$ac_delim
6861
ECHO_N!$ECHO_N$ac_delim
6862
ECHO_T!$ECHO_T$ac_delim
6864
build_alias!$build_alias$ac_delim
6865
host_alias!$host_alias$ac_delim
6866
target_alias!$target_alias$ac_delim
6868
CFLAGS!$CFLAGS$ac_delim
6869
LDFLAGS!$LDFLAGS$ac_delim
6870
CPPFLAGS!$CPPFLAGS$ac_delim
6871
ac_ct_CC!$ac_ct_CC$ac_delim
6872
EXEEXT!$EXEEXT$ac_delim
6873
OBJEXT!$OBJEXT$ac_delim
6874
SIGNZONE_PROG!$SIGNZONE_PROG$ac_delim
6877
EGREP!$EGREP$ac_delim
6878
LIBOBJS!$LIBOBJS$ac_delim
6879
LTLIBOBJS!$LTLIBOBJS$ac_delim
6882
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
6884
elif $ac_last_try; then
6885
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6886
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6887
{ (exit 1); exit 1; }; }
6889
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6893
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6894
if test -n "$ac_eof"; then
6895
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6896
ac_eof=`expr $ac_eof + 1`
6899
cat >>$CONFIG_STATUS <<_ACEOF
6900
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6901
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6904
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6905
s/^/s,@/; s/!/@,|#_!!_#|/
6908
s/'"$ac_delim"'$/,g/; t
6910
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6911
' >>$CONFIG_STATUS <conf$$subs.sed
6912
rm -f conf$$subs.sed
6913
cat >>$CONFIG_STATUS <<_ACEOF
6920
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6921
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6922
# trailing colons and then remove the whole line if VPATH becomes empty
6923
# (actually we leave an empty line to preserve line numbers).
6924
if test "x$srcdir" = x.; then
6925
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6929
s/^\([^=]*=[ ]*\):*/\1/
6935
cat >>$CONFIG_STATUS <<\_ACEOF
6396
6936
fi # test -n "$CONFIG_FILES"
6399
cat >>$CONFIG_STATUS <<\_ACEOF
6400
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6401
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6403
- | *:- | *:-:* ) # input from stdin
6405
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6406
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6407
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6408
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6409
* ) ac_file_in=$ac_file.in ;;
6412
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6413
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6939
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6942
:[FHLC]) ac_mode=$ac_tag; continue;;
6944
case $ac_mode$ac_tag in
6946
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6947
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6948
{ (exit 1); exit 1; }; };;
6949
:[FH]-) ac_tag=-:-;;
6950
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6967
-) ac_f="$tmp/stdin";;
6968
*) # Look for the file first in the build tree, then in the source tree
6969
# (if the path is not absolute). The absolute path cannot be DOS-style,
6970
# because $ac_f cannot contain `:'.
6974
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6976
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6977
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6978
{ (exit 1); exit 1; }; };;
6980
ac_file_inputs="$ac_file_inputs $ac_f"
6983
# Let's still pretend it is `configure' which instantiates (i.e., don't
6984
# use $as_me), people would be surprised to read:
6985
# /* config.h. Generated by config.status. */
6986
configure_input="Generated from "`IFS=:
6987
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6988
if test x"$ac_file" != x-; then
6989
configure_input="$ac_file. $configure_input"
6990
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6991
echo "$as_me: creating $ac_file" >&6;}
6995
*:-:* | *:-) cat >"$tmp/stdin";;
7000
ac_dir=`$as_dirname -- "$ac_file" ||
6414
7001
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6415
7002
X"$ac_file" : 'X\(//\)[^/]' \| \
6416
7003
X"$ac_file" : 'X\(//\)$' \| \
6417
X"$ac_file" : 'X\(/\)' \| \
6418
. : '\(.\)' 2>/dev/null ||
7004
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6419
7005
echo X"$ac_file" |
6420
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6421
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6422
/^X\(\/\/\)$/{ s//\1/; q; }
6423
/^X\(\/\).*/{ s//\1/; q; }
6425
{ if $as_mkdir_p; then
7006
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7025
-*) as_dir=./$as_dir;;
7027
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6430
while test ! -d "$as_dir"; do
6431
as_dirs="$as_dir $as_dirs"
6432
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7031
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7032
*) as_qdir=$as_dir;;
7034
as_dirs="'$as_qdir' $as_dirs"
7035
as_dir=`$as_dirname -- "$as_dir" ||
6433
7036
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6434
7037
X"$as_dir" : 'X\(//\)[^/]' \| \
6435
7038
X"$as_dir" : 'X\(//\)$' \| \
6436
X"$as_dir" : 'X\(/\)' \| \
6437
. : '\(.\)' 2>/dev/null ||
7039
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6438
7040
echo X"$as_dir" |
6439
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6440
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6441
/^X\(\/\/\)$/{ s//\1/; q; }
6442
/^X\(\/\).*/{ s//\1/; q; }
7041
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7058
test -d "$as_dir" && break
6445
test ! -n "$as_dirs" || mkdir $as_dirs
6446
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6447
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7060
test -z "$as_dirs" || eval "mkdir $as_dirs"
7061
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7062
echo "$as_me: error: cannot create directory $as_dir" >&2;}
6448
7063
{ (exit 1); exit 1; }; }; }
6452
if test "$ac_dir" != .; then
7067
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6453
7069
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6454
# A "../" for each directory in $ac_dir_suffix.
6455
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6457
ac_dir_suffix= ac_top_builddir=
7070
# A ".." for each directory in $ac_dir_suffix.
7071
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7072
case $ac_top_builddir_sub in
7073
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7074
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7077
ac_abs_top_builddir=$ac_pwd
7078
ac_abs_builddir=$ac_pwd$ac_dir_suffix
7079
# for backward compatibility:
7080
ac_top_builddir=$ac_top_build_prefix
6460
7082
case $srcdir in
6461
.) # No --srcdir option. We are building in place.
7083
.) # We are building in place.
6463
if test -z "$ac_top_builddir"; then
6466
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6468
[\\/]* | ?:[\\/]* ) # Absolute path.
7085
ac_top_srcdir=$ac_top_builddir_sub
7086
ac_abs_top_srcdir=$ac_pwd ;;
7087
[\\/]* | ?:[\\/]* ) # Absolute name.
6469
7088
ac_srcdir=$srcdir$ac_dir_suffix;
6470
ac_top_srcdir=$srcdir ;;
6472
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6473
ac_top_srcdir=$ac_top_builddir$srcdir ;;
6476
# Do not use `cd foo && pwd` to compute absolute paths, because
6477
# the directories may not exist.
6479
.) ac_abs_builddir="$ac_dir";;
6482
.) ac_abs_builddir=`pwd`;;
6483
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6484
*) ac_abs_builddir=`pwd`/"$ac_dir";;
6487
case $ac_abs_builddir in
6488
.) ac_abs_top_builddir=${ac_top_builddir}.;;
6490
case ${ac_top_builddir}. in
6491
.) ac_abs_top_builddir=$ac_abs_builddir;;
6492
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6493
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6496
case $ac_abs_builddir in
6497
.) ac_abs_srcdir=$ac_srcdir;;
6500
.) ac_abs_srcdir=$ac_abs_builddir;;
6501
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6502
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6505
case $ac_abs_builddir in
6506
.) ac_abs_top_srcdir=$ac_top_srcdir;;
6508
case $ac_top_srcdir in
6509
.) ac_abs_top_srcdir=$ac_abs_builddir;;
6510
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6511
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6517
if test x"$ac_file" != x-; then
6518
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6519
echo "$as_me: creating $ac_file" >&6;}
6522
# Let's still pretend it is `configure' which instantiates (i.e., don't
6523
# use $as_me), people would be surprised to read:
6524
# /* config.h. Generated by config.status. */
6525
if test x"$ac_file" = x-; then
6528
configure_input="$ac_file. "
6530
configure_input=$configure_input"Generated from `echo $ac_file_in |
6531
sed 's,.*/,,'` by configure."
6533
# First look for the input files in the build tree, otherwise in the
6535
ac_file_inputs=`IFS=:
6536
for f in $ac_file_in; do
6538
-) echo $tmp/stdin ;;
6540
# Absolute (can't be DOS-style, as IFS=:)
6541
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6542
echo "$as_me: error: cannot find input file: $f" >&2;}
6543
{ (exit 1); exit 1; }; }
6546
if test -f "$f"; then
6549
elif test -f "$srcdir/$f"; then
6554
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6555
echo "$as_me: error: cannot find input file: $f" >&2;}
6556
{ (exit 1); exit 1; }; }
6559
done` || { (exit 1); exit 1; }
7089
ac_top_srcdir=$srcdir
7090
ac_abs_top_srcdir=$srcdir ;;
7092
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7093
ac_top_srcdir=$ac_top_build_prefix$srcdir
7094
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7096
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7107
cat >>$CONFIG_STATUS <<\_ACEOF
7108
# If the template does not know about datarootdir, expand it.
7109
# FIXME: This hack should be removed a few years after 2.60.
7110
ac_datarootdir_hack=; ac_datarootdir_seen=
7112
case `sed -n '/datarootdir/ {
7121
' $ac_file_inputs` in
7122
*datarootdir*) ac_datarootdir_seen=yes;;
7123
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7124
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7125
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7127
cat >>$CONFIG_STATUS <<_ACEOF
7128
ac_datarootdir_hack='
7129
s&@datadir@&$datadir&g
7130
s&@docdir@&$docdir&g
7131
s&@infodir@&$infodir&g
7132
s&@localedir@&$localedir&g
7133
s&@mandir@&$mandir&g
7134
s&\\\${datarootdir}&$datarootdir&g' ;;
7138
# Neutralize VPATH when `$srcdir' = `.'.
7139
# Shell code in configure.ac might set extrasub.
7140
# FIXME: do we really want to maintain this feature?
6561
7141
cat >>$CONFIG_STATUS <<_ACEOF
6565
7145
cat >>$CONFIG_STATUS <<\_ACEOF
6567
7147
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6568
s,@configure_input@,$configure_input,;t t
6569
s,@srcdir@,$ac_srcdir,;t t
6570
s,@abs_srcdir@,$ac_abs_srcdir,;t t
6571
s,@top_srcdir@,$ac_top_srcdir,;t t
6572
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6573
s,@builddir@,$ac_builddir,;t t
6574
s,@abs_builddir@,$ac_abs_builddir,;t t
6575
s,@top_builddir@,$ac_top_builddir,;t t
6576
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6577
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6579
if test x"$ac_file" != x-; then
6580
mv $tmp/out $ac_file
7148
s&@configure_input@&$configure_input&;t t
7149
s&@top_builddir@&$ac_top_builddir_sub&;t t
7150
s&@srcdir@&$ac_srcdir&;t t
7151
s&@abs_srcdir@&$ac_abs_srcdir&;t t
7152
s&@top_srcdir@&$ac_top_srcdir&;t t
7153
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7154
s&@builddir@&$ac_builddir&;t t
7155
s&@abs_builddir@&$ac_abs_builddir&;t t
7156
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7157
$ac_datarootdir_hack
7158
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7160
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7161
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7162
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7163
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7164
which seems to be undefined. Please make sure it is defined." >&5
7165
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7166
which seems to be undefined. Please make sure it is defined." >&2;}
7170
-) cat "$tmp/out"; rm -f "$tmp/out";;
7171
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6588
cat >>$CONFIG_STATUS <<\_ACEOF
6591
# CONFIG_HEADER section.
6594
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6595
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6597
# ac_d sets the value in "#define NAME VALUE" lines.
6598
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6599
ac_dB='[ ].*$,\1#\2'
7180
# Transform confdefs.h into a sed script `conftest.defines', that
7181
# substitutes the proper values into config.h.in to produce config.h.
7182
rm -f conftest.defines conftest.tail
7183
# First, append a space to every undef/define line, to ease matching.
7184
echo 's/$/ /' >conftest.defines
7185
# Then, protect against being on the right side of a sed subst, or in
7186
# an unquoted here document, in config.status. If some macros were
7187
# called several times there might be several #defines for the same
7188
# symbol, which is useless. But do not sort them, since the last
7189
# AC_DEFINE must be honored.
7190
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7191
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7192
# NAME is the cpp macro being defined, VALUE is the value it is being given.
7193
# PARAMS is the parameter list in the macro definition--in most cases, it's
7194
# just an empty string.
7195
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7196
ac_dB='\\)[ (].*,\\1define\\2'
6602
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6603
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6604
ac_uB='$,\1#\2define\3'
6608
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6609
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6611
- | *:- | *:-:* ) # input from stdin
6613
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6614
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6615
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6616
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6617
* ) ac_file_in=$ac_file.in ;;
6620
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6621
echo "$as_me: creating $ac_file" >&6;}
6623
# First look for the input files in the build tree, otherwise in the
6625
ac_file_inputs=`IFS=:
6626
for f in $ac_file_in; do
6628
-) echo $tmp/stdin ;;
6630
# Absolute (can't be DOS-style, as IFS=:)
6631
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6632
echo "$as_me: error: cannot find input file: $f" >&2;}
6633
{ (exit 1); exit 1; }; }
6634
# Do quote $f, to prevent DOS paths from being IFS'd.
6637
if test -f "$f"; then
6640
elif test -f "$srcdir/$f"; then
6645
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6646
echo "$as_me: error: cannot find input file: $f" >&2;}
6647
{ (exit 1); exit 1; }; }
6650
done` || { (exit 1); exit 1; }
6651
# Remove the trailing spaces.
6652
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6656
# Transform confdefs.h into two sed scripts, `conftest.defines' and
6657
# `conftest.undefs', that substitutes the proper values into
6658
# config.h.in to produce config.h. The first handles `#define'
6659
# templates, and the second `#undef' templates.
6660
# And first: Protect against being on the right side of a sed subst in
6661
# config.status. Protect against being in an unquoted here document
6663
rm -f conftest.defines conftest.undefs
6664
# Using a here document instead of a string reduces the quoting nightmare.
6665
# Putting comments in sed scripts is not portable.
6667
# `end' is used to avoid that the second main sed command (meant for
6668
# 0-ary CPP macros) applies to n-ary macro definitions.
6669
# See the Autoconf documentation for `clear'.
6670
cat >confdef2sed.sed <<\_ACEOF
6675
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6677
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6680
# If some macros were called several times there might be several times
6681
# the same #defines, which is useless. Nevertheless, we may not want to
6682
# sort them, since we want the *last* AC-DEFINE to be honored.
6683
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6684
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6685
rm -f confdef2sed.sed
6687
# This sed command replaces #undef with comments. This is necessary, for
7204
s/^[ ]*#[ ]*define[ ][ ]*//
7209
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7210
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7211
' >>conftest.defines
7213
# Remove the space that was appended to ease matching.
7214
# Then replace #undef with comments. This is necessary, for
6688
7215
# example, in the case of _POSIX_SOURCE, which is predefined and required
6689
7216
# on some systems where configure will not decide to define it.
6690
cat >>conftest.undefs <<\_ACEOF
6691
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7217
# (The regexp can be short, since the line contains either #define or #undef.)
7219
s,^[ #]*u.*,/* & */,' >>conftest.defines
7221
# Break up conftest.defines:
7224
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7225
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7226
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7228
ac_in='$ac_file_inputs'
7229
ac_out='"$tmp/out1"'
7230
ac_nxt='"$tmp/out2"'
7234
# Write a here document:
7235
cat >>$CONFIG_STATUS <<_ACEOF
7236
# First, check the format of the line:
7237
cat >"\$tmp/defines.sed" <<\\CEOF
7238
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7239
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6694
# Break up conftest.defines because some shells have a limit on the size
6695
# of here documents, and old seds have small limits too (100 cmds).
6696
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6697
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6698
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6699
echo ' :' >>$CONFIG_STATUS
6701
while grep . conftest.defines >/dev/null
6703
# Write a limited-size here document to $tmp/defines.sed.
6704
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6705
# Speed up: don't consider the non `#define' lines.
6706
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6707
# Work around the forget-to-reset-the-flag bug.
6708
echo 't clr' >>$CONFIG_STATUS
6709
echo ': clr' >>$CONFIG_STATUS
6710
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7243
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6712
sed -f $tmp/defines.sed $tmp/in >$tmp/out
6716
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7245
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7246
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7247
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7248
grep . conftest.tail >/dev/null || break
6717
7249
rm -f conftest.defines
6718
7250
mv conftest.tail conftest.defines
6720
rm -f conftest.defines
6721
echo ' fi # grep' >>$CONFIG_STATUS
6722
echo >>$CONFIG_STATUS
6724
# Break up conftest.undefs because some shells have a limit on the size
6725
# of here documents, and old seds have small limits too (100 cmds).
6726
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6728
while grep . conftest.undefs >/dev/null
6730
# Write a limited-size here document to $tmp/undefs.sed.
6731
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6732
# Speed up: don't consider the non `#undef'
6733
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6734
# Work around the forget-to-reset-the-flag bug.
6735
echo 't clr' >>$CONFIG_STATUS
6736
echo ': clr' >>$CONFIG_STATUS
6737
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6739
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6743
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6744
rm -f conftest.undefs
6745
mv conftest.tail conftest.undefs
6747
rm -f conftest.undefs
7252
rm -f conftest.defines conftest.tail
7254
echo "ac_result=$ac_in" >>$CONFIG_STATUS
6749
7255
cat >>$CONFIG_STATUS <<\_ACEOF
6750
# Let's still pretend it is `configure' which instantiates (i.e., don't
6751
# use $as_me), people would be surprised to read:
6752
# /* config.h. Generated by config.status. */
6753
if test x"$ac_file" = x-; then
6754
echo "/* Generated by configure. */" >$tmp/config.h
6756
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6758
cat $tmp/in >>$tmp/config.h
6760
7256
if test x"$ac_file" != x-; then
6761
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7257
echo "/* $configure_input */" >"$tmp/config.h"
7258
cat "$ac_result" >>"$tmp/config.h"
7259
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6762
7260
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6763
7261
echo "$as_me: $ac_file is unchanged" >&6;}
6765
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6766
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6767
X"$ac_file" : 'X\(//\)[^/]' \| \
6768
X"$ac_file" : 'X\(//\)$' \| \
6769
X"$ac_file" : 'X\(/\)' \| \
6770
. : '\(.\)' 2>/dev/null ||
6772
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6773
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6774
/^X\(\/\/\)$/{ s//\1/; q; }
6775
/^X\(\/\).*/{ s//\1/; q; }
6777
{ if $as_mkdir_p; then
6782
while test ! -d "$as_dir"; do
6783
as_dirs="$as_dir $as_dirs"
6784
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6785
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6786
X"$as_dir" : 'X\(//\)[^/]' \| \
6787
X"$as_dir" : 'X\(//\)$' \| \
6788
X"$as_dir" : 'X\(/\)' \| \
6789
. : '\(.\)' 2>/dev/null ||
6791
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6792
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6793
/^X\(\/\/\)$/{ s//\1/; q; }
6794
/^X\(\/\).*/{ s//\1/; q; }
6797
test ! -n "$as_dirs" || mkdir $as_dirs
6798
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6799
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6800
{ (exit 1); exit 1; }; }; }
6803
mv $tmp/config.h $ac_file
7264
mv "$tmp/config.h" $ac_file
7267
echo "/* $configure_input */"
6812
cat >>$CONFIG_STATUS <<\_ACEOF
6814
7279
{ (exit 0); exit 0; }