2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
3
# Generated by GNU Autoconf 2.65.
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
11
# This configure script is free software; the Free Software Foundation
7
12
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17
23
# is contrary to our usage. Disable this feature.
18
24
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
231
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232
$0: including any error possibly output before this
233
$0: message. Then install a modern shell, or manually run
234
$0: the script under such a shell if you do have one."
240
SHELL=${CONFIG_SHELL-/bin/sh}
242
# Unset more variables known to interfere with behavior of common tools.
243
CLICOLOR_FORCE= GREP_OPTIONS=
244
unset CLICOLOR_FORCE GREP_OPTIONS
246
## --------------------- ##
247
## M4sh Shell Functions. ##
248
## --------------------- ##
251
# Portably unset VAR.
254
{ eval $1=; unset $1;}
258
# as_fn_set_status STATUS
259
# -----------------------
260
# Set $? to STATUS, without forking.
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278
# Create "$as_dir" as a directory, including parents if necessary.
283
-*) as_dir=./$as_dir;;
285
test -d "$as_dir" || eval $as_mkdir_p || {
289
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292
as_dirs="'$as_qdir' $as_dirs"
293
as_dir=`$as_dirname -- "$as_dir" ||
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295
X"$as_dir" : 'X\(//\)[^/]' \| \
296
X"$as_dir" : 'X\(//\)$' \| \
297
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298
$as_echo X"$as_dir" |
299
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316
test -d "$as_dir" && break
318
test -z "$as_dirs" || eval "mkdir $as_dirs"
319
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
# as_fn_append VAR VALUE
324
# ----------------------
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
326
# advantage of any shell optimizations that allow amortized linear growth over
327
# repeated appends, instead of the typical quadratic growth present in naive
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330
eval 'as_fn_append ()
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
345
# must be portable across $(()) and expr.
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354
as_val=`expr "$@" || test $? -eq 1`
359
# as_fn_error ERROR [LINENO LOG_FD]
360
# ---------------------------------
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363
# script with status $?, using 1 if that was 0.
366
as_status=$?; test $as_status -eq 0 && as_status=1
368
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
$as_echo "$as_me: error: $1" >&2
372
as_fn_exit $as_status
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
376
test "X`expr 00001 : '.*\(...\)'`" = X001; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
383
as_basename=basename
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
394
as_me=`$as_basename -- "$0" ||
67
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
396
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 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.
397
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
sed '/^.*\/\([^/][^/]*\)\/*$/{
79
413
# Avoid depending upon Character Ranges.
80
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
822
1313
CFLAGS C compiler flags
823
1314
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
824
1315
nonstandard directory <lib dir>
825
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
826
headers in a nonstandard directory <include dir>
1316
LIBS libraries to pass to the linker, e.g. -l<library>
1317
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1318
you have headers in a nonstandard directory <include dir>
827
1319
CXX C++ compiler command
828
1320
CXXFLAGS C++ compiler flags
830
1323
Use these variables to override the choices made by `configure' or to help
831
1324
it to find libraries and programs with nonstandard names/locations.
1326
Report bugs to the package provider.
836
1331
if test "$ac_init_help" = "recursive"; then
837
1332
# If there are subdirs, report their specific --help.
839
1333
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
840
test -d $ac_dir || continue
1334
test -d "$ac_dir" ||
1335
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
843
if test "$ac_dir" != .; then
844
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
845
# A "../" for each directory in $ac_dir_suffix.
846
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
848
ac_dir_suffix= ac_top_builddir=
1340
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1343
# A ".." for each directory in $ac_dir_suffix.
1344
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1345
case $ac_top_builddir_sub in
1346
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1350
ac_abs_top_builddir=$ac_pwd
1351
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1352
# for backward compatibility:
1353
ac_top_builddir=$ac_top_build_prefix
852
.) # No --srcdir option. We are building in place.
1356
.) # We are building in place.
854
if test -z "$ac_top_builddir"; then
857
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
859
[\\/]* | ?:[\\/]* ) # Absolute path.
1358
ac_top_srcdir=$ac_top_builddir_sub
1359
ac_abs_top_srcdir=$ac_pwd ;;
1360
[\\/]* | ?:[\\/]* ) # Absolute name.
860
1361
ac_srcdir=$srcdir$ac_dir_suffix;
861
ac_top_srcdir=$srcdir ;;
863
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
864
ac_top_srcdir=$ac_top_builddir$srcdir ;;
867
# Do not use `cd foo && pwd` to compute absolute paths, because
868
# the directories may not exist.
870
.) ac_abs_builddir="$ac_dir";;
873
.) ac_abs_builddir=`pwd`;;
874
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
875
*) ac_abs_builddir=`pwd`/"$ac_dir";;
878
case $ac_abs_builddir in
879
.) ac_abs_top_builddir=${ac_top_builddir}.;;
881
case ${ac_top_builddir}. in
882
.) ac_abs_top_builddir=$ac_abs_builddir;;
883
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
884
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
887
case $ac_abs_builddir in
888
.) ac_abs_srcdir=$ac_srcdir;;
891
.) ac_abs_srcdir=$ac_abs_builddir;;
892
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
893
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
896
case $ac_abs_builddir in
897
.) ac_abs_top_srcdir=$ac_top_srcdir;;
899
case $ac_top_srcdir in
900
.) ac_abs_top_srcdir=$ac_abs_builddir;;
901
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
902
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
907
# Check for guested configure; otherwise get Cygnus style configure.
908
if test -f $ac_srcdir/configure.gnu; then
910
$SHELL $ac_srcdir/configure.gnu --help=recursive
911
elif test -f $ac_srcdir/configure; then
913
$SHELL $ac_srcdir/configure --help=recursive
914
elif test -f $ac_srcdir/configure.ac ||
915
test -f $ac_srcdir/configure.in; then
1362
ac_top_srcdir=$srcdir
1363
ac_abs_top_srcdir=$srcdir ;;
1365
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1366
ac_top_srcdir=$ac_top_build_prefix$srcdir
1367
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1369
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1371
cd "$ac_dir" || { ac_status=$?; continue; }
1372
# Check for guested configure.
1373
if test -f "$ac_srcdir/configure.gnu"; then
1375
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1376
elif test -f "$ac_srcdir/configure"; then
1378
$SHELL "$ac_srcdir/configure" --help=recursive
919
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1382
cd "$ac_pwd" || { ac_status=$?; break; }
925
test -n "$ac_init_help" && exit 0
1386
test -n "$ac_init_help" && exit $ac_status
926
1387
if $ac_init_version; then
1390
generated by GNU Autoconf 2.65
929
Copyright (C) 2003 Free Software Foundation, Inc.
1392
Copyright (C) 2009 Free Software Foundation, Inc.
930
1393
This configure script is free software; the Free Software Foundation
931
1394
gives unlimited permission to copy, distribute and modify it.
1399
## ------------------------ ##
1400
## Autoconf initialization. ##
1401
## ------------------------ ##
1403
# ac_fn_c_try_compile LINENO
1404
# --------------------------
1405
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1406
ac_fn_c_try_compile ()
1408
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1409
rm -f conftest.$ac_objext
1410
if { { ac_try="$ac_compile"
1412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1413
*) ac_try_echo=$ac_try;;
1415
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1416
$as_echo "$ac_try_echo"; } >&5
1417
(eval "$ac_compile") 2>conftest.err
1419
if test -s conftest.err; then
1420
grep -v '^ *+' conftest.err >conftest.er1
1421
cat conftest.er1 >&5
1422
mv -f conftest.er1 conftest.err
1424
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1425
test $ac_status = 0; } && {
1426
test -z "$ac_c_werror_flag" ||
1427
test ! -s conftest.err
1428
} && test -s conftest.$ac_objext; then :
1431
$as_echo "$as_me: failed program was:" >&5
1432
sed 's/^/| /' conftest.$ac_ext >&5
1436
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1437
as_fn_set_status $ac_retval
1439
} # ac_fn_c_try_compile
1441
# ac_fn_cxx_try_compile LINENO
1442
# ----------------------------
1443
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1444
ac_fn_cxx_try_compile ()
1446
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447
rm -f conftest.$ac_objext
1448
if { { ac_try="$ac_compile"
1450
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451
*) ac_try_echo=$ac_try;;
1453
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454
$as_echo "$ac_try_echo"; } >&5
1455
(eval "$ac_compile") 2>conftest.err
1457
if test -s conftest.err; then
1458
grep -v '^ *+' conftest.err >conftest.er1
1459
cat conftest.er1 >&5
1460
mv -f conftest.er1 conftest.err
1462
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463
test $ac_status = 0; } && {
1464
test -z "$ac_cxx_werror_flag" ||
1465
test ! -s conftest.err
1466
} && test -s conftest.$ac_objext; then :
1469
$as_echo "$as_me: failed program was:" >&5
1470
sed 's/^/| /' conftest.$ac_ext >&5
1474
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475
as_fn_set_status $ac_retval
1477
} # ac_fn_cxx_try_compile
1479
# ac_fn_c_try_link LINENO
1480
# -----------------------
1481
# Try to link conftest.$ac_ext, and return whether this succeeded.
1484
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485
rm -f conftest.$ac_objext conftest$ac_exeext
1486
if { { ac_try="$ac_link"
1488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489
*) ac_try_echo=$ac_try;;
1491
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492
$as_echo "$ac_try_echo"; } >&5
1493
(eval "$ac_link") 2>conftest.err
1495
if test -s conftest.err; then
1496
grep -v '^ *+' conftest.err >conftest.er1
1497
cat conftest.er1 >&5
1498
mv -f conftest.er1 conftest.err
1500
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501
test $ac_status = 0; } && {
1502
test -z "$ac_c_werror_flag" ||
1503
test ! -s conftest.err
1504
} && test -s conftest$ac_exeext && {
1505
test "$cross_compiling" = yes ||
1506
$as_test_x conftest$ac_exeext
1510
$as_echo "$as_me: failed program was:" >&5
1511
sed 's/^/| /' conftest.$ac_ext >&5
1515
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1516
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1517
# interfere with the next link command; also delete a directory that is
1518
# left behind by Apple's compiler. We do this before executing the actions.
1519
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1520
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521
as_fn_set_status $ac_retval
1523
} # ac_fn_c_try_link
1525
# ac_fn_c_check_func LINENO FUNC VAR
1526
# ----------------------------------
1527
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1528
ac_fn_c_check_func ()
1530
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1532
$as_echo_n "checking for $2... " >&6; }
1533
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1534
$as_echo_n "(cached) " >&6
1536
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537
/* end confdefs.h. */
1538
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1539
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1540
#define $2 innocuous_$2
1542
/* System header to define __stub macros and hopefully few prototypes,
1543
which can conflict with char $2 (); below.
1544
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1545
<limits.h> exists even on freestanding compilers. */
1548
# include <limits.h>
1550
# include <assert.h>
1555
/* Override any GCC internal prototype to avoid an error.
1556
Use char because int might match the return type of a GCC
1557
builtin and then its argument prototype would still apply. */
1562
/* The GNU C library defines this for functions which it implements
1563
to always fail with ENOSYS. Some functions are actually named
1564
something starting with __ and the normal name is an alias. */
1565
#if defined __stub_$2 || defined __stub___$2
1577
if ac_fn_c_try_link "$LINENO"; then :
1582
rm -f core conftest.err conftest.$ac_objext \
1583
conftest$ac_exeext conftest.$ac_ext
1586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587
$as_echo "$ac_res" >&6; }
1588
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590
} # ac_fn_c_check_func
1592
# ac_fn_c_try_cpp LINENO
1593
# ----------------------
1594
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598
if { { ac_try="$ac_cpp conftest.$ac_ext"
1600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601
*) ac_try_echo=$ac_try;;
1603
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604
$as_echo "$ac_try_echo"; } >&5
1605
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607
if test -s conftest.err; then
1608
grep -v '^ *+' conftest.err >conftest.er1
1609
cat conftest.er1 >&5
1610
mv -f conftest.er1 conftest.err
1612
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613
test $ac_status = 0; } >/dev/null && {
1614
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615
test ! -s conftest.err
1619
$as_echo "$as_me: failed program was:" >&5
1620
sed 's/^/| /' conftest.$ac_ext >&5
1624
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625
as_fn_set_status $ac_retval
1629
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630
# -------------------------------------------------------
1631
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632
# the include files in INCLUDES and setting the cache variable VAR
1634
ac_fn_c_check_header_mongrel ()
1636
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639
$as_echo_n "checking for $2... " >&6; }
1640
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1641
$as_echo_n "(cached) " >&6
1644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645
$as_echo "$ac_res" >&6; }
1647
# Is the header compilable?
1648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649
$as_echo_n "checking $2 usability... " >&6; }
1650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651
/* end confdefs.h. */
1655
if ac_fn_c_try_compile "$LINENO"; then :
1656
ac_header_compiler=yes
1658
ac_header_compiler=no
1660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662
$as_echo "$ac_header_compiler" >&6; }
1664
# Is the header present?
1665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666
$as_echo_n "checking $2 presence... " >&6; }
1667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668
/* end confdefs.h. */
1671
if ac_fn_c_try_cpp "$LINENO"; then :
1672
ac_header_preproc=yes
1674
ac_header_preproc=no
1676
rm -f conftest.err conftest.$ac_ext
1677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678
$as_echo "$ac_header_preproc" >&6; }
1680
# So? What about this header?
1681
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1683
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1692
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1693
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1696
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1697
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702
$as_echo_n "checking for $2... " >&6; }
1703
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704
$as_echo_n "(cached) " >&6
1706
eval "$3=\$ac_header_compiler"
1709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710
$as_echo "$ac_res" >&6; }
1712
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714
} # ac_fn_c_check_header_mongrel
1716
# ac_fn_c_try_run LINENO
1717
# ----------------------
1718
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719
# that executables *can* be run.
1722
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723
if { { ac_try="$ac_link"
1725
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726
*) ac_try_echo=$ac_try;;
1728
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729
$as_echo "$ac_try_echo"; } >&5
1730
(eval "$ac_link") 2>&5
1732
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734
{ { case "(($ac_try" in
1735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736
*) ac_try_echo=$ac_try;;
1738
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739
$as_echo "$ac_try_echo"; } >&5
1740
(eval "$ac_try") 2>&5
1742
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743
test $ac_status = 0; }; }; then :
1746
$as_echo "$as_me: program exited with status $ac_status" >&5
1747
$as_echo "$as_me: failed program was:" >&5
1748
sed 's/^/| /' conftest.$ac_ext >&5
1750
ac_retval=$ac_status
1752
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754
as_fn_set_status $ac_retval
1758
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759
# -------------------------------------------------------
1760
# Tests whether HEADER exists and can be compiled using the include files in
1761
# INCLUDES, setting the cache variable VAR accordingly.
1762
ac_fn_c_check_header_compile ()
1764
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766
$as_echo_n "checking for $2... " >&6; }
1767
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768
$as_echo_n "(cached) " >&6
1770
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771
/* end confdefs.h. */
1775
if ac_fn_c_try_compile "$LINENO"; then :
1780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784
$as_echo "$ac_res" >&6; }
1785
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787
} # ac_fn_c_check_header_compile
1788
cat >config.log <<_ACEOF
937
1789
This file contains any messages produced by compilers while
938
1790
running configure, to aid debugging if configure makes a mistake.
940
1792
It was created by $as_me, which was
941
generated by GNU Autoconf 2.59. Invocation command line was
1793
generated by GNU Autoconf 2.65. Invocation command line was
1681
2549
ac_clean_files_save=$ac_clean_files
1682
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2550
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1683
2551
# Try to create an executable without -o first, disregard a.out.
1684
2552
# It will help us diagnose broken compilers, and finding out an intuition
1686
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1687
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1688
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1689
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1690
(eval $ac_link_default) 2>&5
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2555
$as_echo_n "checking whether the C compiler works... " >&6; }
2556
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2558
# The possible output files:
2559
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2562
for ac_file in $ac_files
2565
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2566
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2571
if { { ac_try="$ac_link_default"
2573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574
*) ac_try_echo=$ac_try;;
2576
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577
$as_echo "$ac_try_echo"; } >&5
2578
(eval "$ac_link_default") 2>&5
1692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693
(exit $ac_status); }; then
1694
# Find the output, starting from the most likely. This scheme is
1695
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1698
# Be careful to initialize this variable, since it used to be cached.
1699
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1701
# b.out is created by i960 compilers.
1702
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2580
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581
test $ac_status = 0; }; then :
2582
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2583
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2584
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2585
# so that the user can short-circuit this test for compilers unknown to
2587
for ac_file in $ac_files ''
1704
2589
test -f "$ac_file" || continue
1705
2590
case $ac_file in
1706
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1709
# This is the source file.
2591
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1712
2594
# We found the default executable, but exeext='' is most
1713
2595
# certainly right.
1716
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1717
# FIXME: I believe we export ac_cv_exeext for Libtool,
1718
# but it would be cool to find out if it's true. Does anybody
1719
# maintain Libtool? --akim.
2598
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2600
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2602
# We set ac_cv_exeext here because the later test for it is not
2603
# safe: cross compilers may not add the suffix if given an `-o'
2604
# argument, so we may need to know it at that point already.
2605
# Even if this section looks crufty: it has the advantage of
2612
test "$ac_cv_exeext" = no && ac_cv_exeext=
1727
echo "$as_me: failed program was:" >&5
2617
if test -z "$ac_file"; then :
2618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619
$as_echo "no" >&6; }
2620
$as_echo "$as_me: failed program was:" >&5
1728
2621
sed 's/^/| /' conftest.$ac_ext >&5
1730
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1731
See \`config.log' for more details." >&5
1732
echo "$as_me: error: C compiler cannot create executables
1733
See \`config.log' for more details." >&2;}
1734
{ (exit 77); exit 77; }; }
2623
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625
{ as_fn_set_status 77
2626
as_fn_error "C compiler cannot create executables
2627
See \`config.log' for more details." "$LINENO" 5; }; }
2629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630
$as_echo "yes" >&6; }
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2633
$as_echo_n "checking for C compiler default output file name... " >&6; }
2634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2635
$as_echo "$ac_file" >&6; }
1737
2636
ac_exeext=$ac_cv_exeext
1738
echo "$as_me:$LINENO: result: $ac_file" >&5
1739
echo "${ECHO_T}$ac_file" >&6
1741
# Check the compiler produces executables we can run. If not, either
1742
# the compiler is broken, or we cross compile.
1743
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1744
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1745
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1746
# If not cross compiling, check that we can run a simple program.
1747
if test "$cross_compiling" != yes; then
1748
if { ac_try='./$ac_file'
1749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753
(exit $ac_status); }; }; then
1756
if test "$cross_compiling" = maybe; then
1759
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1760
If you meant to cross compile, use \`--host'.
1761
See \`config.log' for more details." >&5
1762
echo "$as_me: error: cannot run C compiled programs.
1763
If you meant to cross compile, use \`--host'.
1764
See \`config.log' for more details." >&2;}
1765
{ (exit 1); exit 1; }; }
1769
echo "$as_me:$LINENO: result: yes" >&5
1770
echo "${ECHO_T}yes" >&6
1772
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2638
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1773
2639
ac_clean_files=$ac_clean_files_save
1774
# Check the compiler produces executables we can run. If not, either
1775
# the compiler is broken, or we cross compile.
1776
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1777
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1778
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1779
echo "${ECHO_T}$cross_compiling" >&6
1781
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1782
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1783
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1784
(eval $ac_link) 2>&5
2640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2641
$as_echo_n "checking for suffix of executables... " >&6; }
2642
if { { ac_try="$ac_link"
2644
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645
*) ac_try_echo=$ac_try;;
2647
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648
$as_echo "$ac_try_echo"; } >&5
2649
(eval "$ac_link") 2>&5
1786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787
(exit $ac_status); }; then
2651
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652
test $ac_status = 0; }; then :
1788
2653
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1789
2654
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1790
2655
# work properly (i.e., refer to `conftest.exe'), while it won't with
2054
# Don't try gcc -ansi; that turns off useful extensions and
2055
# breaks some systems' header files.
2056
# AIX -qlanglvl=ansi
2057
# Ultrix and OSF/1 -std1
2058
# HP-UX 10.20 and later -Ae
2059
# HP-UX older versions -Aa -D_HPUX_SOURCE
2060
# SVR4 -Xc -D__EXTENSIONS__
2061
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2964
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2965
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2063
2967
CC="$ac_save_CC $ac_arg"
2064
rm -f conftest.$ac_objext
2065
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066
(eval $ac_compile) 2>conftest.er1
2068
grep -v '^ *+' conftest.er1 >conftest.err
2070
cat conftest.err >&5
2071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072
(exit $ac_status); } &&
2073
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078
(exit $ac_status); }; } &&
2079
{ ac_try='test -s conftest.$ac_objext'
2080
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084
(exit $ac_status); }; }; then
2085
ac_cv_prog_cc_stdc=$ac_arg
2088
echo "$as_me: failed program was:" >&5
2089
sed 's/^/| /' conftest.$ac_ext >&5
2968
if ac_fn_c_try_compile "$LINENO"; then :
2969
ac_cv_prog_cc_c89=$ac_arg
2092
rm -f conftest.err conftest.$ac_objext
2971
rm -f core conftest.err conftest.$ac_objext
2972
test "x$ac_cv_prog_cc_c89" != "xno" && break
2094
rm -f conftest.$ac_ext conftest.$ac_objext
2974
rm -f conftest.$ac_ext
2099
case "x$ac_cv_prog_cc_stdc" in
2101
echo "$as_me:$LINENO: result: none needed" >&5
2102
echo "${ECHO_T}none needed" >&6 ;;
2979
case "x$ac_cv_prog_cc_c89" in
2981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2982
$as_echo "none needed" >&6; } ;;
2984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2985
$as_echo "unsupported" >&6; } ;;
2104
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2105
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2106
CC="$CC $ac_cv_prog_cc_stdc" ;;
2987
CC="$CC $ac_cv_prog_cc_c89"
2988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2989
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2109
# Some people use a C++ compiler to compile C. Since we use `exit',
2110
# in C++ we need to declare it. In case someone uses the same compiler
2111
# for both compiling C and C++ we need to have the C++ compiler decide
2112
# the declaration of exit, since it's the most demanding environment.
2113
cat >conftest.$ac_ext <<_ACEOF
2118
rm -f conftest.$ac_objext
2119
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120
(eval $ac_compile) 2>conftest.er1
2122
grep -v '^ *+' conftest.er1 >conftest.err
2124
cat conftest.err >&5
2125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126
(exit $ac_status); } &&
2127
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132
(exit $ac_status); }; } &&
2133
{ ac_try='test -s conftest.$ac_objext'
2134
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138
(exit $ac_status); }; }; then
2139
for ac_declaration in \
2141
'extern "C" void std::exit (int) throw (); using std::exit;' \
2142
'extern "C" void std::exit (int); using std::exit;' \
2143
'extern "C" void exit (int) throw ();' \
2144
'extern "C" void exit (int);' \
2147
cat >conftest.$ac_ext <<_ACEOF
2150
cat confdefs.h >>conftest.$ac_ext
2151
cat >>conftest.$ac_ext <<_ACEOF
2152
/* end confdefs.h. */
2163
rm -f conftest.$ac_objext
2164
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165
(eval $ac_compile) 2>conftest.er1
2167
grep -v '^ *+' conftest.er1 >conftest.err
2169
cat conftest.err >&5
2170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171
(exit $ac_status); } &&
2172
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177
(exit $ac_status); }; } &&
2178
{ ac_try='test -s conftest.$ac_objext'
2179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183
(exit $ac_status); }; }; then
2186
echo "$as_me: failed program was:" >&5
2187
sed 's/^/| /' conftest.$ac_ext >&5
2191
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2192
cat >conftest.$ac_ext <<_ACEOF
2195
cat confdefs.h >>conftest.$ac_ext
2196
cat >>conftest.$ac_ext <<_ACEOF
2197
/* end confdefs.h. */
2207
rm -f conftest.$ac_objext
2208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209
(eval $ac_compile) 2>conftest.er1
2211
grep -v '^ *+' conftest.er1 >conftest.err
2213
cat conftest.err >&5
2214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
(exit $ac_status); } &&
2216
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
(exit $ac_status); }; } &&
2222
{ ac_try='test -s conftest.$ac_objext'
2223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
(exit $ac_status); }; }; then
2230
echo "$as_me: failed program was:" >&5
2231
sed 's/^/| /' conftest.$ac_ext >&5
2234
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237
if test -n "$ac_declaration"; then
2238
echo '#ifdef __cplusplus' >>confdefs.h
2239
echo $ac_declaration >>confdefs.h
2240
echo '#endif' >>confdefs.h
2244
echo "$as_me: failed program was:" >&5
2245
sed 's/^/| /' conftest.$ac_ext >&5
2248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991
if test "x$ac_cv_prog_cc_c89" != xno; then :
2250
2996
ac_cpp='$CPP $CPPFLAGS'
2251
2997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252
2998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253
2999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
3002
ac_cpp='$CXXCPP $CPPFLAGS'
2257
3003
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258
3004
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259
3005
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2260
if test -n "$ac_tool_prefix"; then
2261
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3006
if test -z "$CXX"; then
3007
if test -n "$CCC"; then
3010
if test -n "$ac_tool_prefix"; then
3011
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2263
3013
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264
3014
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2265
echo "$as_me:$LINENO: checking for $ac_word" >&5
2266
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267
if test "${ac_cv_prog_CXX+set}" = set; then
2268
echo $ECHO_N "(cached) $ECHO_C" >&6
3015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016
$as_echo_n "checking for $ac_word... " >&6; }
3017
if test "${ac_cv_prog_CXX+set}" = set; then :
3018
$as_echo_n "(cached) " >&6
2270
3020
if test -n "$CXX"; then
2271
3021
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3191
3748
if test "x$use_vsnprintf" != xyes; then
3193
for ac_func in vsnprintf
3195
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3196
echo "$as_me:$LINENO: checking for $ac_func" >&5
3197
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3198
if eval "test \"\${$as_ac_var+set}\" = set"; then
3199
echo $ECHO_N "(cached) $ECHO_C" >&6
3201
cat >conftest.$ac_ext <<_ACEOF
3204
cat confdefs.h >>conftest.$ac_ext
3205
cat >>conftest.$ac_ext <<_ACEOF
3206
/* end confdefs.h. */
3207
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3208
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3209
#define $ac_func innocuous_$ac_func
3211
/* System header to define __stub macros and hopefully few prototypes,
3212
which can conflict with char $ac_func (); below.
3213
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214
<limits.h> exists even on freestanding compilers. */
3217
# include <limits.h>
3219
# include <assert.h>
3224
/* Override any gcc2 internal prototype to avoid an error. */
3229
/* We use char because int might match the return type of a gcc2
3230
builtin and then its argument prototype would still apply. */
3232
/* The GNU C library defines this for functions which it implements
3233
to always fail with ENOSYS. Some functions are actually named
3234
something starting with __ and the normal name is an alias. */
3235
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3238
char (*f) () = $ac_func;
3247
return f != $ac_func;
3252
rm -f conftest.$ac_objext conftest$ac_exeext
3253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254
(eval $ac_link) 2>conftest.er1
3256
grep -v '^ *+' conftest.er1 >conftest.err
3258
cat conftest.err >&5
3259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260
(exit $ac_status); } &&
3261
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266
(exit $ac_status); }; } &&
3267
{ ac_try='test -s conftest$ac_exeext'
3268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272
(exit $ac_status); }; }; then
3273
eval "$as_ac_var=yes"
3275
echo "$as_me: failed program was:" >&5
3276
sed 's/^/| /' conftest.$ac_ext >&5
3278
eval "$as_ac_var=no"
3280
rm -f conftest.err conftest.$ac_objext \
3281
conftest$ac_exeext conftest.$ac_ext
3283
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3284
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3285
if test `eval echo '${'$as_ac_var'}'` = yes; then
3286
cat >>confdefs.h <<_ACEOF
3287
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3749
for ac_func in snprintf vsnprintf
3751
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3752
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3753
eval as_val=\$$as_ac_var
3754
if test "x$as_val" = x""yes; then :
3755
cat >>confdefs.h <<_ACEOF
3756
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
3765
$as_echo_n "checking for long long int... " >&6; }
3766
if test "${ac_cv_c_long_long+set}" = set; then :
3767
$as_echo_n "(cached) " >&6
3769
if test "$GCC" = yes; then
3770
ac_cv_c_long_long=yes
3772
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773
/* end confdefs.h. */
3783
if ac_fn_c_try_compile "$LINENO"; then :
3784
ac_cv_c_long_long=yes
3786
ac_cv_c_long_long=no
3788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
3792
$as_echo "$ac_cv_c_long_long" >&6; }
3794
if test $ac_cv_c_long_long = yes; then
3795
$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
3799
# Check whether --enable-threads was given.
3800
if test "${enable_threads+set}" = set; then :
3801
enableval=$enable_threads;
3809
if test "x$enable_threads" != xno; then
3811
ac_cpp='$CPP $CPPFLAGS'
3812
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3816
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3817
# On Suns, sometimes $CPP names a directory.
3818
if test -n "$CPP" && test -d "$CPP"; then
3821
if test -z "$CPP"; then
3822
if test "${ac_cv_prog_CPP+set}" = set; then :
3823
$as_echo_n "(cached) " >&6
3825
# Double quotes because CPP needs to be expanded
3826
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829
for ac_c_preproc_warn_flag in '' yes
3831
# Use a header file that comes with gcc, so configuring glibc
3832
# with a fresh cross-compiler works.
3833
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834
# <limits.h> exists even on freestanding compilers.
3835
# On the NeXT, cc -E runs the code through the compiler's parser,
3836
# not just through cpp. "Syntax error" is here to catch this case.
3837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838
/* end confdefs.h. */
3840
# include <limits.h>
3842
# include <assert.h>
3846
if ac_fn_c_try_cpp "$LINENO"; then :
3849
# Broken: fails on valid input.
3852
rm -f conftest.err conftest.$ac_ext
3854
# OK, works on sane cases. Now check whether nonexistent headers
3855
# can be detected and how.
3856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857
/* end confdefs.h. */
3858
#include <ac_nonexistent.h>
3860
if ac_fn_c_try_cpp "$LINENO"; then :
3861
# Broken: success on invalid input.
3864
# Passes both tests.
3868
rm -f conftest.err conftest.$ac_ext
3871
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872
rm -f conftest.err conftest.$ac_ext
3873
if $ac_preproc_ok; then :
3885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3886
$as_echo "$CPP" >&6; }
3888
for ac_c_preproc_warn_flag in '' yes
3890
# Use a header file that comes with gcc, so configuring glibc
3891
# with a fresh cross-compiler works.
3892
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3893
# <limits.h> exists even on freestanding compilers.
3894
# On the NeXT, cc -E runs the code through the compiler's parser,
3895
# not just through cpp. "Syntax error" is here to catch this case.
3896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897
/* end confdefs.h. */
3899
# include <limits.h>
3901
# include <assert.h>
3905
if ac_fn_c_try_cpp "$LINENO"; then :
3908
# Broken: fails on valid input.
3911
rm -f conftest.err conftest.$ac_ext
3913
# OK, works on sane cases. Now check whether nonexistent headers
3914
# can be detected and how.
3915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916
/* end confdefs.h. */
3917
#include <ac_nonexistent.h>
3919
if ac_fn_c_try_cpp "$LINENO"; then :
3920
# Broken: success on invalid input.
3923
# Passes both tests.
3927
rm -f conftest.err conftest.$ac_ext
3930
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3931
rm -f conftest.err conftest.$ac_ext
3932
if $ac_preproc_ok; then :
3935
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3938
See \`config.log' for more details." "$LINENO" 5; }
3942
ac_cpp='$CPP $CPPFLAGS'
3943
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3949
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3950
if test "${ac_cv_path_GREP+set}" = set; then :
3951
$as_echo_n "(cached) " >&6
3953
if test -z "$GREP"; then
3954
ac_path_GREP_found=false
3955
# Loop through the user's path and test for each of PROGNAME-LIST
3956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960
test -z "$as_dir" && as_dir=.
3961
for ac_prog in grep ggrep; do
3962
for ac_exec_ext in '' $ac_executable_extensions; do
3963
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3964
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3965
# Check for GNU ac_path_GREP and select it if it is found.
3966
# Check for GNU $ac_path_GREP
3967
case `"$ac_path_GREP" --version 2>&1` in
3969
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3972
$as_echo_n 0123456789 >"conftest.in"
3975
cat "conftest.in" "conftest.in" >"conftest.tmp"
3976
mv "conftest.tmp" "conftest.in"
3977
cp "conftest.in" "conftest.nl"
3978
$as_echo 'GREP' >> "conftest.nl"
3979
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3980
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3981
as_fn_arith $ac_count + 1 && ac_count=$as_val
3982
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3983
# Best one so far, save it but keep looking for a better one
3984
ac_cv_path_GREP="$ac_path_GREP"
3985
ac_path_GREP_max=$ac_count
3987
# 10*(2^10) chars as input seems more than enough
3988
test $ac_count -gt 10 && break
3990
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993
$ac_path_GREP_found && break 3
3998
if test -z "$ac_cv_path_GREP"; then
3999
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002
ac_cv_path_GREP=$GREP
4006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4007
$as_echo "$ac_cv_path_GREP" >&6; }
4008
GREP="$ac_cv_path_GREP"
4011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4012
$as_echo_n "checking for egrep... " >&6; }
4013
if test "${ac_cv_path_EGREP+set}" = set; then :
4014
$as_echo_n "(cached) " >&6
4016
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4017
then ac_cv_path_EGREP="$GREP -E"
4019
if test -z "$EGREP"; then
4020
ac_path_EGREP_found=false
4021
# Loop through the user's path and test for each of PROGNAME-LIST
4022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026
test -z "$as_dir" && as_dir=.
4027
for ac_prog in egrep; do
4028
for ac_exec_ext in '' $ac_executable_extensions; do
4029
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4031
# Check for GNU ac_path_EGREP and select it if it is found.
4032
# Check for GNU $ac_path_EGREP
4033
case `"$ac_path_EGREP" --version 2>&1` in
4035
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038
$as_echo_n 0123456789 >"conftest.in"
4041
cat "conftest.in" "conftest.in" >"conftest.tmp"
4042
mv "conftest.tmp" "conftest.in"
4043
cp "conftest.in" "conftest.nl"
4044
$as_echo 'EGREP' >> "conftest.nl"
4045
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047
as_fn_arith $ac_count + 1 && ac_count=$as_val
4048
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049
# Best one so far, save it but keep looking for a better one
4050
ac_cv_path_EGREP="$ac_path_EGREP"
4051
ac_path_EGREP_max=$ac_count
4053
# 10*(2^10) chars as input seems more than enough
4054
test $ac_count -gt 10 && break
4056
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059
$ac_path_EGREP_found && break 3
4064
if test -z "$ac_cv_path_EGREP"; then
4065
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4068
ac_cv_path_EGREP=$EGREP
4073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4074
$as_echo "$ac_cv_path_EGREP" >&6; }
4075
EGREP="$ac_cv_path_EGREP"
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4079
$as_echo_n "checking for ANSI C header files... " >&6; }
4080
if test "${ac_cv_header_stdc+set}" = set; then :
4081
$as_echo_n "(cached) " >&6
4083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084
/* end confdefs.h. */
4098
if ac_fn_c_try_compile "$LINENO"; then :
4099
ac_cv_header_stdc=yes
4101
ac_cv_header_stdc=no
4103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105
if test $ac_cv_header_stdc = yes; then
4106
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108
/* end confdefs.h. */
4112
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113
$EGREP "memchr" >/dev/null 2>&1; then :
4116
ac_cv_header_stdc=no
4122
if test $ac_cv_header_stdc = yes; then
4123
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125
/* end confdefs.h. */
4129
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130
$EGREP "free" >/dev/null 2>&1; then :
4133
ac_cv_header_stdc=no
4139
if test $ac_cv_header_stdc = yes; then
4140
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4141
if test "$cross_compiling" = yes; then :
4144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145
/* end confdefs.h. */
4148
#if ((' ' & 0x0FF) == 0x020)
4149
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4150
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4152
# define ISLOWER(c) \
4153
(('a' <= (c) && (c) <= 'i') \
4154
|| ('j' <= (c) && (c) <= 'r') \
4155
|| ('s' <= (c) && (c) <= 'z'))
4156
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4164
for (i = 0; i < 256; i++)
4165
if (XOR (islower (i), ISLOWER (i))
4166
|| toupper (i) != TOUPPER (i))
4171
if ac_fn_c_try_run "$LINENO"; then :
4174
ac_cv_header_stdc=no
4176
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4177
conftest.$ac_objext conftest.beam conftest.$ac_ext
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4183
$as_echo "$ac_cv_header_stdc" >&6; }
4184
if test $ac_cv_header_stdc = yes; then
4186
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4190
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4191
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4192
inttypes.h stdint.h unistd.h
4194
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4197
eval as_val=\$$as_ac_Header
4198
if test "x$as_val" = x""yes; then :
4199
cat >>confdefs.h <<_ACEOF
4200
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4208
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
4209
if test "x$ac_cv_header_pthread_h" = x""yes; then :
4210
$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
4216
if test x$ac_cv_header_pthread_h = xyes; then
4217
for flag in -lpthreads -lpthread -pthread; do
4218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
4219
$as_echo_n "checking for pthread_create using $flag... " >&6; }
4222
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223
/* end confdefs.h. */
4224
#include <pthread.h>
4228
pthread_create(0, 0, 0, 0);
4233
if ac_fn_c_try_link "$LINENO"; then :
4236
rm -f core conftest.err conftest.$ac_objext \
4237
conftest$ac_exeext conftest.$ac_ext
4238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
4239
$as_echo "$have_pthread" >&6; }
4242
if test $have_pthread = yes; then
4243
PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
4244
PTHREAD_LIBS="$flag"
4246
# Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
4247
# be POSIX-compliant... :(
4248
if test $uname = SunOS; then
4249
PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
3295
4260
DSO="${DSO:=:}"
3296
4261
DSOFLAGS="${DSOFLAGS:=}"
3298
# Check whether --enable-shared or --disable-shared was given.
3299
if test "${enable_shared+set}" = set; then
3300
enableval="$enable_shared"
4263
# Check whether --enable-shared was given.
4264
if test "${enable_shared+set}" = set; then :
4265
enableval=$enable_shared;
3304
4269
if test x$enable_shared = xyes; then
3305
echo "$as_me:$LINENO: checking for shared library support" >&5
3306
echo $ECHO_N "checking for shared library support... $ECHO_C" >&6
4270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library support" >&5
4271
$as_echo_n "checking for shared library support... " >&6; }
3309
4274
case "$uname" in
3310
4275
SunOS* | UNIX_S*)
3311
echo "$as_me:$LINENO: result: yes" >&5
3312
echo "${ECHO_T}yes" >&6
3313
LIBMXML="libmxml.so.1.0"
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4277
$as_echo "yes" >&6; }
4278
LIBMXML="libmxml.so.1.4"
3315
4280
DSOFLAGS="$DSOFLAGS -Wl,-h,libmxml.so.1 -G -R\$(libdir) \$(OPTIM)"
3316
4281
LDFLAGS="$LDFLAGS -R\$(libdir)"
3320
echo "$as_me:$LINENO: result: yes" >&5
3321
echo "${ECHO_T}yes" >&6
4285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286
$as_echo "yes" >&6; }
3322
4287
LIBMXML="libmxml.sl.1"
3324
4289
DSOFLAGS="$DSOFLAGS -b -z +h libmxml.sl.1 +s +b \$(libdir)"
4021
5142
# Have a temporary directory for convenience. Make it in the build tree
4022
# simply because there is no reason to put it here, and in addition,
5143
# simply because there is no reason against having it here, and in addition,
4023
5144
# creating and moving files from /tmp can sometimes cause problems.
4024
# Create a temporary directory, and hook for its removal unless debugging.
5145
# Hook for its removal unless debugging.
5146
# Note that there is a small window in which the directory will not be cleaned:
5147
# after its creation but before its name has been assigned to `$tmp'.
4027
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4028
trap '{ (exit 1); exit 1; }' 1 2 13 15
5151
trap 'exit_status=$?
5152
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5154
trap 'as_fn_exit 1' 1 2 13 15
4031
5156
# Create a (secure) tmp directory for tmp files.
4034
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5159
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4035
5160
test -n "$tmp" && test -d "$tmp"
4038
tmp=./confstat$$-$RANDOM
4039
(umask 077 && mkdir $tmp)
5163
tmp=./conf$$-$RANDOM
5164
(umask 077 && mkdir "$tmp")
5165
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5167
# Set up the scripts for CONFIG_FILES section.
5168
# No need to generate them if there are no CONFIG_FILES.
5169
# This happens for instance with `./config.status config.h'.
5170
if test -n "$CONFIG_FILES"; then
5173
ac_cr=`echo X | tr X '\015'`
5174
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5175
# But we know of no other shell where ac_cr would be empty at this
5176
# point, so we can use a bashism as a fallback.
5177
if test "x$ac_cr" = x; then
5178
eval ac_cr=\$\'\\r\'
5180
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5181
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5187
echo 'BEGIN {' >"$tmp/subs1.awk" &&
4042
echo "$me: cannot create a temporary directory in ." >&2
4043
{ (exit 1); exit 1; }
4048
cat >>$CONFIG_STATUS <<_ACEOF
4051
# CONFIG_FILES section.
4054
# No need to generate the scripts if there are no CONFIG_FILES.
4055
# This happens for instance when ./config.status config.h
4056
if test -n "\$CONFIG_FILES"; then
4057
# Protect against being on the right side of a sed subst in config.status.
4058
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4059
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4060
s,@SHELL@,$SHELL,;t t
4061
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4062
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4063
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4064
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4065
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4066
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4067
s,@exec_prefix@,$exec_prefix,;t t
4068
s,@prefix@,$prefix,;t t
4069
s,@program_transform_name@,$program_transform_name,;t t
4070
s,@bindir@,$bindir,;t t
4071
s,@sbindir@,$sbindir,;t t
4072
s,@libexecdir@,$libexecdir,;t t
4073
s,@datadir@,$datadir,;t t
4074
s,@sysconfdir@,$sysconfdir,;t t
4075
s,@sharedstatedir@,$sharedstatedir,;t t
4076
s,@localstatedir@,$localstatedir,;t t
4077
s,@libdir@,$libdir,;t t
4078
s,@includedir@,$includedir,;t t
4079
s,@oldincludedir@,$oldincludedir,;t t
4080
s,@infodir@,$infodir,;t t
4081
s,@mandir@,$mandir,;t t
4082
s,@build_alias@,$build_alias,;t t
4083
s,@host_alias@,$host_alias,;t t
4084
s,@target_alias@,$target_alias,;t t
4086
s,@ECHO_C@,$ECHO_C,;t t
4087
s,@ECHO_N@,$ECHO_N,;t t
4088
s,@ECHO_T@,$ECHO_T,;t t
4090
s,@VERSION@,$VERSION,;t t
4091
s,@LDFLAGS@,$LDFLAGS,;t t
4092
s,@OPTIM@,$OPTIM,;t t
4093
s,@docdir@,$docdir,;t t
4095
s,@CFLAGS@,$CFLAGS,;t t
4096
s,@CPPFLAGS@,$CPPFLAGS,;t t
4097
s,@ac_ct_CC@,$ac_ct_CC,;t t
4098
s,@EXEEXT@,$EXEEXT,;t t
4099
s,@OBJEXT@,$OBJEXT,;t t
4101
s,@CXXFLAGS@,$CXXFLAGS,;t t
4102
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4103
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4104
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4105
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4106
s,@RANLIB@,$RANLIB,;t t
4107
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4111
s,@MKDIR@,$MKDIR,;t t
4112
s,@NROFF@,$NROFF,;t t
4113
s,@GROFF@,$GROFF,;t t
4115
s,@ARFLAGS@,$ARFLAGS,;t t
4117
s,@DSOFLAGS@,$DSOFLAGS,;t t
4118
s,@LIBMXML@,$LIBMXML,;t t
4119
s,@PICFLAG@,$PICFLAG,;t t
4120
s,@CAT1EXT@,$CAT1EXT,;t t
4121
s,@CAT3EXT@,$CAT3EXT,;t t
4122
s,@MAN1EXT@,$MAN1EXT,;t t
4123
s,@MAN3EXT@,$MAN3EXT,;t t
4124
s,@PC_CFLAGS@,$PC_CFLAGS,;t t
4125
s,@PC_LIBS@,$PC_LIBS,;t t
4126
s,@LIBOBJS@,$LIBOBJS,;t t
4127
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4132
cat >>$CONFIG_STATUS <<\_ACEOF
4133
# Split the substitutions into bite-sized pieces for seds with
4134
# small command number limits, like on Digital OSF/1 and HP-UX.
4136
ac_sed_frag=1 # Number of current file.
4137
ac_beg=1 # First line for current file.
4138
ac_end=$ac_max_sed_lines # Line after last line for current file.
4141
while $ac_more_lines; do
4142
if test $ac_beg -gt 1; then
4143
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4145
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4147
if test ! -s $tmp/subs.frag; then
4150
# The purpose of the label and of the branching condition is to
4151
# speed up the sed processing (if there are no `@' at all, there
4152
# is no need to browse any of the substitutions).
4153
# These are the two extra sed commands mentioned above.
4155
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4156
if test -z "$ac_sed_cmds"; then
4157
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4159
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4161
ac_sed_frag=`expr $ac_sed_frag + 1`
4163
ac_end=`expr $ac_end + $ac_max_sed_lines`
4166
if test -z "$ac_sed_cmds"; then
5192
echo "cat >conf$$subs.awk <<_ACEOF" &&
5193
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5196
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5197
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5199
for ac_last_try in false false false false false :; do
5200
. ./conf$$subs.sh ||
5201
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5203
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5204
if test $ac_delim_n = $ac_delim_num; then
5206
elif $ac_last_try; then
5207
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5209
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5214
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5215
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5219
s/^/S["/; s/!.*/"]=/
5229
s/\(.\{148\}\)..*/\1/
5231
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5236
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5243
s/\(.\{148\}\)..*/\1/
5245
s/["\\]/\\&/g; s/^/"/; s/$/"/
5249
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5254
' <conf$$subs.awk | sed '
5259
' >>$CONFIG_STATUS || ac_write_fail=1
5260
rm -f conf$$subs.awk
5261
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5263
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5264
for (key in S) S_is_set[key] = 1
5270
nfields = split(line, field, "@")
5272
len = length(field[1])
5273
for (i = 2; i < nfields; i++) {
5275
keylen = length(key)
5276
if (S_is_set[key]) {
5278
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5279
len += length(value) + length(field[++i])
5290
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5291
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5292
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5295
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5296
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
5299
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5300
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5301
# trailing colons and then remove the whole line if VPATH becomes empty
5302
# (actually we leave an empty line to preserve line numbers).
5303
if test "x$srcdir" = x.; then
5304
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5308
s/^\([^=]*=[ ]*\):*/\1/
5314
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4169
5315
fi # test -n "$CONFIG_FILES"
4172
cat >>$CONFIG_STATUS <<\_ACEOF
4173
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4174
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4176
- | *:- | *:-:* ) # input from stdin
4178
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4179
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4180
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4181
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4182
* ) ac_file_in=$ac_file.in ;;
4185
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4186
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5317
# Set up the scripts for CONFIG_HEADERS section.
5318
# No need to generate them if there are no CONFIG_HEADERS.
5319
# This happens for instance with `./config.status Makefile'.
5320
if test -n "$CONFIG_HEADERS"; then
5321
cat >"$tmp/defines.awk" <<\_ACAWK ||
5325
# Transform confdefs.h into an awk script `defines.awk', embedded as
5326
# here-document in config.status, that substitutes the proper values into
5327
# config.h.in to produce config.h.
5329
# Create a delimiter string that does not exist in confdefs.h, to ease
5330
# handling of long lines.
5332
for ac_last_try in false false :; do
5333
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5334
if test -z "$ac_t"; then
5336
elif $ac_last_try; then
5337
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5339
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5343
# For the awk script, D is an array of macro values keyed by name,
5344
# likewise P contains macro parameters if any. Preserve backslash
5345
# newline sequences.
5347
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5349
s/.\{148\}/&'"$ac_delim"'/g
5352
s/^[ ]*#[ ]*define[ ][ ]*/ /
5359
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5361
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5365
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5366
D["\1"]=" \3\\\\\\n"\\/p
5368
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5373
s/.\{148\}/&'"$ac_delim"'/g
5378
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5381
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5383
' <confdefs.h | sed '
5384
s/'"$ac_delim"'/"\\\
5385
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5387
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5388
for (key in D) D_is_set[key] = 1
5391
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5393
split(line, arg, " ")
5394
if (arg[1] == "#") {
5398
defundef = substr(arg[1], 2)
5401
split(mac1, mac2, "(") #)
5403
prefix = substr(line, 1, index(line, defundef) - 1)
5404
if (D_is_set[macro]) {
5405
# Preserve the white space surrounding the "#".
5406
print prefix "define", macro P[macro] D[macro]
5409
# Replace #undef with comments. This is necessary, for example,
5410
# in the case of _POSIX_SOURCE, which is predefined and required
5411
# on some systems where configure will not decide to define it.
5412
if (defundef == "undef") {
5413
print "/*", prefix defundef, macro, "*/"
5421
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5422
as_fn_error "could not setup config headers machinery" "$LINENO" 5
5423
fi # test -n "$CONFIG_HEADERS"
5426
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5431
:[FHLC]) ac_mode=$ac_tag; continue;;
5433
case $ac_mode$ac_tag in
5435
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5436
:[FH]-) ac_tag=-:-;;
5437
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5454
-) ac_f="$tmp/stdin";;
5455
*) # Look for the file first in the build tree, then in the source tree
5456
# (if the path is not absolute). The absolute path cannot be DOS-style,
5457
# because $ac_f cannot contain `:'.
5461
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5463
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5465
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5466
as_fn_append ac_file_inputs " '$ac_f'"
5469
# Let's still pretend it is `configure' which instantiates (i.e., don't
5470
# use $as_me), people would be surprised to read:
5471
# /* config.h. Generated by config.status. */
5472
configure_input='Generated from '`
5473
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5475
if test x"$ac_file" != x-; then
5476
configure_input="$ac_file. $configure_input"
5477
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5478
$as_echo "$as_me: creating $ac_file" >&6;}
5480
# Neutralize special characters interpreted by sed in replacement strings.
5481
case $configure_input in #(
5482
*\&* | *\|* | *\\* )
5483
ac_sed_conf_input=`$as_echo "$configure_input" |
5484
sed 's/[\\\\&|]/\\\\&/g'`;; #(
5485
*) ac_sed_conf_input=$configure_input;;
5489
*:-:* | *:-) cat >"$tmp/stdin" \
5490
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5495
ac_dir=`$as_dirname -- "$ac_file" ||
4187
5496
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4188
5497
X"$ac_file" : 'X\(//\)[^/]' \| \
4189
5498
X"$ac_file" : 'X\(//\)$' \| \
4190
X"$ac_file" : 'X\(/\)' \| \
4191
. : '\(.\)' 2>/dev/null ||
4193
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4194
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4195
/^X\(\/\/\)$/{ s//\1/; q; }
4196
/^X\(\/\).*/{ s//\1/; q; }
4198
{ if $as_mkdir_p; then
4203
while test ! -d "$as_dir"; do
4204
as_dirs="$as_dir $as_dirs"
4205
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4206
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4207
X"$as_dir" : 'X\(//\)[^/]' \| \
4208
X"$as_dir" : 'X\(//\)$' \| \
4209
X"$as_dir" : 'X\(/\)' \| \
4210
. : '\(.\)' 2>/dev/null ||
4212
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4213
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4214
/^X\(\/\/\)$/{ s//\1/; q; }
4215
/^X\(\/\).*/{ s//\1/; q; }
4218
test ! -n "$as_dirs" || mkdir $as_dirs
4219
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4220
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4221
{ (exit 1); exit 1; }; }; }
5499
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5500
$as_echo X"$ac_file" |
5501
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5518
as_dir="$ac_dir"; as_fn_mkdir_p
4225
if test "$ac_dir" != .; then
4226
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4227
# A "../" for each directory in $ac_dir_suffix.
4228
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4230
ac_dir_suffix= ac_top_builddir=
5522
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5524
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5525
# A ".." for each directory in $ac_dir_suffix.
5526
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5527
case $ac_top_builddir_sub in
5528
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5529
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5532
ac_abs_top_builddir=$ac_pwd
5533
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5534
# for backward compatibility:
5535
ac_top_builddir=$ac_top_build_prefix
4233
5537
case $srcdir in
4234
.) # No --srcdir option. We are building in place.
5538
.) # We are building in place.
4236
if test -z "$ac_top_builddir"; then
4239
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4241
[\\/]* | ?:[\\/]* ) # Absolute path.
5540
ac_top_srcdir=$ac_top_builddir_sub
5541
ac_abs_top_srcdir=$ac_pwd ;;
5542
[\\/]* | ?:[\\/]* ) # Absolute name.
4242
5543
ac_srcdir=$srcdir$ac_dir_suffix;
4243
ac_top_srcdir=$srcdir ;;
4245
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4246
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4249
# Do not use `cd foo && pwd` to compute absolute paths, because
4250
# the directories may not exist.
4252
.) ac_abs_builddir="$ac_dir";;
4255
.) ac_abs_builddir=`pwd`;;
4256
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4257
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4260
case $ac_abs_builddir in
4261
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4263
case ${ac_top_builddir}. in
4264
.) ac_abs_top_builddir=$ac_abs_builddir;;
4265
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4266
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4269
case $ac_abs_builddir in
4270
.) ac_abs_srcdir=$ac_srcdir;;
4273
.) ac_abs_srcdir=$ac_abs_builddir;;
4274
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4275
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4278
case $ac_abs_builddir in
4279
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4281
case $ac_top_srcdir in
4282
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4283
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4284
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5544
ac_top_srcdir=$srcdir
5545
ac_abs_top_srcdir=$srcdir ;;
5547
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5548
ac_top_srcdir=$ac_top_build_prefix$srcdir
5549
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5551
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4289
5560
case $INSTALL in
4290
5561
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4291
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5562
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4294
# Let's still pretend it is `configure' which instantiates (i.e., don't
4295
# use $as_me), people would be surprised to read:
4296
# /* config.h. Generated by config.status. */
4297
if test x"$ac_file" = x-; then
4300
configure_input="$ac_file. "
4302
configure_input=$configure_input"Generated from `echo $ac_file_in |
4303
sed 's,.*/,,'` by configure."
4305
# First look for the input files in the build tree, otherwise in the
4307
ac_file_inputs=`IFS=:
4308
for f in $ac_file_in; do
4310
-) echo $tmp/stdin ;;
4312
# Absolute (can't be DOS-style, as IFS=:)
4313
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4314
echo "$as_me: error: cannot find input file: $f" >&2;}
4315
{ (exit 1); exit 1; }; }
4318
if test -f "$f"; then
4321
elif test -f "$srcdir/$f"; then
4326
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4327
echo "$as_me: error: cannot find input file: $f" >&2;}
4328
{ (exit 1); exit 1; }; }
4331
done` || { (exit 1); exit 1; }
4333
if test x"$ac_file" != x-; then
4334
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4335
echo "$as_me: creating $ac_file" >&6;}
4339
cat >>$CONFIG_STATUS <<_ACEOF
5566
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5567
# If the template does not know about datarootdir, expand it.
5568
# FIXME: This hack should be removed a few years after 2.60.
5569
ac_datarootdir_hack=; ac_datarootdir_seen=
5580
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5581
*datarootdir*) ac_datarootdir_seen=yes;;
5582
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5583
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5584
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5586
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5587
ac_datarootdir_hack='
5588
s&@datadir@&$datadir&g
5589
s&@docdir@&$docdir&g
5590
s&@infodir@&$infodir&g
5591
s&@localedir@&$localedir&g
5592
s&@mandir@&$mandir&g
5593
s&\\\${datarootdir}&$datarootdir&g' ;;
5597
# Neutralize VPATH when `$srcdir' = `.'.
5598
# Shell code in configure.ac might set extrasub.
5599
# FIXME: do we really want to maintain this feature?
5600
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5601
ac_sed_extra="$ac_vpsub
4343
cat >>$CONFIG_STATUS <<\_ACEOF
5604
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4345
5606
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4346
s,@configure_input@,$configure_input,;t t
4347
s,@srcdir@,$ac_srcdir,;t t
4348
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4349
s,@top_srcdir@,$ac_top_srcdir,;t t
4350
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4351
s,@builddir@,$ac_builddir,;t t
4352
s,@abs_builddir@,$ac_abs_builddir,;t t
4353
s,@top_builddir@,$ac_top_builddir,;t t
4354
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4355
s,@INSTALL@,$ac_INSTALL,;t t
4356
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4358
if test x"$ac_file" != x-; then
4359
mv $tmp/out $ac_file
4367
cat >>$CONFIG_STATUS <<\_ACEOF
4370
# CONFIG_HEADER section.
4373
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4374
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4376
# ac_d sets the value in "#define NAME VALUE" lines.
4377
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4378
ac_dB='[ ].*$,\1#\2'
4381
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4382
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4383
ac_uB='$,\1#\2define\3'
4387
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4388
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5607
s|@configure_input@|$ac_sed_conf_input|;t t
5608
s&@top_builddir@&$ac_top_builddir_sub&;t t
5609
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5610
s&@srcdir@&$ac_srcdir&;t t
5611
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5612
s&@top_srcdir@&$ac_top_srcdir&;t t
5613
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5614
s&@builddir@&$ac_builddir&;t t
5615
s&@abs_builddir@&$ac_abs_builddir&;t t
5616
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5617
s&@INSTALL@&$ac_INSTALL&;t t
5618
$ac_datarootdir_hack
5620
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5621
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5623
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5624
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5625
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5626
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5627
which seems to be undefined. Please make sure it is defined." >&5
5628
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5629
which seems to be undefined. Please make sure it is defined." >&2;}
4389
5632
case $ac_file in
4390
- | *:- | *:-:* ) # input from stdin
4392
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4393
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4394
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4395
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4396
* ) ac_file_in=$ac_file.in ;;
4399
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4400
echo "$as_me: creating $ac_file" >&6;}
4402
# First look for the input files in the build tree, otherwise in the
4404
ac_file_inputs=`IFS=:
4405
for f in $ac_file_in; do
4407
-) echo $tmp/stdin ;;
4409
# Absolute (can't be DOS-style, as IFS=:)
4410
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4411
echo "$as_me: error: cannot find input file: $f" >&2;}
4412
{ (exit 1); exit 1; }; }
4413
# Do quote $f, to prevent DOS paths from being IFS'd.
4416
if test -f "$f"; then
4419
elif test -f "$srcdir/$f"; then
4424
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4425
echo "$as_me: error: cannot find input file: $f" >&2;}
4426
{ (exit 1); exit 1; }; }
4429
done` || { (exit 1); exit 1; }
4430
# Remove the trailing spaces.
4431
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4435
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4436
# `conftest.undefs', that substitutes the proper values into
4437
# config.h.in to produce config.h. The first handles `#define'
4438
# templates, and the second `#undef' templates.
4439
# And first: Protect against being on the right side of a sed subst in
4440
# config.status. Protect against being in an unquoted here document
4442
rm -f conftest.defines conftest.undefs
4443
# Using a here document instead of a string reduces the quoting nightmare.
4444
# Putting comments in sed scripts is not portable.
4446
# `end' is used to avoid that the second main sed command (meant for
4447
# 0-ary CPP macros) applies to n-ary macro definitions.
4448
# See the Autoconf documentation for `clear'.
4449
cat >confdef2sed.sed <<\_ACEOF
4454
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4456
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4459
# If some macros were called several times there might be several times
4460
# the same #defines, which is useless. Nevertheless, we may not want to
4461
# sort them, since we want the *last* AC-DEFINE to be honored.
4462
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4463
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4464
rm -f confdef2sed.sed
4466
# This sed command replaces #undef with comments. This is necessary, for
4467
# example, in the case of _POSIX_SOURCE, which is predefined and required
4468
# on some systems where configure will not decide to define it.
4469
cat >>conftest.undefs <<\_ACEOF
4470
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4473
# Break up conftest.defines because some shells have a limit on the size
4474
# of here documents, and old seds have small limits too (100 cmds).
4475
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4476
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4477
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4478
echo ' :' >>$CONFIG_STATUS
4480
while grep . conftest.defines >/dev/null
4482
# Write a limited-size here document to $tmp/defines.sed.
4483
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4484
# Speed up: don't consider the non `#define' lines.
4485
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4486
# Work around the forget-to-reset-the-flag bug.
4487
echo 't clr' >>$CONFIG_STATUS
4488
echo ': clr' >>$CONFIG_STATUS
4489
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4491
sed -f $tmp/defines.sed $tmp/in >$tmp/out
4495
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4496
rm -f conftest.defines
4497
mv conftest.tail conftest.defines
4499
rm -f conftest.defines
4500
echo ' fi # grep' >>$CONFIG_STATUS
4501
echo >>$CONFIG_STATUS
4503
# Break up conftest.undefs because some shells have a limit on the size
4504
# of here documents, and old seds have small limits too (100 cmds).
4505
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4507
while grep . conftest.undefs >/dev/null
4509
# Write a limited-size here document to $tmp/undefs.sed.
4510
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4511
# Speed up: don't consider the non `#undef'
4512
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4513
# Work around the forget-to-reset-the-flag bug.
4514
echo 't clr' >>$CONFIG_STATUS
4515
echo ': clr' >>$CONFIG_STATUS
4516
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4518
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4522
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4523
rm -f conftest.undefs
4524
mv conftest.tail conftest.undefs
4526
rm -f conftest.undefs
4528
cat >>$CONFIG_STATUS <<\_ACEOF
4529
# Let's still pretend it is `configure' which instantiates (i.e., don't
4530
# use $as_me), people would be surprised to read:
4531
# /* config.h. Generated by config.status. */
4532
if test x"$ac_file" = x-; then
4533
echo "/* Generated by configure. */" >$tmp/config.h
4535
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4537
cat $tmp/in >>$tmp/config.h
5633
-) cat "$tmp/out" && rm -f "$tmp/out";;
5634
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5636
|| as_fn_error "could not create $ac_file" "$LINENO" 5
4539
5642
if test x"$ac_file" != x-; then
4540
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4541
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4542
echo "$as_me: $ac_file is unchanged" >&6;}
5644
$as_echo "/* $configure_input */" \
5645
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5646
} >"$tmp/config.h" \
5647
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5648
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5649
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5650
$as_echo "$as_me: $ac_file is unchanged" >&6;}
4544
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4545
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4546
X"$ac_file" : 'X\(//\)[^/]' \| \
4547
X"$ac_file" : 'X\(//\)$' \| \
4548
X"$ac_file" : 'X\(/\)' \| \
4549
. : '\(.\)' 2>/dev/null ||
4551
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4552
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4553
/^X\(\/\/\)$/{ s//\1/; q; }
4554
/^X\(\/\).*/{ s//\1/; q; }
4556
{ if $as_mkdir_p; then
4561
while test ! -d "$as_dir"; do
4562
as_dirs="$as_dir $as_dirs"
4563
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4564
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4565
X"$as_dir" : 'X\(//\)[^/]' \| \
4566
X"$as_dir" : 'X\(//\)$' \| \
4567
X"$as_dir" : 'X\(/\)' \| \
4568
. : '\(.\)' 2>/dev/null ||
4570
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4571
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4572
/^X\(\/\/\)$/{ s//\1/; q; }
4573
/^X\(\/\).*/{ s//\1/; q; }
4576
test ! -n "$as_dirs" || mkdir $as_dirs
4577
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4578
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4579
{ (exit 1); exit 1; }; }; }
4582
mv $tmp/config.h $ac_file
5653
mv "$tmp/config.h" "$ac_file" \
5654
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5657
$as_echo "/* $configure_input */" \
5658
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5659
|| as_fn_error "could not create -" "$LINENO" 5
4591
cat >>$CONFIG_STATUS <<\_ACEOF
4593
{ (exit 0); exit 0; }
4595
chmod +x $CONFIG_STATUS
4596
5671
ac_clean_files=$ac_clean_files_save
5673
test $ac_write_fail = 0 ||
5674
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4599
5677
# configure is writing to config.log, and then calls config.status.
4600
5678
# config.status does its own redirection, appending to config.log.