65
126
# Name of the executable.
66
as_me=`$as_basename "$0" ||
127
as_me=`$as_basename -- "$0" ||
67
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
129
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
130
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
132
sed '/^.*\/\([^/][^/]*\)\/*$/{
150
if test "x$CONFIG_SHELL" = x; then
151
if (eval ":") 2>/dev/null; then
157
if test $as_have_required = yes && (eval ":
167
as_func_ret_success () {
170
as_func_ret_failure () {
175
if as_func_success; then
179
echo as_func_success failed.
182
if as_func_failure; then
184
echo as_func_failure succeeded.
187
if as_func_ret_success; then
191
echo as_func_ret_success failed.
194
if as_func_ret_failure; then
196
echo as_func_ret_failure succeeded.
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203
echo positional parameters were not saved.
206
test \$exitcode = 0) || { (exit 1); exit 1; }
211
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213
") 2> /dev/null; then
130
217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
221
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
224
for as_base in sh bash ksh sh5; do
225
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
for as_shell in $as_candidate_shells $SHELL; do
233
# Try only shells that exist, to save several forks.
234
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235
{ ("$as_shell") 2> /dev/null <<\_ASEOF
236
# Be Bourne compatible
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241
# is contrary to our usage. Disable this feature.
242
alias -g '${1+"$@"}'='"$@"'
245
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247
BIN_SH=xpg4; export BIN_SH # for Tru64
248
DUALCASE=1; export DUALCASE # for MKS sh
253
CONFIG_SHELL=$as_shell
255
if { "$as_shell" 2> /dev/null <<\_ASEOF
256
# Be Bourne compatible
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261
# is contrary to our usage. Disable this feature.
262
alias -g '${1+"$@"}'='"$@"'
265
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267
BIN_SH=xpg4; export BIN_SH # for Tru64
268
DUALCASE=1; export DUALCASE # for MKS sh
280
as_func_ret_success () {
283
as_func_ret_failure () {
288
if as_func_success; then
292
echo as_func_success failed.
295
if as_func_failure; then
297
echo as_func_failure succeeded.
300
if as_func_ret_success; then
304
echo as_func_ret_success failed.
307
if as_func_ret_failure; then
309
echo as_func_ret_failure succeeded.
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
316
echo positional parameters were not saved.
319
test $exitcode = 0) || { (exit 1); exit 1; }
324
test "x$as_lineno_1" != "x$as_lineno_2" &&
325
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
if test "x$CONFIG_SHELL" != x; then
337
for as_var in BASH_ENV ENV
338
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345
if test $as_have_required = no; then
346
echo This script requires a shell more modern than all the
347
echo shells that I found on your system. Please install a
348
echo modern shell, or manually run the script under such a
349
echo shell if you do have one.
350
{ (exit 1); exit 1; }
360
(eval "as_func_return () {
369
as_func_ret_success () {
372
as_func_ret_failure () {
377
if as_func_success; then
381
echo as_func_success failed.
384
if as_func_failure; then
386
echo as_func_failure succeeded.
389
if as_func_ret_success; then
393
echo as_func_ret_success failed.
396
if as_func_ret_failure; then
398
echo as_func_ret_failure succeeded.
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405
echo positional parameters were not saved.
408
test \$exitcode = 0") || {
409
echo No shell found that supports shell functions.
410
echo Please tell autoconf@gnu.org about your system,
411
echo including any error possibly output before this
419
test "x$as_lineno_1" != "x$as_lineno_2" &&
420
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
156
422
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
423
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
424
# line-number line after each line using $LINENO; the second 'sed'
425
# does the real work. The second script uses 'N' to pair each
426
# line-number line with the line containing $LINENO, and appends
427
# trailing '-' during substitution so that $LINENO is not a special
162
429
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
430
# scripts with optimization help from Paolo Bonzini. Blame Lee
431
# E. McMahon (1931-1989) for sed's syntax. :-)
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
443
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
s,^['$as_cr_digits']*\n,,
173
446
' >$as_me.lineno &&
174
chmod +x $as_me.lineno ||
447
chmod +x "$as_me.lineno" ||
175
448
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
449
{ (exit 1); exit 1; }; }
178
451
# Don't try to exec as it changes $[0], causing all sort of problems
179
452
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
453
# original and so on. Autoconf is especially sensitive to this).
182
455
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
460
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466
ECHO_C= ECHO_N= ECHO_T=
470
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
194
if expr a : '\(a\)' >/dev/null 2>&1; then
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
478
test "X`expr 00001 : '.*\(...\)'`" = X001; then
200
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
201
491
echo >conf$$.file
202
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
211
500
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
rmdir conf$$.dir 2>/dev/null
218
508
if mkdir -p . 2>/dev/null; then
786
1188
if test "$ac_init_help" = "recursive"; then
787
1189
# If there are subdirs, report their specific --help.
789
1190
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
790
test -d $ac_dir || continue
1191
test -d "$ac_dir" || continue
793
if test "$ac_dir" != .; then
1195
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
794
1197
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
795
# A "../" for each directory in $ac_dir_suffix.
796
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
798
ac_dir_suffix= ac_top_builddir=
1198
# A ".." for each directory in $ac_dir_suffix.
1199
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1200
case $ac_top_builddir_sub in
1201
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1202
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1205
ac_abs_top_builddir=$ac_pwd
1206
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1207
# for backward compatibility:
1208
ac_top_builddir=$ac_top_build_prefix
802
.) # No --srcdir option. We are building in place.
1211
.) # We are building in place.
804
if test -z "$ac_top_builddir"; then
807
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
809
[\\/]* | ?:[\\/]* ) # Absolute path.
1213
ac_top_srcdir=$ac_top_builddir_sub
1214
ac_abs_top_srcdir=$ac_pwd ;;
1215
[\\/]* | ?:[\\/]* ) # Absolute name.
810
1216
ac_srcdir=$srcdir$ac_dir_suffix;
811
ac_top_srcdir=$srcdir ;;
813
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
814
ac_top_srcdir=$ac_top_builddir$srcdir ;;
817
# Do not use `cd foo && pwd` to compute absolute paths, because
818
# the directories may not exist.
820
.) ac_abs_builddir="$ac_dir";;
823
.) ac_abs_builddir=`pwd`;;
824
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
825
*) ac_abs_builddir=`pwd`/"$ac_dir";;
828
case $ac_abs_builddir in
829
.) ac_abs_top_builddir=${ac_top_builddir}.;;
831
case ${ac_top_builddir}. in
832
.) ac_abs_top_builddir=$ac_abs_builddir;;
833
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
834
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
837
case $ac_abs_builddir in
838
.) ac_abs_srcdir=$ac_srcdir;;
841
.) ac_abs_srcdir=$ac_abs_builddir;;
842
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
843
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
846
case $ac_abs_builddir in
847
.) ac_abs_top_srcdir=$ac_top_srcdir;;
849
case $ac_top_srcdir in
850
.) ac_abs_top_srcdir=$ac_abs_builddir;;
851
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
852
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
857
# Check for guested configure; otherwise get Cygnus style configure.
858
if test -f $ac_srcdir/configure.gnu; then
860
$SHELL $ac_srcdir/configure.gnu --help=recursive
861
elif test -f $ac_srcdir/configure; then
863
$SHELL $ac_srcdir/configure --help=recursive
864
elif test -f $ac_srcdir/configure.ac ||
865
test -f $ac_srcdir/configure.in; then
1217
ac_top_srcdir=$srcdir
1218
ac_abs_top_srcdir=$srcdir ;;
1220
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1221
ac_top_srcdir=$ac_top_build_prefix$srcdir
1222
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1224
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1226
cd "$ac_dir" || { ac_status=$?; continue; }
1227
# Check for guested configure.
1228
if test -f "$ac_srcdir/configure.gnu"; then
1230
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1231
elif test -f "$ac_srcdir/configure"; then
1233
$SHELL "$ac_srcdir/configure" --help=recursive
869
1235
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1237
cd "$ac_pwd" || { ac_status=$?; break; }
875
test -n "$ac_init_help" && exit 0
1241
test -n "$ac_init_help" && exit $ac_status
876
1242
if $ac_init_version; then
1245
generated by GNU Autoconf 2.60a
879
Copyright (C) 2003 Free Software Foundation, Inc.
1247
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1248
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
880
1249
This configure script is free software; the Free Software Foundation
881
1250
gives unlimited permission to copy, distribute and modify it.
1254
cat >config.log <<_ACEOF
887
1255
This file contains any messages produced by compilers while
888
1256
running configure, to aid debugging if configure makes a mistake.
890
1258
It was created by $as_me, which was
891
generated by GNU Autoconf 2.59. Invocation command line was
1259
generated by GNU Autoconf 2.60a. Invocation command line was
1402
1853
# Name of the executable.
1403
as_me=`$as_basename "$0" ||
1854
as_me=`$as_basename -- "$0" ||
1404
1855
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1405
1856
X"$0" : 'X\(//\)$' \| \
1406
X"$0" : 'X\(/\)$' \| \
1407
. : '\(.\)' 2>/dev/null ||
1857
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1409
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1410
/^X\/\(\/\/\)$/{ s//\1/; q; }
1411
/^X\/\(\/\).*/{ s//\1/; q; }
1415
# PATH needs CR, and LINENO needs CR and PATH.
1416
# Avoid depending upon Character Ranges.
1417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1420
as_cr_digits='0123456789'
1421
as_cr_alnum=$as_cr_Letters$as_cr_digits
1423
# The user is always right.
1424
if test "${PATH_SEPARATOR+set}" != set; then
1425
echo "#! /bin/sh" >conf$$.sh
1426
echo "exit 0" >>conf$$.sh
1428
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1439
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1440
test "x$as_lineno_1" != "x$as_lineno_2" &&
1441
test "x$as_lineno_3" = "x$as_lineno_2" || {
1442
# Find who we are. Look in the path if we contain no path at all
1445
*[\\/]* ) as_myself=$0 ;;
1446
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450
test -z "$as_dir" && as_dir=.
1451
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1456
# We did not find ourselves, most probably we were run as `sh COMMAND'
1457
# in which case we are not to be found in the path.
1458
if test "x$as_myself" = x; then
1461
if test ! -f "$as_myself"; then
1462
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
1463
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
1464
{ (exit 1); exit 1; }; }
1466
case $CONFIG_SHELL in
1468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1472
test -z "$as_dir" && as_dir=.
1473
for as_base in sh bash ksh sh5; do
1476
if ("$as_dir/$as_base" -c '
1479
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1480
test "x$as_lineno_1" != "x$as_lineno_2" &&
1481
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1482
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
1483
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1484
CONFIG_SHELL=$as_dir/$as_base
1486
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
1859
sed '/^.*\/\([^/][^/]*\)\/*$/{
1880
test "x$as_lineno_1" != "x$as_lineno_2" &&
1881
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1494
1883
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1495
1884
# uniformly replaced by the line number. The first 'sed' inserts a
1496
# line-number line before each line; the second 'sed' does the real
1497
# work. The second script uses 'N' to pair each line-number line
1498
# with the numbered line, and appends trailing '-' during
1499
# substitution so that $LINENO is not a special case at line end.
1885
# line-number line after each line using $LINENO; the second 'sed'
1886
# does the real work. The second script uses 'N' to pair each
1887
# line-number line with the line containing $LINENO, and appends
1888
# trailing '-' during substitution so that $LINENO is not a special
1500
1890
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1501
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1502
sed '=' <$as_myself |
1891
# scripts with optimization help from Paolo Bonzini. Blame Lee
1892
# E. McMahon (1931-1989) for sed's syntax. :-)
1507
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1904
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1510
s,^['$as_cr_digits']*\n,,
1511
1907
' >$as_me.lineno &&
1512
chmod +x $as_me.lineno ||
1513
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
1514
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1908
chmod +x "$as_me.lineno" ||
1909
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1515
1910
{ (exit 1); exit 1; }; }
1517
1912
# Don't try to exec as it changes $[0], causing all sort of problems
1518
1913
# (the dirname of $[0] is not the place where we might find the
1519
# original and so on. Autoconf is especially sensible to this).
1914
# original and so on. Autoconf is especially sensitive to this).
1521
1916
# Exit status is that of the last command.
1526
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1527
*c*,-n*) ECHO_N= ECHO_C='
1529
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1530
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1921
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1927
ECHO_C= ECHO_N= ECHO_T=
1930
case `echo 'x\c'` in
1931
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
1533
if expr a : '\(a\)' >/dev/null 2>&1; then
1938
if expr a : '\(a\)' >/dev/null 2>&1 &&
1939
test "X`expr 00001 : '.*\(...\)'`" = X001; then
1539
1945
rm -f conf$$ conf$$.exe conf$$.file
1946
if test -d conf$$.dir; then
1947
rm -f conf$$.dir/conf$$.file
1540
1952
echo >conf$$.file
1541
1953
if ln -s conf$$.file conf$$ 2>/dev/null; then
1542
# We could just check for DJGPP; but this test a) works b) is more generic
1543
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1544
if test -f conf$$.exe; then
1545
# Don't use ln at all; we don't have any links
1955
# ... but there are two gotchas:
1956
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1957
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1958
# In both cases, we have to default to `cp -p'.
1959
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1546
1960
as_ln_s='cp -p'
1550
1961
elif ln conf$$.file conf$$ 2>/dev/null; then
1553
1964
as_ln_s='cp -p'
1555
rm -f conf$$ conf$$.exe conf$$.file
1966
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1967
rmdir conf$$.dir 2>/dev/null
1557
1969
if mkdir -p . 2>/dev/null; then
1775
2178
# Have a temporary directory for convenience. Make it in the build tree
1776
# simply because there is no reason to put it here, and in addition,
2179
# simply because there is no reason against having it here, and in addition,
1777
2180
# creating and moving files from /tmp can sometimes cause problems.
1778
# Create a temporary directory, and hook for its removal unless debugging.
2181
# Hook for its removal unless debugging.
2182
# Note that there is a small window in which the directory will not be cleaned:
2183
# after its creation but before its name has been assigned to `$tmp'.
1781
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2187
trap 'exit_status=$?
2188
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
1782
2190
trap '{ (exit 1); exit 1; }' 1 2 13 15
1785
2192
# Create a (secure) tmp directory for tmp files.
1788
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2195
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1789
2196
test -n "$tmp" && test -d "$tmp"
1792
tmp=./confstat$$-$RANDOM
1793
(umask 077 && mkdir $tmp)
2199
tmp=./conf$$-$RANDOM
2200
(umask 077 && mkdir "$tmp")
1796
2203
echo "$me: cannot create a temporary directory in ." >&2
1797
2204
{ (exit 1); exit 1; }
1802
cat >>$CONFIG_STATUS <<_ACEOF
1805
# CONFIG_FILES section.
2208
# Set up the sed scripts for CONFIG_FILES section.
1808
2211
# No need to generate the scripts if there are no CONFIG_FILES.
1809
2212
# This happens for instance when ./config.status config.h
1810
if test -n "\$CONFIG_FILES"; then
1811
# Protect against being on the right side of a sed subst in config.status.
1812
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1813
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1814
s,@SHELL@,$SHELL,;t t
1815
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1816
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1817
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1818
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1819
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1820
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1821
s,@exec_prefix@,$exec_prefix,;t t
1822
s,@prefix@,$prefix,;t t
1823
s,@program_transform_name@,$program_transform_name,;t t
1824
s,@bindir@,$bindir,;t t
1825
s,@sbindir@,$sbindir,;t t
1826
s,@libexecdir@,$libexecdir,;t t
1827
s,@datadir@,$datadir,;t t
1828
s,@sysconfdir@,$sysconfdir,;t t
1829
s,@sharedstatedir@,$sharedstatedir,;t t
1830
s,@localstatedir@,$localstatedir,;t t
1831
s,@libdir@,$libdir,;t t
1832
s,@includedir@,$includedir,;t t
1833
s,@oldincludedir@,$oldincludedir,;t t
1834
s,@infodir@,$infodir,;t t
1835
s,@mandir@,$mandir,;t t
1836
s,@build_alias@,$build_alias,;t t
1837
s,@host_alias@,$host_alias,;t t
1838
s,@target_alias@,$target_alias,;t t
1840
s,@ECHO_C@,$ECHO_C,;t t
1841
s,@ECHO_N@,$ECHO_N,;t t
1842
s,@ECHO_T@,$ECHO_T,;t t
1844
s,@XML_CFLAGS@,$XML_CFLAGS,;t t
1845
s,@PIKE_INCLUDE_PREFIX@,$PIKE_INCLUDE_PREFIX,;t t
1847
s,@PIKE_VERSION@,$PIKE_VERSION,;t t
1848
s,@installprg@,$installprg,;t t
1849
s,@LIBXML2_INCLUDE@,$LIBXML2_INCLUDE,;t t
1850
s,@LIBXSL_INCLUDE@,$LIBXSL_INCLUDE,;t t
1851
s,@LIBDIR@,$LIBDIR,;t t
1852
s,@CFLAGS@,$CFLAGS,;t t
1853
s,@LDSHARED@,$LDSHARED,;t t
1854
s,@LDFLAGS@,$LDFLAGS,;t t
1855
s,@LIBOBJS@,$LIBOBJS,;t t
1856
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1861
cat >>$CONFIG_STATUS <<\_ACEOF
1862
# Split the substitutions into bite-sized pieces for seds with
1863
# small command number limits, like on Digital OSF/1 and HP-UX.
1865
ac_sed_frag=1 # Number of current file.
1866
ac_beg=1 # First line for current file.
1867
ac_end=$ac_max_sed_lines # Line after last line for current file.
1870
while $ac_more_lines; do
1871
if test $ac_beg -gt 1; then
1872
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1874
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1876
if test ! -s $tmp/subs.frag; then
1879
# The purpose of the label and of the branching condition is to
1880
# speed up the sed processing (if there are no `@' at all, there
1881
# is no need to browse any of the substitutions).
1882
# These are the two extra sed commands mentioned above.
1884
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1885
if test -z "$ac_sed_cmds"; then
1886
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1888
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1890
ac_sed_frag=`expr $ac_sed_frag + 1`
1892
ac_end=`expr $ac_end + $ac_max_sed_lines`
1895
if test -z "$ac_sed_cmds"; then
2213
if test -n "$CONFIG_FILES"; then
2220
for ac_last_try in false false false false false :; do
2221
cat >conf$$subs.sed <<_ACEOF
2222
SHELL!$SHELL$ac_delim
2223
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
2224
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
2225
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
2226
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
2227
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
2228
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
2229
exec_prefix!$exec_prefix$ac_delim
2230
prefix!$prefix$ac_delim
2231
program_transform_name!$program_transform_name$ac_delim
2232
bindir!$bindir$ac_delim
2233
sbindir!$sbindir$ac_delim
2234
libexecdir!$libexecdir$ac_delim
2235
datarootdir!$datarootdir$ac_delim
2236
datadir!$datadir$ac_delim
2237
sysconfdir!$sysconfdir$ac_delim
2238
sharedstatedir!$sharedstatedir$ac_delim
2239
localstatedir!$localstatedir$ac_delim
2240
includedir!$includedir$ac_delim
2241
oldincludedir!$oldincludedir$ac_delim
2242
docdir!$docdir$ac_delim
2243
infodir!$infodir$ac_delim
2244
htmldir!$htmldir$ac_delim
2245
dvidir!$dvidir$ac_delim
2246
pdfdir!$pdfdir$ac_delim
2247
psdir!$psdir$ac_delim
2248
libdir!$libdir$ac_delim
2249
localedir!$localedir$ac_delim
2250
mandir!$mandir$ac_delim
2252
ECHO_C!$ECHO_C$ac_delim
2253
ECHO_N!$ECHO_N$ac_delim
2254
ECHO_T!$ECHO_T$ac_delim
2256
build_alias!$build_alias$ac_delim
2257
host_alias!$host_alias$ac_delim
2258
target_alias!$target_alias$ac_delim
2259
XML_CFLAGS!$XML_CFLAGS$ac_delim
2260
PIKE_INCLUDE_PREFIX!$PIKE_INCLUDE_PREFIX$ac_delim
2262
PIKE_VERSION!$PIKE_VERSION$ac_delim
2263
installprg!$installprg$ac_delim
2264
LIBXML2_INCLUDE!$LIBXML2_INCLUDE$ac_delim
2265
LIBXSL_INCLUDE!$LIBXSL_INCLUDE$ac_delim
2266
LIBDIR!$LIBDIR$ac_delim
2267
CFLAGS!$CFLAGS$ac_delim
2268
LDSHARED!$LDSHARED$ac_delim
2269
LDFLAGS!$LDFLAGS$ac_delim
2270
LIBOBJS!$LIBOBJS$ac_delim
2271
LTLIBOBJS!$LTLIBOBJS$ac_delim
2274
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
2276
elif $ac_last_try; then
2277
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2278
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2279
{ (exit 1); exit 1; }; }
2281
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2285
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
2286
if test -n "$ac_eof"; then
2287
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
2288
ac_eof=`expr $ac_eof + 1`
2291
cat >>$CONFIG_STATUS <<_ACEOF
2292
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
2293
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
2296
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
2297
s/^/s,@/; s/!/@,|#_!!_#|/
2300
s/'"$ac_delim"'$/,g/; t
2302
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
2303
' >>$CONFIG_STATUS <conf$$subs.sed
2304
rm -f conf$$subs.sed
2305
cat >>$CONFIG_STATUS <<_ACEOF
2312
# VPATH may cause trouble with some makes, so we remove $(srcdir),
2313
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2314
# trailing colons and then remove the whole line if VPATH becomes empty
2315
# (actually we leave an empty line to preserve line numbers).
2316
if test "x$srcdir" = x.; then
2317
ac_vpsub='/^[ ]*VPATH[ ]*=/{
2321
s/^\([^=]*=[ ]*\):*/\1/
2327
cat >>$CONFIG_STATUS <<\_ACEOF
1898
2328
fi # test -n "$CONFIG_FILES"
1901
cat >>$CONFIG_STATUS <<\_ACEOF
1902
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1903
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1905
- | *:- | *:-:* ) # input from stdin
1907
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1908
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1909
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1910
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1911
* ) ac_file_in=$ac_file.in ;;
1914
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1915
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2331
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
2334
:[FHLC]) ac_mode=$ac_tag; continue;;
2336
case $ac_mode$ac_tag in
2338
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
2339
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
2340
{ (exit 1); exit 1; }; };;
2341
:[FH]-) ac_tag=-:-;;
2342
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2359
-) ac_f="$tmp/stdin";;
2360
*) # Look for the file first in the build tree, then in the source tree
2361
# (if the path is not absolute). The absolute path cannot be DOS-style,
2362
# because $ac_f cannot contain `:'.
2366
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2368
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
2369
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2370
{ (exit 1); exit 1; }; };;
2372
ac_file_inputs="$ac_file_inputs $ac_f"
2375
# Let's still pretend it is `configure' which instantiates (i.e., don't
2376
# use $as_me), people would be surprised to read:
2377
# /* config.h. Generated by config.status. */
2378
configure_input="Generated from "`IFS=:
2379
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
2380
if test x"$ac_file" != x-; then
2381
configure_input="$ac_file. $configure_input"
2382
{ echo "$as_me:$LINENO: creating $ac_file" >&5
2383
echo "$as_me: creating $ac_file" >&6;}
2387
*:-:* | *:-) cat >"$tmp/stdin";;
2392
ac_dir=`$as_dirname -- "$ac_file" ||
1916
2393
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1917
2394
X"$ac_file" : 'X\(//\)[^/]' \| \
1918
2395
X"$ac_file" : 'X\(//\)$' \| \
1919
X"$ac_file" : 'X\(/\)' \| \
1920
. : '\(.\)' 2>/dev/null ||
2396
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1921
2397
echo X"$ac_file" |
1922
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1923
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1924
/^X\(\/\/\)$/{ s//\1/; q; }
1925
/^X\(\/\).*/{ s//\1/; q; }
1927
{ if $as_mkdir_p; then
2398
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2417
-*) as_dir=./$as_dir;;
2419
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1932
while test ! -d "$as_dir"; do
1933
as_dirs="$as_dir $as_dirs"
1934
as_dir=`(dirname "$as_dir") 2>/dev/null ||
2423
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
2424
*) as_qdir=$as_dir;;
2426
as_dirs="'$as_qdir' $as_dirs"
2427
as_dir=`$as_dirname -- "$as_dir" ||
1935
2428
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1936
2429
X"$as_dir" : 'X\(//\)[^/]' \| \
1937
2430
X"$as_dir" : 'X\(//\)$' \| \
1938
X"$as_dir" : 'X\(/\)' \| \
1939
. : '\(.\)' 2>/dev/null ||
2431
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1940
2432
echo X"$as_dir" |
1941
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1942
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1943
/^X\(\/\/\)$/{ s//\1/; q; }
1944
/^X\(\/\).*/{ s//\1/; q; }
2433
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2450
test -d "$as_dir" && break
1947
test ! -n "$as_dirs" || mkdir $as_dirs
1948
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
1949
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2452
test -z "$as_dirs" || eval "mkdir $as_dirs"
2453
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2454
echo "$as_me: error: cannot create directory $as_dir" >&2;}
1950
2455
{ (exit 1); exit 1; }; }; }
1954
if test "$ac_dir" != .; then
2459
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955
2461
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1956
# A "../" for each directory in $ac_dir_suffix.
1957
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1959
ac_dir_suffix= ac_top_builddir=
2462
# A ".." for each directory in $ac_dir_suffix.
2463
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2464
case $ac_top_builddir_sub in
2465
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2466
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2469
ac_abs_top_builddir=$ac_pwd
2470
ac_abs_builddir=$ac_pwd$ac_dir_suffix
2471
# for backward compatibility:
2472
ac_top_builddir=$ac_top_build_prefix
1962
2474
case $srcdir in
1963
.) # No --srcdir option. We are building in place.
2475
.) # We are building in place.
1965
if test -z "$ac_top_builddir"; then
1968
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1970
[\\/]* | ?:[\\/]* ) # Absolute path.
2477
ac_top_srcdir=$ac_top_builddir_sub
2478
ac_abs_top_srcdir=$ac_pwd ;;
2479
[\\/]* | ?:[\\/]* ) # Absolute name.
1971
2480
ac_srcdir=$srcdir$ac_dir_suffix;
1972
ac_top_srcdir=$srcdir ;;
1974
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1975
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1978
# Do not use `cd foo && pwd` to compute absolute paths, because
1979
# the directories may not exist.
1981
.) ac_abs_builddir="$ac_dir";;
1984
.) ac_abs_builddir=`pwd`;;
1985
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1986
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1989
case $ac_abs_builddir in
1990
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1992
case ${ac_top_builddir}. in
1993
.) ac_abs_top_builddir=$ac_abs_builddir;;
1994
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1995
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1998
case $ac_abs_builddir in
1999
.) ac_abs_srcdir=$ac_srcdir;;
2002
.) ac_abs_srcdir=$ac_abs_builddir;;
2003
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2004
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2007
case $ac_abs_builddir in
2008
.) ac_abs_top_srcdir=$ac_top_srcdir;;
2010
case $ac_top_srcdir in
2011
.) ac_abs_top_srcdir=$ac_abs_builddir;;
2012
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2013
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2019
# Let's still pretend it is `configure' which instantiates (i.e., don't
2020
# use $as_me), people would be surprised to read:
2021
# /* config.h. Generated by config.status. */
2022
if test x"$ac_file" = x-; then
2025
configure_input="$ac_file. "
2027
configure_input=$configure_input"Generated from `echo $ac_file_in |
2028
sed 's,.*/,,'` by configure."
2030
# First look for the input files in the build tree, otherwise in the
2032
ac_file_inputs=`IFS=:
2033
for f in $ac_file_in; do
2035
-) echo $tmp/stdin ;;
2037
# Absolute (can't be DOS-style, as IFS=:)
2038
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2039
echo "$as_me: error: cannot find input file: $f" >&2;}
2040
{ (exit 1); exit 1; }; }
2043
if test -f "$f"; then
2046
elif test -f "$srcdir/$f"; then
2051
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2052
echo "$as_me: error: cannot find input file: $f" >&2;}
2053
{ (exit 1); exit 1; }; }
2056
done` || { (exit 1); exit 1; }
2058
if test x"$ac_file" != x-; then
2059
{ echo "$as_me:$LINENO: creating $ac_file" >&5
2060
echo "$as_me: creating $ac_file" >&6;}
2481
ac_top_srcdir=$srcdir
2482
ac_abs_top_srcdir=$srcdir ;;
2484
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2485
ac_top_srcdir=$ac_top_build_prefix$srcdir
2486
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2488
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2499
cat >>$CONFIG_STATUS <<\_ACEOF
2500
# If the template does not know about datarootdir, expand it.
2501
# FIXME: This hack should be removed a few years after 2.60.
2502
ac_datarootdir_hack=; ac_datarootdir_seen=
2504
case `sed -n '/datarootdir/ {
2513
' $ac_file_inputs` in
2514
*datarootdir*) ac_datarootdir_seen=yes;;
2515
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2516
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
2517
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2519
cat >>$CONFIG_STATUS <<_ACEOF
2520
ac_datarootdir_hack='
2521
s&@datadir@&$datadir&g
2522
s&@docdir@&$docdir&g
2523
s&@infodir@&$infodir&g
2524
s&@localedir@&$localedir&g
2525
s&@mandir@&$mandir&g
2526
s&\\\${datarootdir}&$datarootdir&g' ;;
2530
# Neutralize VPATH when `$srcdir' = `.'.
2531
# Shell code in configure.ac might set extrasub.
2532
# FIXME: do we really want to maintain this feature?
2064
2533
cat >>$CONFIG_STATUS <<_ACEOF
2068
2537
cat >>$CONFIG_STATUS <<\_ACEOF
2070
2539
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2071
s,@configure_input@,$configure_input,;t t
2072
s,@srcdir@,$ac_srcdir,;t t
2073
s,@abs_srcdir@,$ac_abs_srcdir,;t t
2074
s,@top_srcdir@,$ac_top_srcdir,;t t
2075
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2076
s,@builddir@,$ac_builddir,;t t
2077
s,@abs_builddir@,$ac_abs_builddir,;t t
2078
s,@top_builddir@,$ac_top_builddir,;t t
2079
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2080
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2082
if test x"$ac_file" != x-; then
2083
mv $tmp/out $ac_file
2540
s&@configure_input@&$configure_input&;t t
2541
s&@top_builddir@&$ac_top_builddir_sub&;t t
2542
s&@srcdir@&$ac_srcdir&;t t
2543
s&@abs_srcdir@&$ac_abs_srcdir&;t t
2544
s&@top_srcdir@&$ac_top_srcdir&;t t
2545
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
2546
s&@builddir@&$ac_builddir&;t t
2547
s&@abs_builddir@&$ac_abs_builddir&;t t
2548
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2549
$ac_datarootdir_hack
2550
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
2552
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2553
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
2554
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
2555
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2556
which seems to be undefined. Please make sure it is defined." >&5
2557
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2558
which seems to be undefined. Please make sure it is defined." >&2;}
2562
-) cat "$tmp/out"; rm -f "$tmp/out";;
2563
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
2091
cat >>$CONFIG_STATUS <<\_ACEOF
2094
# CONFIG_HEADER section.
2097
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2098
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2100
# ac_d sets the value in "#define NAME VALUE" lines.
2101
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2102
ac_dB='[ ].*$,\1#\2'
2572
# Transform confdefs.h into a sed script `conftest.defines', that
2573
# substitutes the proper values into config.h.in to produce config.h.
2574
rm -f conftest.defines conftest.tail
2575
# First, append a space to every undef/define line, to ease matching.
2576
echo 's/$/ /' >conftest.defines
2577
# Then, protect against being on the right side of a sed subst, or in
2578
# an unquoted here document, in config.status. If some macros were
2579
# called several times there might be several #defines for the same
2580
# symbol, which is useless. But do not sort them, since the last
2581
# AC_DEFINE must be honored.
2582
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
2583
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
2584
# NAME is the cpp macro being defined, VALUE is the value it is being given.
2585
# PARAMS is the parameter list in the macro definition--in most cases, it's
2586
# just an empty string.
2587
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
2588
ac_dB='\\)[ (].*,\\1define\\2'
2105
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2106
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2107
ac_uB='$,\1#\2define\3'
2111
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2112
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2114
- | *:- | *:-:* ) # input from stdin
2116
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2117
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2118
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2119
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2120
* ) ac_file_in=$ac_file.in ;;
2123
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
2124
echo "$as_me: creating $ac_file" >&6;}
2126
# First look for the input files in the build tree, otherwise in the
2128
ac_file_inputs=`IFS=:
2129
for f in $ac_file_in; do
2131
-) echo $tmp/stdin ;;
2133
# Absolute (can't be DOS-style, as IFS=:)
2134
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2135
echo "$as_me: error: cannot find input file: $f" >&2;}
2136
{ (exit 1); exit 1; }; }
2137
# Do quote $f, to prevent DOS paths from being IFS'd.
2140
if test -f "$f"; then
2143
elif test -f "$srcdir/$f"; then
2148
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2149
echo "$as_me: error: cannot find input file: $f" >&2;}
2150
{ (exit 1); exit 1; }; }
2153
done` || { (exit 1); exit 1; }
2154
# Remove the trailing spaces.
2155
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
2159
# Transform confdefs.h into two sed scripts, `conftest.defines' and
2160
# `conftest.undefs', that substitutes the proper values into
2161
# config.h.in to produce config.h. The first handles `#define'
2162
# templates, and the second `#undef' templates.
2163
# And first: Protect against being on the right side of a sed subst in
2164
# config.status. Protect against being in an unquoted here document
2166
rm -f conftest.defines conftest.undefs
2167
# Using a here document instead of a string reduces the quoting nightmare.
2168
# Putting comments in sed scripts is not portable.
2170
# `end' is used to avoid that the second main sed command (meant for
2171
# 0-ary CPP macros) applies to n-ary macro definitions.
2172
# See the Autoconf documentation for `clear'.
2173
cat >confdef2sed.sed <<\_ACEOF
2178
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
2180
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
2183
# If some macros were called several times there might be several times
2184
# the same #defines, which is useless. Nevertheless, we may not want to
2185
# sort them, since we want the *last* AC-DEFINE to be honored.
2186
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
2187
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
2188
rm -f confdef2sed.sed
2190
# This sed command replaces #undef with comments. This is necessary, for
2596
s/^[ ]*#[ ]*define[ ][ ]*//
2601
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
2602
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
2603
' >>conftest.defines
2605
# Remove the space that was appended to ease matching.
2606
# Then replace #undef with comments. This is necessary, for
2191
2607
# example, in the case of _POSIX_SOURCE, which is predefined and required
2192
2608
# on some systems where configure will not decide to define it.
2193
cat >>conftest.undefs <<\_ACEOF
2194
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
2609
# (The regexp can be short, since the line contains either #define or #undef.)
2611
s,^[ #]*u.*,/* & */,' >>conftest.defines
2613
# Break up conftest.defines:
2616
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
2617
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
2618
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
2620
ac_in='$ac_file_inputs'
2621
ac_out='"$tmp/out1"'
2622
ac_nxt='"$tmp/out2"'
2626
# Write a here document:
2627
cat >>$CONFIG_STATUS <<_ACEOF
2628
# First, check the format of the line:
2629
cat >"\$tmp/defines.sed" <<\\CEOF
2630
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
2631
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
2197
# Break up conftest.defines because some shells have a limit on the size
2198
# of here documents, and old seds have small limits too (100 cmds).
2199
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
2200
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
2201
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
2202
echo ' :' >>$CONFIG_STATUS
2204
while grep . conftest.defines >/dev/null
2206
# Write a limited-size here document to $tmp/defines.sed.
2207
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
2208
# Speed up: don't consider the non `#define' lines.
2209
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
2210
# Work around the forget-to-reset-the-flag bug.
2211
echo 't clr' >>$CONFIG_STATUS
2212
echo ': clr' >>$CONFIG_STATUS
2213
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
2635
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
2215
sed -f $tmp/defines.sed $tmp/in >$tmp/out
2219
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
2637
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
2638
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
2639
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
2640
grep . conftest.tail >/dev/null || break
2220
2641
rm -f conftest.defines
2221
2642
mv conftest.tail conftest.defines
2223
rm -f conftest.defines
2224
echo ' fi # grep' >>$CONFIG_STATUS
2225
echo >>$CONFIG_STATUS
2227
# Break up conftest.undefs because some shells have a limit on the size
2228
# of here documents, and old seds have small limits too (100 cmds).
2229
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
2231
while grep . conftest.undefs >/dev/null
2233
# Write a limited-size here document to $tmp/undefs.sed.
2234
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
2235
# Speed up: don't consider the non `#undef'
2236
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
2237
# Work around the forget-to-reset-the-flag bug.
2238
echo 't clr' >>$CONFIG_STATUS
2239
echo ': clr' >>$CONFIG_STATUS
2240
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
2242
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
2246
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
2247
rm -f conftest.undefs
2248
mv conftest.tail conftest.undefs
2250
rm -f conftest.undefs
2644
rm -f conftest.defines conftest.tail
2646
echo "ac_result=$ac_in" >>$CONFIG_STATUS
2252
2647
cat >>$CONFIG_STATUS <<\_ACEOF
2253
# Let's still pretend it is `configure' which instantiates (i.e., don't
2254
# use $as_me), people would be surprised to read:
2255
# /* config.h. Generated by config.status. */
2256
if test x"$ac_file" = x-; then
2257
echo "/* Generated by configure. */" >$tmp/config.h
2259
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
2261
cat $tmp/in >>$tmp/config.h
2263
2648
if test x"$ac_file" != x-; then
2264
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
2649
echo "/* $configure_input */" >"$tmp/config.h"
2650
cat "$ac_result" >>"$tmp/config.h"
2651
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
2265
2652
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
2266
2653
echo "$as_me: $ac_file is unchanged" >&6;}
2268
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2269
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2270
X"$ac_file" : 'X\(//\)[^/]' \| \
2271
X"$ac_file" : 'X\(//\)$' \| \
2272
X"$ac_file" : 'X\(/\)' \| \
2273
. : '\(.\)' 2>/dev/null ||
2275
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2276
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
2277
/^X\(\/\/\)$/{ s//\1/; q; }
2278
/^X\(\/\).*/{ s//\1/; q; }
2280
{ if $as_mkdir_p; then
2285
while test ! -d "$as_dir"; do
2286
as_dirs="$as_dir $as_dirs"
2287
as_dir=`(dirname "$as_dir") 2>/dev/null ||
2288
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2289
X"$as_dir" : 'X\(//\)[^/]' \| \
2290
X"$as_dir" : 'X\(//\)$' \| \
2291
X"$as_dir" : 'X\(/\)' \| \
2292
. : '\(.\)' 2>/dev/null ||
2294
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2295
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
2296
/^X\(\/\/\)$/{ s//\1/; q; }
2297
/^X\(\/\).*/{ s//\1/; q; }
2300
test ! -n "$as_dirs" || mkdir $as_dirs
2301
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2302
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2303
{ (exit 1); exit 1; }; }; }
2306
mv $tmp/config.h $ac_file
2656
mv "$tmp/config.h" $ac_file
2659
echo "/* $configure_input */"
2315
cat >>$CONFIG_STATUS <<\_ACEOF
2317
2671
{ (exit 0); exit 0; }