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
1105
test "$silent" = yes && exec 6>/dev/null
1108
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1109
ac_ls_di=`ls -di .` &&
1110
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1111
{ echo "$as_me: error: Working directory cannot be determined" >&2
1112
{ (exit 1); exit 1; }; }
1113
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1114
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1115
{ (exit 1); exit 1; }; }
707
1118
# Find the source files, if location was not specified.
708
1119
if test -z "$srcdir"; then
709
1120
ac_srcdir_defaulted=yes
710
# Try the directory containing this script, then its parent.
711
ac_confdir=`(dirname "$0") 2>/dev/null ||
1121
# Try the directory containing this script, then the parent directory.
1122
ac_confdir=`$as_dirname -- "$0" ||
712
1123
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713
1124
X"$0" : 'X\(//\)[^/]' \| \
714
1125
X"$0" : 'X\(//\)$' \| \
715
X"$0" : 'X\(/\)' \| \
716
. : '\(.\)' 2>/dev/null ||
1126
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; }
1128
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
723
1145
srcdir=$ac_confdir
724
if test ! -r $srcdir/$ac_unique_file; then
1146
if test ! -r "$srcdir/$ac_unique_file"; then
728
1150
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
1152
if test ! -r "$srcdir/$ac_unique_file"; then
1153
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1154
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1155
{ (exit 1); exit 1; }; }
1157
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1159
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1160
{ (exit 1); exit 1; }; }
1162
# When building in place, set srcdir=.
1163
if test "$ac_abs_confdir" = "$ac_pwd"; then
1166
# Remove unnecessary trailing slashes from srcdir.
1167
# Double slashes in file names in object file debugging info
1168
# mess up M-x gdb in Emacs.
1170
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1172
for ac_var in $ac_precious_vars; do
1173
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1174
eval ac_env_${ac_var}_value=\$${ac_var}
1175
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1176
eval ac_cv_env_${ac_var}_value=\$${ac_var}
777
1180
# Report the --help message.
861
1269
Report bugs to <markus.mottl@gmail.com>.
865
1274
if test "$ac_init_help" = "recursive"; then
866
1275
# If there are subdirs, report their specific --help.
868
1276
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869
test -d $ac_dir || continue
1277
test -d "$ac_dir" || continue
872
if test "$ac_dir" != .; then
1281
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
873
1283
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874
# A "../" for each directory in $ac_dir_suffix.
875
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877
ac_dir_suffix= ac_top_builddir=
1284
# A ".." for each directory in $ac_dir_suffix.
1285
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1286
case $ac_top_builddir_sub in
1287
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1288
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1291
ac_abs_top_builddir=$ac_pwd
1292
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1293
# for backward compatibility:
1294
ac_top_builddir=$ac_top_build_prefix
881
.) # No --srcdir option. We are building in place.
1297
.) # We are building in place.
883
if test -z "$ac_top_builddir"; then
886
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888
[\\/]* | ?:[\\/]* ) # Absolute path.
1299
ac_top_srcdir=$ac_top_builddir_sub
1300
ac_abs_top_srcdir=$ac_pwd ;;
1301
[\\/]* | ?:[\\/]* ) # Absolute name.
889
1302
ac_srcdir=$srcdir$ac_dir_suffix;
890
ac_top_srcdir=$srcdir ;;
892
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893
ac_top_srcdir=$ac_top_builddir$srcdir ;;
896
# Do not use `cd foo && pwd` to compute absolute paths, because
897
# the directories may not exist.
899
.) ac_abs_builddir="$ac_dir";;
902
.) ac_abs_builddir=`pwd`;;
903
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904
*) ac_abs_builddir=`pwd`/"$ac_dir";;
907
case $ac_abs_builddir in
908
.) ac_abs_top_builddir=${ac_top_builddir}.;;
910
case ${ac_top_builddir}. in
911
.) ac_abs_top_builddir=$ac_abs_builddir;;
912
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916
case $ac_abs_builddir in
917
.) ac_abs_srcdir=$ac_srcdir;;
920
.) ac_abs_srcdir=$ac_abs_builddir;;
921
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925
case $ac_abs_builddir in
926
.) ac_abs_top_srcdir=$ac_top_srcdir;;
928
case $ac_top_srcdir in
929
.) ac_abs_top_srcdir=$ac_abs_builddir;;
930
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936
# Check for guested configure; otherwise get Cygnus style configure.
937
if test -f $ac_srcdir/configure.gnu; then
939
$SHELL $ac_srcdir/configure.gnu --help=recursive
940
elif test -f $ac_srcdir/configure; then
942
$SHELL $ac_srcdir/configure --help=recursive
943
elif test -f $ac_srcdir/configure.ac ||
944
test -f $ac_srcdir/configure.in; then
1303
ac_top_srcdir=$srcdir
1304
ac_abs_top_srcdir=$srcdir ;;
1306
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1307
ac_top_srcdir=$ac_top_build_prefix$srcdir
1308
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1310
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1312
cd "$ac_dir" || { ac_status=$?; continue; }
1313
# Check for guested configure.
1314
if test -f "$ac_srcdir/configure.gnu"; then
1316
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1317
elif test -f "$ac_srcdir/configure"; then
1319
$SHELL "$ac_srcdir/configure" --help=recursive
948
1321
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1323
cd "$ac_pwd" || { ac_status=$?; break; }
954
test -n "$ac_init_help" && exit 0
1327
test -n "$ac_init_help" && exit $ac_status
955
1328
if $ac_init_version; then
957
ocaml-sqlite configure 0.16.0
958
generated by GNU Autoconf 2.59
1330
ocaml-sqlite configure 0.23.0
1331
generated by GNU Autoconf 2.61
960
Copyright (C) 2003 Free Software Foundation, Inc.
1333
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1334
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
961
1335
This configure script is free software; the Free Software Foundation
962
1336
gives unlimited permission to copy, distribute and modify it.
1340
cat >config.log <<_ACEOF
968
1341
This file contains any messages produced by compilers while
969
1342
running configure, to aid debugging if configure makes a mistake.
971
It was created by ocaml-sqlite $as_me 0.16.0, which was
972
generated by GNU Autoconf 2.59. Invocation command line was
1344
It was created by ocaml-sqlite $as_me 0.23.0, which was
1345
generated by GNU Autoconf 2.61. Invocation command line was
2084
2540
rm -f conftest.$ac_objext
2085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086
(eval $ac_compile) 2>conftest.er1
2541
if { (ac_try="$ac_compile"
2543
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544
*) ac_try_echo=$ac_try;;
2546
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547
(eval "$ac_compile") 2>conftest.er1
2088
2549
grep -v '^ *+' conftest.er1 >conftest.err
2089
2550
rm -f conftest.er1
2090
2551
cat conftest.err >&5
2091
2552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092
(exit $ac_status); } &&
2093
{ ac_try='test -z "$ac_c_werror_flag"
2094
|| test ! -s conftest.err'
2095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099
(exit $ac_status); }; } &&
2100
{ ac_try='test -s conftest.$ac_objext'
2101
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105
(exit $ac_status); }; }; then
2553
(exit $ac_status); } && {
2554
test -z "$ac_c_werror_flag" ||
2555
test ! -s conftest.err
2556
} && test -s conftest.$ac_objext; then
2106
2557
ac_compiler_gnu=yes
2108
2559
echo "$as_me: failed program was:" >&5
2109
2560
sed 's/^/| /' conftest.$ac_ext >&5
2113
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114
2566
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2117
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2118
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2569
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2570
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2119
2571
GCC=`test $ac_compiler_gnu = yes && echo yes`
2120
2572
ac_test_CFLAGS=${CFLAGS+set}
2121
2573
ac_save_CFLAGS=$CFLAGS
2123
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2124
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2574
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2575
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2125
2576
if test "${ac_cv_prog_cc_g+set}" = set; then
2126
2577
echo $ECHO_N "(cached) $ECHO_C" >&6
2128
cat >conftest.$ac_ext <<_ACEOF
2131
cat confdefs.h >>conftest.$ac_ext
2132
cat >>conftest.$ac_ext <<_ACEOF
2133
/* end confdefs.h. */
2143
rm -f conftest.$ac_objext
2144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145
(eval $ac_compile) 2>conftest.er1
2147
grep -v '^ *+' conftest.er1 >conftest.err
2149
cat conftest.err >&5
2150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151
(exit $ac_status); } &&
2152
{ ac_try='test -z "$ac_c_werror_flag"
2153
|| test ! -s conftest.err'
2154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158
(exit $ac_status); }; } &&
2159
{ ac_try='test -s conftest.$ac_objext'
2160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164
(exit $ac_status); }; }; then
2167
echo "$as_me: failed program was:" >&5
2168
sed 's/^/| /' conftest.$ac_ext >&5
2172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2175
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2579
ac_save_c_werror_flag=$ac_c_werror_flag
2580
ac_c_werror_flag=yes
2583
cat >conftest.$ac_ext <<_ACEOF
2586
cat confdefs.h >>conftest.$ac_ext
2587
cat >>conftest.$ac_ext <<_ACEOF
2588
/* end confdefs.h. */
2598
rm -f conftest.$ac_objext
2599
if { (ac_try="$ac_compile"
2601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602
*) ac_try_echo=$ac_try;;
2604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605
(eval "$ac_compile") 2>conftest.er1
2607
grep -v '^ *+' conftest.er1 >conftest.err
2609
cat conftest.err >&5
2610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611
(exit $ac_status); } && {
2612
test -z "$ac_c_werror_flag" ||
2613
test ! -s conftest.err
2614
} && test -s conftest.$ac_objext; then
2617
echo "$as_me: failed program was:" >&5
2618
sed 's/^/| /' conftest.$ac_ext >&5
2621
cat >conftest.$ac_ext <<_ACEOF
2624
cat confdefs.h >>conftest.$ac_ext
2625
cat >>conftest.$ac_ext <<_ACEOF
2626
/* end confdefs.h. */
2636
rm -f conftest.$ac_objext
2637
if { (ac_try="$ac_compile"
2639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640
*) ac_try_echo=$ac_try;;
2642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643
(eval "$ac_compile") 2>conftest.er1
2645
grep -v '^ *+' conftest.er1 >conftest.err
2647
cat conftest.err >&5
2648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649
(exit $ac_status); } && {
2650
test -z "$ac_c_werror_flag" ||
2651
test ! -s conftest.err
2652
} && test -s conftest.$ac_objext; then
2655
echo "$as_me: failed program was:" >&5
2656
sed 's/^/| /' conftest.$ac_ext >&5
2658
ac_c_werror_flag=$ac_save_c_werror_flag
2660
cat >conftest.$ac_ext <<_ACEOF
2663
cat confdefs.h >>conftest.$ac_ext
2664
cat >>conftest.$ac_ext <<_ACEOF
2665
/* end confdefs.h. */
2675
rm -f conftest.$ac_objext
2676
if { (ac_try="$ac_compile"
2678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679
*) ac_try_echo=$ac_try;;
2681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682
(eval "$ac_compile") 2>conftest.er1
2684
grep -v '^ *+' conftest.er1 >conftest.err
2686
cat conftest.err >&5
2687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688
(exit $ac_status); } && {
2689
test -z "$ac_c_werror_flag" ||
2690
test ! -s conftest.err
2691
} && test -s conftest.$ac_objext; then
2694
echo "$as_me: failed program was:" >&5
2695
sed 's/^/| /' conftest.$ac_ext >&5
2700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707
ac_c_werror_flag=$ac_save_c_werror_flag
2709
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2176
2711
if test "$ac_test_CFLAGS" = set; then
2177
2712
CFLAGS=$ac_save_CFLAGS
2178
2713
elif test $ac_cv_prog_cc_g = yes; then
2250
# Don't try gcc -ansi; that turns off useful extensions and
2251
# breaks some systems' header files.
2252
# AIX -qlanglvl=ansi
2253
# Ultrix and OSF/1 -std1
2254
# HP-UX 10.20 and later -Ae
2255
# HP-UX older versions -Aa -D_HPUX_SOURCE
2256
# SVR4 -Xc -D__EXTENSIONS__
2257
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2790
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2791
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2259
2793
CC="$ac_save_CC $ac_arg"
2260
2794
rm -f conftest.$ac_objext
2261
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262
(eval $ac_compile) 2>conftest.er1
2795
if { (ac_try="$ac_compile"
2797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798
*) ac_try_echo=$ac_try;;
2800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801
(eval "$ac_compile") 2>conftest.er1
2264
2803
grep -v '^ *+' conftest.er1 >conftest.err
2265
2804
rm -f conftest.er1
2266
2805
cat conftest.err >&5
2267
2806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268
(exit $ac_status); } &&
2269
{ ac_try='test -z "$ac_c_werror_flag"
2270
|| test ! -s conftest.err'
2271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275
(exit $ac_status); }; } &&
2276
{ ac_try='test -s conftest.$ac_objext'
2277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281
(exit $ac_status); }; }; then
2282
ac_cv_prog_cc_stdc=$ac_arg
2807
(exit $ac_status); } && {
2808
test -z "$ac_c_werror_flag" ||
2809
test ! -s conftest.err
2810
} && test -s conftest.$ac_objext; then
2811
ac_cv_prog_cc_c89=$ac_arg
2285
2813
echo "$as_me: failed program was:" >&5
2286
2814
sed 's/^/| /' conftest.$ac_ext >&5
2289
rm -f conftest.err conftest.$ac_objext
2819
rm -f core conftest.err conftest.$ac_objext
2820
test "x$ac_cv_prog_cc_c89" != "xno" && break
2291
rm -f conftest.$ac_ext conftest.$ac_objext
2822
rm -f conftest.$ac_ext
2296
case "x$ac_cv_prog_cc_stdc" in
2298
echo "$as_me:$LINENO: result: none needed" >&5
2299
echo "${ECHO_T}none needed" >&6 ;;
2827
case "x$ac_cv_prog_cc_c89" in
2829
{ echo "$as_me:$LINENO: result: none needed" >&5
2830
echo "${ECHO_T}none needed" >&6; } ;;
2832
{ echo "$as_me:$LINENO: result: unsupported" >&5
2833
echo "${ECHO_T}unsupported" >&6; } ;;
2301
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2302
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2303
CC="$CC $ac_cv_prog_cc_stdc" ;;
2835
CC="$CC $ac_cv_prog_cc_c89"
2836
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2837
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2306
# Some people use a C++ compiler to compile C. Since we use `exit',
2307
# in C++ we need to declare it. In case someone uses the same compiler
2308
# for both compiling C and C++ we need to have the C++ compiler decide
2309
# the declaration of exit, since it's the most demanding environment.
2310
cat >conftest.$ac_ext <<_ACEOF
2315
rm -f conftest.$ac_objext
2316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317
(eval $ac_compile) 2>conftest.er1
2319
grep -v '^ *+' conftest.er1 >conftest.err
2321
cat conftest.err >&5
2322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
(exit $ac_status); } &&
2324
{ ac_try='test -z "$ac_c_werror_flag"
2325
|| test ! -s conftest.err'
2326
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
(exit $ac_status); }; } &&
2331
{ ac_try='test -s conftest.$ac_objext'
2332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336
(exit $ac_status); }; }; then
2337
for ac_declaration in \
2339
'extern "C" void std::exit (int) throw (); using std::exit;' \
2340
'extern "C" void std::exit (int); using std::exit;' \
2341
'extern "C" void exit (int) throw ();' \
2342
'extern "C" void exit (int);' \
2345
cat >conftest.$ac_ext <<_ACEOF
2348
cat confdefs.h >>conftest.$ac_ext
2349
cat >>conftest.$ac_ext <<_ACEOF
2350
/* end confdefs.h. */
2361
rm -f conftest.$ac_objext
2362
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363
(eval $ac_compile) 2>conftest.er1
2365
grep -v '^ *+' conftest.er1 >conftest.err
2367
cat conftest.err >&5
2368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369
(exit $ac_status); } &&
2370
{ ac_try='test -z "$ac_c_werror_flag"
2371
|| test ! -s conftest.err'
2372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376
(exit $ac_status); }; } &&
2377
{ ac_try='test -s conftest.$ac_objext'
2378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382
(exit $ac_status); }; }; then
2385
echo "$as_me: failed program was:" >&5
2386
sed 's/^/| /' conftest.$ac_ext >&5
2390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391
cat >conftest.$ac_ext <<_ACEOF
2394
cat confdefs.h >>conftest.$ac_ext
2395
cat >>conftest.$ac_ext <<_ACEOF
2396
/* end confdefs.h. */
2406
rm -f conftest.$ac_objext
2407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408
(eval $ac_compile) 2>conftest.er1
2410
grep -v '^ *+' conftest.er1 >conftest.err
2412
cat conftest.err >&5
2413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414
(exit $ac_status); } &&
2415
{ ac_try='test -z "$ac_c_werror_flag"
2416
|| test ! -s conftest.err'
2417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421
(exit $ac_status); }; } &&
2422
{ ac_try='test -s conftest.$ac_objext'
2423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427
(exit $ac_status); }; }; then
2430
echo "$as_me: failed program was:" >&5
2431
sed 's/^/| /' conftest.$ac_ext >&5
2434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437
if test -n "$ac_declaration"; then
2438
echo '#ifdef __cplusplus' >>confdefs.h
2439
echo $ac_declaration >>confdefs.h
2440
echo '#endif' >>confdefs.h
2444
echo "$as_me: failed program was:" >&5
2445
sed 's/^/| /' conftest.$ac_ext >&5
2448
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450
2842
ac_cpp='$CPP $CPPFLAGS'
2451
2843
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691
3079
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694
echo "$as_me:$LINENO: checking for egrep" >&5
2695
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2696
if test "${ac_cv_prog_egrep+set}" = set; then
2697
echo $ECHO_N "(cached) $ECHO_C" >&6
2699
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2700
then ac_cv_prog_egrep='grep -E'
2701
else ac_cv_prog_egrep='egrep'
2704
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2705
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2706
EGREP=$ac_cv_prog_egrep
2709
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2710
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3082
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3083
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3084
if test "${ac_cv_path_GREP+set}" = set; then
3085
echo $ECHO_N "(cached) $ECHO_C" >&6
3087
# Extract the first word of "grep ggrep" to use in msg output
3088
if test -z "$GREP"; then
3089
set dummy grep ggrep; ac_prog_name=$2
3090
if test "${ac_cv_path_GREP+set}" = set; then
3091
echo $ECHO_N "(cached) $ECHO_C" >&6
3093
ac_path_GREP_found=false
3094
# Loop through the user's path and test for each of PROGNAME-LIST
3095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3099
test -z "$as_dir" && as_dir=.
3100
for ac_prog in grep ggrep; do
3101
for ac_exec_ext in '' $ac_executable_extensions; do
3102
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3103
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3104
# Check for GNU ac_path_GREP and select it if it is found.
3105
# Check for GNU $ac_path_GREP
3106
case `"$ac_path_GREP" --version 2>&1` in
3108
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3111
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3114
cat "conftest.in" "conftest.in" >"conftest.tmp"
3115
mv "conftest.tmp" "conftest.in"
3116
cp "conftest.in" "conftest.nl"
3117
echo 'GREP' >> "conftest.nl"
3118
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3119
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3120
ac_count=`expr $ac_count + 1`
3121
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3122
# Best one so far, save it but keep looking for a better one
3123
ac_cv_path_GREP="$ac_path_GREP"
3124
ac_path_GREP_max=$ac_count
3126
# 10*(2^10) chars as input seems more than enough
3127
test $ac_count -gt 10 && break
3129
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3133
$ac_path_GREP_found && break 3
3143
GREP="$ac_cv_path_GREP"
3144
if test -z "$GREP"; then
3145
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3146
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3147
{ (exit 1); exit 1; }; }
3151
ac_cv_path_GREP=$GREP
3156
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3157
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3158
GREP="$ac_cv_path_GREP"
3161
{ echo "$as_me:$LINENO: checking for egrep" >&5
3162
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3163
if test "${ac_cv_path_EGREP+set}" = set; then
3164
echo $ECHO_N "(cached) $ECHO_C" >&6
3166
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3167
then ac_cv_path_EGREP="$GREP -E"
3169
# Extract the first word of "egrep" to use in msg output
3170
if test -z "$EGREP"; then
3171
set dummy egrep; ac_prog_name=$2
3172
if test "${ac_cv_path_EGREP+set}" = set; then
3173
echo $ECHO_N "(cached) $ECHO_C" >&6
3175
ac_path_EGREP_found=false
3176
# Loop through the user's path and test for each of PROGNAME-LIST
3177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3181
test -z "$as_dir" && as_dir=.
3182
for ac_prog in egrep; do
3183
for ac_exec_ext in '' $ac_executable_extensions; do
3184
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3185
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3186
# Check for GNU ac_path_EGREP and select it if it is found.
3187
# Check for GNU $ac_path_EGREP
3188
case `"$ac_path_EGREP" --version 2>&1` in
3190
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3193
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3196
cat "conftest.in" "conftest.in" >"conftest.tmp"
3197
mv "conftest.tmp" "conftest.in"
3198
cp "conftest.in" "conftest.nl"
3199
echo 'EGREP' >> "conftest.nl"
3200
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3201
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3202
ac_count=`expr $ac_count + 1`
3203
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3204
# Best one so far, save it but keep looking for a better one
3205
ac_cv_path_EGREP="$ac_path_EGREP"
3206
ac_path_EGREP_max=$ac_count
3208
# 10*(2^10) chars as input seems more than enough
3209
test $ac_count -gt 10 && break
3211
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3215
$ac_path_EGREP_found && break 3
3225
EGREP="$ac_cv_path_EGREP"
3226
if test -z "$EGREP"; then
3227
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3228
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3229
{ (exit 1); exit 1; }; }
3233
ac_cv_path_EGREP=$EGREP
3239
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3240
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3241
EGREP="$ac_cv_path_EGREP"
3244
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3245
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2711
3246
if test "${ac_cv_header_stdc+set}" = set; then
2712
3247
echo $ECHO_N "(cached) $ECHO_C" >&6
3393
3992
# Name of the executable.
3394
as_me=`$as_basename "$0" ||
3993
as_me=`$as_basename -- "$0" ||
3395
3994
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3396
3995
X"$0" : 'X\(//\)$' \| \
3397
X"$0" : 'X\(/\)$' \| \
3398
. : '\(.\)' 2>/dev/null ||
3996
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3400
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3401
/^X\/\(\/\/\)$/{ s//\1/; q; }
3402
/^X\/\(\/\).*/{ s//\1/; q; }
3406
# PATH needs CR, and LINENO needs CR and PATH.
3407
# Avoid depending upon Character Ranges.
3408
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3409
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3410
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3411
as_cr_digits='0123456789'
3412
as_cr_alnum=$as_cr_Letters$as_cr_digits
3414
# The user is always right.
3415
if test "${PATH_SEPARATOR+set}" != set; then
3416
echo "#! /bin/sh" >conf$$.sh
3417
echo "exit 0" >>conf$$.sh
3419
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3430
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3431
test "x$as_lineno_1" != "x$as_lineno_2" &&
3432
test "x$as_lineno_3" = "x$as_lineno_2" || {
3433
# Find who we are. Look in the path if we contain no path at all
3436
*[\\/]* ) as_myself=$0 ;;
3437
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441
test -z "$as_dir" && as_dir=.
3442
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3447
# We did not find ourselves, most probably we were run as `sh COMMAND'
3448
# in which case we are not to be found in the path.
3449
if test "x$as_myself" = x; then
3452
if test ! -f "$as_myself"; then
3453
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3454
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3455
{ (exit 1); exit 1; }; }
3457
case $CONFIG_SHELL in
3459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3463
test -z "$as_dir" && as_dir=.
3464
for as_base in sh bash ksh sh5; do
3467
if ("$as_dir/$as_base" -c '
3470
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3471
test "x$as_lineno_1" != "x$as_lineno_2" &&
3472
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3473
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3474
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3475
CONFIG_SHELL=$as_dir/$as_base
3477
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3998
sed '/^.*\/\([^/][^/]*\)\/*$/{
4019
test "x$as_lineno_1" != "x$as_lineno_2" &&
4020
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3485
4022
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3486
4023
# uniformly replaced by the line number. The first 'sed' inserts a
3487
# line-number line before each line; the second 'sed' does the real
3488
# work. The second script uses 'N' to pair each line-number line
3489
# with the numbered line, and appends trailing '-' during
3490
# substitution so that $LINENO is not a special case at line end.
4024
# line-number line after each line using $LINENO; the second 'sed'
4025
# does the real work. The second script uses 'N' to pair each
4026
# line-number line with the line containing $LINENO, and appends
4027
# trailing '-' during substitution so that $LINENO is not a special
3491
4029
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3492
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3493
sed '=' <$as_myself |
4030
# scripts with optimization help from Paolo Bonzini. Blame Lee
4031
# E. McMahon (1931-1989) for sed's syntax. :-)
3498
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4043
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3501
s,^['$as_cr_digits']*\n,,
3502
4046
' >$as_me.lineno &&
3503
chmod +x $as_me.lineno ||
3504
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3505
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4047
chmod +x "$as_me.lineno" ||
4048
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3506
4049
{ (exit 1); exit 1; }; }
3508
4051
# Don't try to exec as it changes $[0], causing all sort of problems
3509
4052
# (the dirname of $[0] is not the place where we might find the
3510
# original and so on. Autoconf is especially sensible to this).
4053
# original and so on. Autoconf is especially sensitive to this).
3512
4055
# Exit status is that of the last command.
3517
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3518
*c*,-n*) ECHO_N= ECHO_C='
3520
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3521
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4060
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4066
ECHO_C= ECHO_N= ECHO_T=
4069
case `echo 'x\c'` in
4070
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
3524
if expr a : '\(a\)' >/dev/null 2>&1; then
4077
if expr a : '\(a\)' >/dev/null 2>&1 &&
4078
test "X`expr 00001 : '.*\(...\)'`" = X001; then
3530
4084
rm -f conf$$ conf$$.exe conf$$.file
4085
if test -d conf$$.dir; then
4086
rm -f conf$$.dir/conf$$.file
3531
4091
echo >conf$$.file
3532
4092
if ln -s conf$$.file conf$$ 2>/dev/null; then
3533
# We could just check for DJGPP; but this test a) works b) is more generic
3534
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3535
if test -f conf$$.exe; then
3536
# Don't use ln at all; we don't have any links
4094
# ... but there are two gotchas:
4095
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4096
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4097
# In both cases, we have to default to `cp -p'.
4098
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3537
4099
as_ln_s='cp -p'
3541
4100
elif ln conf$$.file conf$$ 2>/dev/null; then
3544
4103
as_ln_s='cp -p'
3546
rm -f conf$$ conf$$.exe conf$$.file
4105
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4106
rmdir conf$$.dir 2>/dev/null
3548
4108
if mkdir -p . 2>/dev/null; then
3760
4310
# Have a temporary directory for convenience. Make it in the build tree
3761
# simply because there is no reason to put it here, and in addition,
4311
# simply because there is no reason against having it here, and in addition,
3762
4312
# creating and moving files from /tmp can sometimes cause problems.
3763
# Create a temporary directory, and hook for its removal unless debugging.
4313
# Hook for its removal unless debugging.
4314
# Note that there is a small window in which the directory will not be cleaned:
4315
# after its creation but before its name has been assigned to `$tmp'.
3766
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4319
trap 'exit_status=$?
4320
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3767
4322
trap '{ (exit 1); exit 1; }' 1 2 13 15
3770
4324
# Create a (secure) tmp directory for tmp files.
3773
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4327
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3774
4328
test -n "$tmp" && test -d "$tmp"
3777
tmp=./confstat$$-$RANDOM
3778
(umask 077 && mkdir $tmp)
4331
tmp=./conf$$-$RANDOM
4332
(umask 077 && mkdir "$tmp")
3781
4335
echo "$me: cannot create a temporary directory in ." >&2
3782
4336
{ (exit 1); exit 1; }
3787
cat >>$CONFIG_STATUS <<_ACEOF
3790
# CONFIG_FILES section.
4340
# Set up the sed scripts for CONFIG_FILES section.
3793
4343
# No need to generate the scripts if there are no CONFIG_FILES.
3794
4344
# This happens for instance when ./config.status config.h
3795
if test -n "\$CONFIG_FILES"; then
3796
# Protect against being on the right side of a sed subst in config.status.
3797
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3798
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3799
s,@SHELL@,$SHELL,;t t
3800
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3801
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3802
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3803
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3804
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3805
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3806
s,@exec_prefix@,$exec_prefix,;t t
3807
s,@prefix@,$prefix,;t t
3808
s,@program_transform_name@,$program_transform_name,;t t
3809
s,@bindir@,$bindir,;t t
3810
s,@sbindir@,$sbindir,;t t
3811
s,@libexecdir@,$libexecdir,;t t
3812
s,@datadir@,$datadir,;t t
3813
s,@sysconfdir@,$sysconfdir,;t t
3814
s,@sharedstatedir@,$sharedstatedir,;t t
3815
s,@localstatedir@,$localstatedir,;t t
3816
s,@libdir@,$libdir,;t t
3817
s,@includedir@,$includedir,;t t
3818
s,@oldincludedir@,$oldincludedir,;t t
3819
s,@infodir@,$infodir,;t t
3820
s,@mandir@,$mandir,;t t
3821
s,@build_alias@,$build_alias,;t t
3822
s,@host_alias@,$host_alias,;t t
3823
s,@target_alias@,$target_alias,;t t
3825
s,@ECHO_C@,$ECHO_C,;t t
3826
s,@ECHO_N@,$ECHO_N,;t t
3827
s,@ECHO_T@,$ECHO_T,;t t
3829
s,@ocamlc@,$ocamlc,;t t
3830
s,@ocamlopt@,$ocamlopt,;t t
3831
s,@ocamlfind@,$ocamlfind,;t t
3832
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3833
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3834
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3835
s,@INSTALL@,$INSTALL,;t t
3837
s,@CFLAGS@,$CFLAGS,;t t
3838
s,@LDFLAGS@,$LDFLAGS,;t t
3839
s,@CPPFLAGS@,$CPPFLAGS,;t t
3840
s,@ac_ct_CC@,$ac_ct_CC,;t t
3841
s,@EXEEXT@,$EXEEXT,;t t
3842
s,@OBJEXT@,$OBJEXT,;t t
3844
s,@EGREP@,$EGREP,;t t
3845
s,@LIBOBJS@,$LIBOBJS,;t t
3846
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3851
cat >>$CONFIG_STATUS <<\_ACEOF
3852
# Split the substitutions into bite-sized pieces for seds with
3853
# small command number limits, like on Digital OSF/1 and HP-UX.
3855
ac_sed_frag=1 # Number of current file.
3856
ac_beg=1 # First line for current file.
3857
ac_end=$ac_max_sed_lines # Line after last line for current file.
3860
while $ac_more_lines; do
3861
if test $ac_beg -gt 1; then
3862
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3864
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3866
if test ! -s $tmp/subs.frag; then
3869
# The purpose of the label and of the branching condition is to
3870
# speed up the sed processing (if there are no `@' at all, there
3871
# is no need to browse any of the substitutions).
3872
# These are the two extra sed commands mentioned above.
3874
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3875
if test -z "$ac_sed_cmds"; then
3876
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3878
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3880
ac_sed_frag=`expr $ac_sed_frag + 1`
3882
ac_end=`expr $ac_end + $ac_max_sed_lines`
3885
if test -z "$ac_sed_cmds"; then
4345
if test -n "$CONFIG_FILES"; then
4352
for ac_last_try in false false false false false :; do
4353
cat >conf$$subs.sed <<_ACEOF
4354
SHELL!$SHELL$ac_delim
4355
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4356
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4357
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4358
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4359
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4360
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4361
exec_prefix!$exec_prefix$ac_delim
4362
prefix!$prefix$ac_delim
4363
program_transform_name!$program_transform_name$ac_delim
4364
bindir!$bindir$ac_delim
4365
sbindir!$sbindir$ac_delim
4366
libexecdir!$libexecdir$ac_delim
4367
datarootdir!$datarootdir$ac_delim
4368
datadir!$datadir$ac_delim
4369
sysconfdir!$sysconfdir$ac_delim
4370
sharedstatedir!$sharedstatedir$ac_delim
4371
localstatedir!$localstatedir$ac_delim
4372
includedir!$includedir$ac_delim
4373
oldincludedir!$oldincludedir$ac_delim
4374
docdir!$docdir$ac_delim
4375
infodir!$infodir$ac_delim
4376
htmldir!$htmldir$ac_delim
4377
dvidir!$dvidir$ac_delim
4378
pdfdir!$pdfdir$ac_delim
4379
psdir!$psdir$ac_delim
4380
libdir!$libdir$ac_delim
4381
localedir!$localedir$ac_delim
4382
mandir!$mandir$ac_delim
4384
ECHO_C!$ECHO_C$ac_delim
4385
ECHO_N!$ECHO_N$ac_delim
4386
ECHO_T!$ECHO_T$ac_delim
4388
build_alias!$build_alias$ac_delim
4389
host_alias!$host_alias$ac_delim
4390
target_alias!$target_alias$ac_delim
4391
ocamlc!$ocamlc$ac_delim
4392
ocamlopt!$ocamlopt$ac_delim
4393
ocamlfind!$ocamlfind$ac_delim
4394
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4395
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
4396
INSTALL_DATA!$INSTALL_DATA$ac_delim
4397
INSTALL!$INSTALL$ac_delim
4399
CFLAGS!$CFLAGS$ac_delim
4400
LDFLAGS!$LDFLAGS$ac_delim
4401
CPPFLAGS!$CPPFLAGS$ac_delim
4402
ac_ct_CC!$ac_ct_CC$ac_delim
4403
EXEEXT!$EXEEXT$ac_delim
4404
OBJEXT!$OBJEXT$ac_delim
4407
EGREP!$EGREP$ac_delim
4408
LIBOBJS!$LIBOBJS$ac_delim
4409
LTLIBOBJS!$LTLIBOBJS$ac_delim
4412
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
4414
elif $ac_last_try; then
4415
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4416
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4417
{ (exit 1); exit 1; }; }
4419
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4423
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4424
if test -n "$ac_eof"; then
4425
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4426
ac_eof=`expr $ac_eof + 1`
4429
cat >>$CONFIG_STATUS <<_ACEOF
4430
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4431
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4434
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4435
s/^/s,@/; s/!/@,|#_!!_#|/
4438
s/'"$ac_delim"'$/,g/; t
4440
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4441
' >>$CONFIG_STATUS <conf$$subs.sed
4442
rm -f conf$$subs.sed
4443
cat >>$CONFIG_STATUS <<_ACEOF
4450
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4451
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4452
# trailing colons and then remove the whole line if VPATH becomes empty
4453
# (actually we leave an empty line to preserve line numbers).
4454
if test "x$srcdir" = x.; then
4455
ac_vpsub='/^[ ]*VPATH[ ]*=/{
4459
s/^\([^=]*=[ ]*\):*/\1/
4465
cat >>$CONFIG_STATUS <<\_ACEOF
3888
4466
fi # test -n "$CONFIG_FILES"
3891
cat >>$CONFIG_STATUS <<\_ACEOF
3892
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3893
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3895
- | *:- | *:-:* ) # input from stdin
3897
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3898
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3899
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3900
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3901
* ) ac_file_in=$ac_file.in ;;
3904
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3905
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4469
for ac_tag in :F $CONFIG_FILES
4472
:[FHLC]) ac_mode=$ac_tag; continue;;
4474
case $ac_mode$ac_tag in
4476
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4477
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4478
{ (exit 1); exit 1; }; };;
4479
:[FH]-) ac_tag=-:-;;
4480
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4497
-) ac_f="$tmp/stdin";;
4498
*) # Look for the file first in the build tree, then in the source tree
4499
# (if the path is not absolute). The absolute path cannot be DOS-style,
4500
# because $ac_f cannot contain `:'.
4504
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4506
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4507
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4508
{ (exit 1); exit 1; }; };;
4510
ac_file_inputs="$ac_file_inputs $ac_f"
4513
# Let's still pretend it is `configure' which instantiates (i.e., don't
4514
# use $as_me), people would be surprised to read:
4515
# /* config.h. Generated by config.status. */
4516
configure_input="Generated from "`IFS=:
4517
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4518
if test x"$ac_file" != x-; then
4519
configure_input="$ac_file. $configure_input"
4520
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4521
echo "$as_me: creating $ac_file" >&6;}
4525
*:-:* | *:-) cat >"$tmp/stdin";;
4530
ac_dir=`$as_dirname -- "$ac_file" ||
3906
4531
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3907
4532
X"$ac_file" : 'X\(//\)[^/]' \| \
3908
4533
X"$ac_file" : 'X\(//\)$' \| \
3909
X"$ac_file" : 'X\(/\)' \| \
3910
. : '\(.\)' 2>/dev/null ||
4534
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3911
4535
echo X"$ac_file" |
3912
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3913
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
3914
/^X\(\/\/\)$/{ s//\1/; q; }
3915
/^X\(\/\).*/{ s//\1/; q; }
3917
{ if $as_mkdir_p; then
4536
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4555
-*) as_dir=./$as_dir;;
4557
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3922
while test ! -d "$as_dir"; do
3923
as_dirs="$as_dir $as_dirs"
3924
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4561
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4562
*) as_qdir=$as_dir;;
4564
as_dirs="'$as_qdir' $as_dirs"
4565
as_dir=`$as_dirname -- "$as_dir" ||
3925
4566
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3926
4567
X"$as_dir" : 'X\(//\)[^/]' \| \
3927
4568
X"$as_dir" : 'X\(//\)$' \| \
3928
X"$as_dir" : 'X\(/\)' \| \
3929
. : '\(.\)' 2>/dev/null ||
4569
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3930
4570
echo X"$as_dir" |
3931
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3932
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
3933
/^X\(\/\/\)$/{ s//\1/; q; }
3934
/^X\(\/\).*/{ s//\1/; q; }
4571
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4588
test -d "$as_dir" && break
3937
test ! -n "$as_dirs" || mkdir $as_dirs
3938
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3939
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4590
test -z "$as_dirs" || eval "mkdir $as_dirs"
4591
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4592
echo "$as_me: error: cannot create directory $as_dir" >&2;}
3940
4593
{ (exit 1); exit 1; }; }; }
3944
if test "$ac_dir" != .; then
4597
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3945
4599
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3946
# A "../" for each directory in $ac_dir_suffix.
3947
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3949
ac_dir_suffix= ac_top_builddir=
4600
# A ".." for each directory in $ac_dir_suffix.
4601
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4602
case $ac_top_builddir_sub in
4603
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4604
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4607
ac_abs_top_builddir=$ac_pwd
4608
ac_abs_builddir=$ac_pwd$ac_dir_suffix
4609
# for backward compatibility:
4610
ac_top_builddir=$ac_top_build_prefix
3952
4612
case $srcdir in
3953
.) # No --srcdir option. We are building in place.
4613
.) # We are building in place.
3955
if test -z "$ac_top_builddir"; then
3958
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3960
[\\/]* | ?:[\\/]* ) # Absolute path.
4615
ac_top_srcdir=$ac_top_builddir_sub
4616
ac_abs_top_srcdir=$ac_pwd ;;
4617
[\\/]* | ?:[\\/]* ) # Absolute name.
3961
4618
ac_srcdir=$srcdir$ac_dir_suffix;
3962
ac_top_srcdir=$srcdir ;;
3964
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3965
ac_top_srcdir=$ac_top_builddir$srcdir ;;
3968
# Do not use `cd foo && pwd` to compute absolute paths, because
3969
# the directories may not exist.
3971
.) ac_abs_builddir="$ac_dir";;
3974
.) ac_abs_builddir=`pwd`;;
3975
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3976
*) ac_abs_builddir=`pwd`/"$ac_dir";;
3979
case $ac_abs_builddir in
3980
.) ac_abs_top_builddir=${ac_top_builddir}.;;
3982
case ${ac_top_builddir}. in
3983
.) ac_abs_top_builddir=$ac_abs_builddir;;
3984
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3985
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3988
case $ac_abs_builddir in
3989
.) ac_abs_srcdir=$ac_srcdir;;
3992
.) ac_abs_srcdir=$ac_abs_builddir;;
3993
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3994
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3997
case $ac_abs_builddir in
3998
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4000
case $ac_top_srcdir in
4001
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4002
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4003
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4619
ac_top_srcdir=$srcdir
4620
ac_abs_top_srcdir=$srcdir ;;
4622
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4623
ac_top_srcdir=$ac_top_build_prefix$srcdir
4624
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4626
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4008
4635
case $INSTALL in
4009
4636
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4010
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4637
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4013
if test x"$ac_file" != x-; then
4014
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4015
echo "$as_me: creating $ac_file" >&6;}
4018
# Let's still pretend it is `configure' which instantiates (i.e., don't
4019
# use $as_me), people would be surprised to read:
4020
# /* config.h. Generated by config.status. */
4021
if test x"$ac_file" = x-; then
4024
configure_input="$ac_file. "
4026
configure_input=$configure_input"Generated from `echo $ac_file_in |
4027
sed 's,.*/,,'` by configure."
4029
# First look for the input files in the build tree, otherwise in the
4031
ac_file_inputs=`IFS=:
4032
for f in $ac_file_in; do
4034
-) echo $tmp/stdin ;;
4036
# Absolute (can't be DOS-style, as IFS=:)
4037
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4038
echo "$as_me: error: cannot find input file: $f" >&2;}
4039
{ (exit 1); exit 1; }; }
4042
if test -f "$f"; then
4045
elif test -f "$srcdir/$f"; then
4050
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4051
echo "$as_me: error: cannot find input file: $f" >&2;}
4052
{ (exit 1); exit 1; }; }
4055
done` || { (exit 1); exit 1; }
4641
cat >>$CONFIG_STATUS <<\_ACEOF
4642
# If the template does not know about datarootdir, expand it.
4643
# FIXME: This hack should be removed a few years after 2.60.
4644
ac_datarootdir_hack=; ac_datarootdir_seen=
4646
case `sed -n '/datarootdir/ {
4655
' $ac_file_inputs` in
4656
*datarootdir*) ac_datarootdir_seen=yes;;
4657
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4658
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4659
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4661
cat >>$CONFIG_STATUS <<_ACEOF
4662
ac_datarootdir_hack='
4663
s&@datadir@&$datadir&g
4664
s&@docdir@&$docdir&g
4665
s&@infodir@&$infodir&g
4666
s&@localedir@&$localedir&g
4667
s&@mandir@&$mandir&g
4668
s&\\\${datarootdir}&$datarootdir&g' ;;
4672
# Neutralize VPATH when `$srcdir' = `.'.
4673
# Shell code in configure.ac might set extrasub.
4674
# FIXME: do we really want to maintain this feature?
4057
4675
cat >>$CONFIG_STATUS <<_ACEOF
4315
5013
# Name of the executable.
4316
as_me=`$as_basename "$0" ||
5014
as_me=`$as_basename -- "$0" ||
4317
5015
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4318
5016
X"$0" : 'X\(//\)$' \| \
4319
X"$0" : 'X\(/\)$' \| \
4320
. : '\(.\)' 2>/dev/null ||
5017
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4322
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4323
/^X\/\(\/\/\)$/{ s//\1/; q; }
4324
/^X\/\(\/\).*/{ s//\1/; q; }
4328
# PATH needs CR, and LINENO needs CR and PATH.
4329
# Avoid depending upon Character Ranges.
4330
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4331
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4332
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4333
as_cr_digits='0123456789'
4334
as_cr_alnum=$as_cr_Letters$as_cr_digits
4336
# The user is always right.
4337
if test "${PATH_SEPARATOR+set}" != set; then
4338
echo "#! /bin/sh" >conf$$.sh
4339
echo "exit 0" >>conf$$.sh
4341
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4352
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4353
test "x$as_lineno_1" != "x$as_lineno_2" &&
4354
test "x$as_lineno_3" = "x$as_lineno_2" || {
4355
# Find who we are. Look in the path if we contain no path at all
4358
*[\\/]* ) as_myself=$0 ;;
4359
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363
test -z "$as_dir" && as_dir=.
4364
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4369
# We did not find ourselves, most probably we were run as `sh COMMAND'
4370
# in which case we are not to be found in the path.
4371
if test "x$as_myself" = x; then
4374
if test ! -f "$as_myself"; then
4375
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4376
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4377
{ (exit 1); exit 1; }; }
4379
case $CONFIG_SHELL in
4381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4385
test -z "$as_dir" && as_dir=.
4386
for as_base in sh bash ksh sh5; do
4389
if ("$as_dir/$as_base" -c '
4392
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4393
test "x$as_lineno_1" != "x$as_lineno_2" &&
4394
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4395
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4396
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4397
CONFIG_SHELL=$as_dir/$as_base
4399
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5019
sed '/^.*\/\([^/][^/]*\)\/*$/{
5040
test "x$as_lineno_1" != "x$as_lineno_2" &&
5041
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4407
5043
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4408
5044
# uniformly replaced by the line number. The first 'sed' inserts a
4409
# line-number line before each line; the second 'sed' does the real
4410
# work. The second script uses 'N' to pair each line-number line
4411
# with the numbered line, and appends trailing '-' during
4412
# substitution so that $LINENO is not a special case at line end.
5045
# line-number line after each line using $LINENO; the second 'sed'
5046
# does the real work. The second script uses 'N' to pair each
5047
# line-number line with the line containing $LINENO, and appends
5048
# trailing '-' during substitution so that $LINENO is not a special
4413
5050
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4414
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4415
sed '=' <$as_myself |
5051
# scripts with optimization help from Paolo Bonzini. Blame Lee
5052
# E. McMahon (1931-1989) for sed's syntax. :-)
4420
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5064
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4423
s,^['$as_cr_digits']*\n,,
4424
5067
' >$as_me.lineno &&
4425
chmod +x $as_me.lineno ||
4426
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4427
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5068
chmod +x "$as_me.lineno" ||
5069
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4428
5070
{ (exit 1); exit 1; }; }
4430
5072
# Don't try to exec as it changes $[0], causing all sort of problems
4431
5073
# (the dirname of $[0] is not the place where we might find the
4432
# original and so on. Autoconf is especially sensible to this).
5074
# original and so on. Autoconf is especially sensitive to this).
4434
5076
# Exit status is that of the last command.
4439
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4440
*c*,-n*) ECHO_N= ECHO_C='
4442
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4443
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5081
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5087
ECHO_C= ECHO_N= ECHO_T=
5090
case `echo 'x\c'` in
5091
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
4446
if expr a : '\(a\)' >/dev/null 2>&1; then
5098
if expr a : '\(a\)' >/dev/null 2>&1 &&
5099
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4452
5105
rm -f conf$$ conf$$.exe conf$$.file
5106
if test -d conf$$.dir; then
5107
rm -f conf$$.dir/conf$$.file
4453
5112
echo >conf$$.file
4454
5113
if ln -s conf$$.file conf$$ 2>/dev/null; then
4455
# We could just check for DJGPP; but this test a) works b) is more generic
4456
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4457
if test -f conf$$.exe; then
4458
# Don't use ln at all; we don't have any links
5115
# ... but there are two gotchas:
5116
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5117
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5118
# In both cases, we have to default to `cp -p'.
5119
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4459
5120
as_ln_s='cp -p'
4463
5121
elif ln conf$$.file conf$$ 2>/dev/null; then
4466
5124
as_ln_s='cp -p'
4468
rm -f conf$$ conf$$.exe conf$$.file
5126
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5127
rmdir conf$$.dir 2>/dev/null
4470
5129
if mkdir -p . 2>/dev/null; then
4683
5332
# Have a temporary directory for convenience. Make it in the build tree
4684
# simply because there is no reason to put it here, and in addition,
5333
# simply because there is no reason against having it here, and in addition,
4685
5334
# creating and moving files from /tmp can sometimes cause problems.
4686
# Create a temporary directory, and hook for its removal unless debugging.
5335
# Hook for its removal unless debugging.
5336
# Note that there is a small window in which the directory will not be cleaned:
5337
# after its creation but before its name has been assigned to `$tmp'.
4689
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5341
trap 'exit_status=$?
5342
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4690
5344
trap '{ (exit 1); exit 1; }' 1 2 13 15
4693
5346
# Create a (secure) tmp directory for tmp files.
4696
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5349
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4697
5350
test -n "$tmp" && test -d "$tmp"
4700
tmp=./confstat$$-$RANDOM
4701
(umask 077 && mkdir $tmp)
5353
tmp=./conf$$-$RANDOM
5354
(umask 077 && mkdir "$tmp")
4704
5357
echo "$me: cannot create a temporary directory in ." >&2
4705
5358
{ (exit 1); exit 1; }
4710
cat >>$CONFIG_STATUS <<_ACEOF
4713
# CONFIG_FILES section.
5362
# Set up the sed scripts for CONFIG_FILES section.
4716
5365
# No need to generate the scripts if there are no CONFIG_FILES.
4717
5366
# This happens for instance when ./config.status config.h
4718
if test -n "\$CONFIG_FILES"; then
4719
# Protect against being on the right side of a sed subst in config.status.
4720
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4721
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4722
s,@SHELL@,$SHELL,;t t
4723
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4724
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4725
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4726
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4727
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4728
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4729
s,@exec_prefix@,$exec_prefix,;t t
4730
s,@prefix@,$prefix,;t t
4731
s,@program_transform_name@,$program_transform_name,;t t
4732
s,@bindir@,$bindir,;t t
4733
s,@sbindir@,$sbindir,;t t
4734
s,@libexecdir@,$libexecdir,;t t
4735
s,@datadir@,$datadir,;t t
4736
s,@sysconfdir@,$sysconfdir,;t t
4737
s,@sharedstatedir@,$sharedstatedir,;t t
4738
s,@localstatedir@,$localstatedir,;t t
4739
s,@libdir@,$libdir,;t t
4740
s,@includedir@,$includedir,;t t
4741
s,@oldincludedir@,$oldincludedir,;t t
4742
s,@infodir@,$infodir,;t t
4743
s,@mandir@,$mandir,;t t
4744
s,@build_alias@,$build_alias,;t t
4745
s,@host_alias@,$host_alias,;t t
4746
s,@target_alias@,$target_alias,;t t
4748
s,@ECHO_C@,$ECHO_C,;t t
4749
s,@ECHO_N@,$ECHO_N,;t t
4750
s,@ECHO_T@,$ECHO_T,;t t
4752
s,@ocamlc@,$ocamlc,;t t
4753
s,@ocamlopt@,$ocamlopt,;t t
4754
s,@ocamlfind@,$ocamlfind,;t t
4755
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4756
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4757
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4758
s,@INSTALL@,$INSTALL,;t t
4760
s,@CFLAGS@,$CFLAGS,;t t
4761
s,@LDFLAGS@,$LDFLAGS,;t t
4762
s,@CPPFLAGS@,$CPPFLAGS,;t t
4763
s,@ac_ct_CC@,$ac_ct_CC,;t t
4764
s,@EXEEXT@,$EXEEXT,;t t
4765
s,@OBJEXT@,$OBJEXT,;t t
4767
s,@EGREP@,$EGREP,;t t
4768
s,@LIBOBJS@,$LIBOBJS,;t t
4769
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4774
cat >>$CONFIG_STATUS <<\_ACEOF
4775
# Split the substitutions into bite-sized pieces for seds with
4776
# small command number limits, like on Digital OSF/1 and HP-UX.
4778
ac_sed_frag=1 # Number of current file.
4779
ac_beg=1 # First line for current file.
4780
ac_end=$ac_max_sed_lines # Line after last line for current file.
4783
while $ac_more_lines; do
4784
if test $ac_beg -gt 1; then
4785
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4787
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4789
if test ! -s $tmp/subs.frag; then
4792
# The purpose of the label and of the branching condition is to
4793
# speed up the sed processing (if there are no `@' at all, there
4794
# is no need to browse any of the substitutions).
4795
# These are the two extra sed commands mentioned above.
4797
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4798
if test -z "$ac_sed_cmds"; then
4799
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4801
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4803
ac_sed_frag=`expr $ac_sed_frag + 1`
4805
ac_end=`expr $ac_end + $ac_max_sed_lines`
4808
if test -z "$ac_sed_cmds"; then
5367
if test -n "$CONFIG_FILES"; then
5374
for ac_last_try in false false false false false :; do
5375
cat >conf$$subs.sed <<_ACEOF
5376
SHELL!$SHELL$ac_delim
5377
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5378
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5379
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5380
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5381
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5382
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5383
exec_prefix!$exec_prefix$ac_delim
5384
prefix!$prefix$ac_delim
5385
program_transform_name!$program_transform_name$ac_delim
5386
bindir!$bindir$ac_delim
5387
sbindir!$sbindir$ac_delim
5388
libexecdir!$libexecdir$ac_delim
5389
datarootdir!$datarootdir$ac_delim
5390
datadir!$datadir$ac_delim
5391
sysconfdir!$sysconfdir$ac_delim
5392
sharedstatedir!$sharedstatedir$ac_delim
5393
localstatedir!$localstatedir$ac_delim
5394
includedir!$includedir$ac_delim
5395
oldincludedir!$oldincludedir$ac_delim
5396
docdir!$docdir$ac_delim
5397
infodir!$infodir$ac_delim
5398
htmldir!$htmldir$ac_delim
5399
dvidir!$dvidir$ac_delim
5400
pdfdir!$pdfdir$ac_delim
5401
psdir!$psdir$ac_delim
5402
libdir!$libdir$ac_delim
5403
localedir!$localedir$ac_delim
5404
mandir!$mandir$ac_delim
5406
ECHO_C!$ECHO_C$ac_delim
5407
ECHO_N!$ECHO_N$ac_delim
5408
ECHO_T!$ECHO_T$ac_delim
5410
build_alias!$build_alias$ac_delim
5411
host_alias!$host_alias$ac_delim
5412
target_alias!$target_alias$ac_delim
5413
ocamlc!$ocamlc$ac_delim
5414
ocamlopt!$ocamlopt$ac_delim
5415
ocamlfind!$ocamlfind$ac_delim
5416
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5417
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5418
INSTALL_DATA!$INSTALL_DATA$ac_delim
5419
INSTALL!$INSTALL$ac_delim
5421
CFLAGS!$CFLAGS$ac_delim
5422
LDFLAGS!$LDFLAGS$ac_delim
5423
CPPFLAGS!$CPPFLAGS$ac_delim
5424
ac_ct_CC!$ac_ct_CC$ac_delim
5425
EXEEXT!$EXEEXT$ac_delim
5426
OBJEXT!$OBJEXT$ac_delim
5429
EGREP!$EGREP$ac_delim
5430
LIBOBJS!$LIBOBJS$ac_delim
5431
LTLIBOBJS!$LTLIBOBJS$ac_delim
5434
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
5436
elif $ac_last_try; then
5437
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5438
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5439
{ (exit 1); exit 1; }; }
5441
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5445
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5446
if test -n "$ac_eof"; then
5447
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5448
ac_eof=`expr $ac_eof + 1`
5451
cat >>$CONFIG_STATUS <<_ACEOF
5452
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5453
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5456
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5457
s/^/s,@/; s/!/@,|#_!!_#|/
5460
s/'"$ac_delim"'$/,g/; t
5462
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5463
' >>$CONFIG_STATUS <conf$$subs.sed
5464
rm -f conf$$subs.sed
5465
cat >>$CONFIG_STATUS <<_ACEOF
5472
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5473
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5474
# trailing colons and then remove the whole line if VPATH becomes empty
5475
# (actually we leave an empty line to preserve line numbers).
5476
if test "x$srcdir" = x.; then
5477
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5481
s/^\([^=]*=[ ]*\):*/\1/
5487
cat >>$CONFIG_STATUS <<\_ACEOF
4811
5488
fi # test -n "$CONFIG_FILES"
4814
cat >>$CONFIG_STATUS <<\_ACEOF
4815
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4816
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4818
- | *:- | *:-:* ) # input from stdin
4820
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4821
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4822
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4823
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4824
* ) ac_file_in=$ac_file.in ;;
4827
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4828
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5491
for ac_tag in :F $CONFIG_FILES
5494
:[FHLC]) ac_mode=$ac_tag; continue;;
5496
case $ac_mode$ac_tag in
5498
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5499
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5500
{ (exit 1); exit 1; }; };;
5501
:[FH]-) ac_tag=-:-;;
5502
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5519
-) ac_f="$tmp/stdin";;
5520
*) # Look for the file first in the build tree, then in the source tree
5521
# (if the path is not absolute). The absolute path cannot be DOS-style,
5522
# because $ac_f cannot contain `:'.
5526
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5528
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5529
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5530
{ (exit 1); exit 1; }; };;
5532
ac_file_inputs="$ac_file_inputs $ac_f"
5535
# Let's still pretend it is `configure' which instantiates (i.e., don't
5536
# use $as_me), people would be surprised to read:
5537
# /* config.h. Generated by config.status. */
5538
configure_input="Generated from "`IFS=:
5539
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5540
if test x"$ac_file" != x-; then
5541
configure_input="$ac_file. $configure_input"
5542
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5543
echo "$as_me: creating $ac_file" >&6;}
5547
*:-:* | *:-) cat >"$tmp/stdin";;
5552
ac_dir=`$as_dirname -- "$ac_file" ||
4829
5553
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4830
5554
X"$ac_file" : 'X\(//\)[^/]' \| \
4831
5555
X"$ac_file" : 'X\(//\)$' \| \
4832
X"$ac_file" : 'X\(/\)' \| \
4833
. : '\(.\)' 2>/dev/null ||
5556
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4834
5557
echo X"$ac_file" |
4835
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4836
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4837
/^X\(\/\/\)$/{ s//\1/; q; }
4838
/^X\(\/\).*/{ s//\1/; q; }
4840
{ if $as_mkdir_p; then
5558
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5577
-*) as_dir=./$as_dir;;
5579
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4845
while test ! -d "$as_dir"; do
4846
as_dirs="$as_dir $as_dirs"
4847
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5583
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5584
*) as_qdir=$as_dir;;
5586
as_dirs="'$as_qdir' $as_dirs"
5587
as_dir=`$as_dirname -- "$as_dir" ||
4848
5588
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4849
5589
X"$as_dir" : 'X\(//\)[^/]' \| \
4850
5590
X"$as_dir" : 'X\(//\)$' \| \
4851
X"$as_dir" : 'X\(/\)' \| \
4852
. : '\(.\)' 2>/dev/null ||
5591
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4853
5592
echo X"$as_dir" |
4854
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4855
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4856
/^X\(\/\/\)$/{ s//\1/; q; }
4857
/^X\(\/\).*/{ s//\1/; q; }
5593
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5610
test -d "$as_dir" && break
4860
test ! -n "$as_dirs" || mkdir $as_dirs
4861
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4862
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5612
test -z "$as_dirs" || eval "mkdir $as_dirs"
5613
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5614
echo "$as_me: error: cannot create directory $as_dir" >&2;}
4863
5615
{ (exit 1); exit 1; }; }; }
4867
if test "$ac_dir" != .; then
5619
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4868
5621
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4869
# A "../" for each directory in $ac_dir_suffix.
4870
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4872
ac_dir_suffix= ac_top_builddir=
5622
# A ".." for each directory in $ac_dir_suffix.
5623
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5624
case $ac_top_builddir_sub in
5625
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5626
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5629
ac_abs_top_builddir=$ac_pwd
5630
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5631
# for backward compatibility:
5632
ac_top_builddir=$ac_top_build_prefix
4875
5634
case $srcdir in
4876
.) # No --srcdir option. We are building in place.
5635
.) # We are building in place.
4878
if test -z "$ac_top_builddir"; then
4881
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4883
[\\/]* | ?:[\\/]* ) # Absolute path.
5637
ac_top_srcdir=$ac_top_builddir_sub
5638
ac_abs_top_srcdir=$ac_pwd ;;
5639
[\\/]* | ?:[\\/]* ) # Absolute name.
4884
5640
ac_srcdir=$srcdir$ac_dir_suffix;
4885
ac_top_srcdir=$srcdir ;;
4887
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4888
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4891
# Do not use `cd foo && pwd` to compute absolute paths, because
4892
# the directories may not exist.
4894
.) ac_abs_builddir="$ac_dir";;
4897
.) ac_abs_builddir=`pwd`;;
4898
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4899
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4902
case $ac_abs_builddir in
4903
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4905
case ${ac_top_builddir}. in
4906
.) ac_abs_top_builddir=$ac_abs_builddir;;
4907
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4908
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4911
case $ac_abs_builddir in
4912
.) ac_abs_srcdir=$ac_srcdir;;
4915
.) ac_abs_srcdir=$ac_abs_builddir;;
4916
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4917
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4920
case $ac_abs_builddir in
4921
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4923
case $ac_top_srcdir in
4924
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4925
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4926
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5641
ac_top_srcdir=$srcdir
5642
ac_abs_top_srcdir=$srcdir ;;
5644
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5645
ac_top_srcdir=$ac_top_build_prefix$srcdir
5646
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5648
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4931
5657
case $INSTALL in
4932
5658
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4933
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5659
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4936
if test x"$ac_file" != x-; then
4937
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4938
echo "$as_me: creating $ac_file" >&6;}
4941
# Let's still pretend it is `configure' which instantiates (i.e., don't
4942
# use $as_me), people would be surprised to read:
4943
# /* config.h. Generated by config.status. */
4944
if test x"$ac_file" = x-; then
4947
configure_input="$ac_file. "
4949
configure_input=$configure_input"Generated from `echo $ac_file_in |
4950
sed 's,.*/,,'` by configure."
4952
# First look for the input files in the build tree, otherwise in the
4954
ac_file_inputs=`IFS=:
4955
for f in $ac_file_in; do
4957
-) echo $tmp/stdin ;;
4959
# Absolute (can't be DOS-style, as IFS=:)
4960
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4961
echo "$as_me: error: cannot find input file: $f" >&2;}
4962
{ (exit 1); exit 1; }; }
4965
if test -f "$f"; then
4968
elif test -f "$srcdir/$f"; then
4973
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4974
echo "$as_me: error: cannot find input file: $f" >&2;}
4975
{ (exit 1); exit 1; }; }
4978
done` || { (exit 1); exit 1; }
5663
cat >>$CONFIG_STATUS <<\_ACEOF
5664
# If the template does not know about datarootdir, expand it.
5665
# FIXME: This hack should be removed a few years after 2.60.
5666
ac_datarootdir_hack=; ac_datarootdir_seen=
5668
case `sed -n '/datarootdir/ {
5677
' $ac_file_inputs` in
5678
*datarootdir*) ac_datarootdir_seen=yes;;
5679
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5680
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5681
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5683
cat >>$CONFIG_STATUS <<_ACEOF
5684
ac_datarootdir_hack='
5685
s&@datadir@&$datadir&g
5686
s&@docdir@&$docdir&g
5687
s&@infodir@&$infodir&g
5688
s&@localedir@&$localedir&g
5689
s&@mandir@&$mandir&g
5690
s&\\\${datarootdir}&$datarootdir&g' ;;
5694
# Neutralize VPATH when `$srcdir' = `.'.
5695
# Shell code in configure.ac might set extrasub.
5696
# FIXME: do we really want to maintain this feature?
4980
5697
cat >>$CONFIG_STATUS <<_ACEOF