411
1083
ac_prev=x_includes ;;
412
1084
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413
1085
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414
x_includes="$ac_optarg" ;;
1086
x_includes=$ac_optarg ;;
416
1088
-x-libraries | --x-libraries | --x-librarie | --x-librari \
417
1089
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418
1090
ac_prev=x_libraries ;;
419
1091
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420
1092
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421
x_libraries="$ac_optarg" ;;
1093
x_libraries=$ac_optarg ;;
423
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1095
-*) { echo "$as_me: error: unrecognized option: $ac_option
1096
Try \`$0 --help' for more information." >&2
1097
{ (exit 1); exit 1; }; }
1101
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102
# Reject names that are not valid shell variable names.
1103
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105
{ (exit 1); exit 1; }; }
1106
eval $ac_envvar=\$ac_optarg
1107
export $ac_envvar ;;
427
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428
echo "configure: warning: $ac_option: invalid host type" 1>&2
430
if test "x$nonopt" != xNONE; then
431
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1110
# FIXME: should be removed in autoconf 3.0.
1111
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
439
1120
if test -n "$ac_prev"; then
440
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445
# File descriptor usage:
448
# 2 errors and warnings
449
# 3 some systems may open it to /dev/tty
450
# 4 used on the Kubota Titan
451
# 6 checking for... messages and results
452
# 5 compiler messages saved in config.log
453
if test "$silent" = yes; then
461
This file contains any messages produced by compilers while
462
running configure, to aid debugging if configure makes a mistake.
465
# Strip out --no-create and --no-recursion so they do not pile up.
466
# Also quote any args containing shell metacharacters.
1121
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122
{ echo "$as_me: error: missing argument to $ac_option" >&2
1123
{ (exit 1); exit 1; }; }
1126
# Be sure to have absolute directory names.
1127
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128
datadir sysconfdir sharedstatedir localstatedir includedir \
1129
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130
libdir localedir mandir
471
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
472
| --no-cr | --no-c) ;;
473
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
474
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
1132
eval ac_val=\$$ac_var
1134
[\\/$]* | ?:[\\/]* ) continue;;
1135
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138
{ (exit 1); exit 1; }; }
482
# Only set these to C if already set. These must not be set unconditionally
483
# because not all systems understand e.g. LANG=C (notably SCO).
484
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485
# Non-C LC_CTYPE values break the ctype check.
486
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
487
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
491
# confdefs.h avoids OS command line length limits that DEFS can exceed.
492
rm -rf conftest* confdefs.h
493
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
496
# A filename unique to this package, relative to the directory that
497
# configure is in, which we can look for to find out if srcdir is correct.
498
ac_unique_file=src/mm3dcore/version.h
1141
# There might be people who depend on the old broken behavior: `$host'
1142
# used to hold the argument of --host etc.
1143
# FIXME: To remove some day.
1146
target=$target_alias
1148
# FIXME: To remove some day.
1149
if test "x$host_alias" != x; then
1150
if test "x$build_alias" = x; then
1151
cross_compiling=maybe
1152
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153
If a cross compiler is detected then cross compile mode will be used." >&2
1154
elif test "x$build_alias" != "x$host_alias"; then
1160
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
test "$silent" = yes && exec 6>/dev/null
1165
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166
ac_ls_di=`ls -di .` &&
1167
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168
{ echo "$as_me: error: Working directory cannot be determined" >&2
1169
{ (exit 1); exit 1; }; }
1170
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1172
{ (exit 1); exit 1; }; }
500
1175
# Find the source files, if location was not specified.
501
1176
if test -z "$srcdir"; then
502
1177
ac_srcdir_defaulted=yes
503
# Try the directory containing this script, then its parent.
505
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1178
# Try the directory containing this script, then the parent directory.
1179
ac_confdir=`$as_dirname -- "$0" ||
1180
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181
X"$0" : 'X\(//\)[^/]' \| \
1182
X"$0" : 'X\(//\)$' \| \
1183
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
507
1202
srcdir=$ac_confdir
508
if test ! -r $srcdir/$ac_unique_file; then
1203
if test ! -r "$srcdir/$ac_unique_file"; then
512
1207
ac_srcdir_defaulted=no
514
if test ! -r $srcdir/$ac_unique_file; then
515
if test "$ac_srcdir_defaulted" = yes; then
516
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
518
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1209
if test ! -r "$srcdir/$ac_unique_file"; then
1210
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212
{ (exit 1); exit 1; }; }
1214
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217
{ (exit 1); exit 1; }; }
1219
# When building in place, set srcdir=.
1220
if test "$ac_abs_confdir" = "$ac_pwd"; then
1223
# Remove unnecessary trailing slashes from srcdir.
1224
# Double slashes in file names in object file debugging info
1225
# mess up M-x gdb in Emacs.
1227
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229
for ac_var in $ac_precious_vars; do
1230
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231
eval ac_env_${ac_var}_value=\$${ac_var}
1232
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1237
# Report the --help message.
1239
if test "$ac_init_help" = "long"; then
1240
# Omit some internal or obsolete options to make the list less imposing.
1241
# This message is too long to be a string in the A/UX 3.1 sh.
1243
\`configure' configures mm3d 1.3.6 to adapt to many kinds of systems.
1245
Usage: $0 [OPTION]... [VAR=VALUE]...
1247
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248
VAR=VALUE. See below for descriptions of some of the useful variables.
1250
Defaults for the options are specified in brackets.
1253
-h, --help display this help and exit
1254
--help=short display options specific to this package
1255
--help=recursive display the short help of all the included packages
1256
-V, --version display version information and exit
1257
-q, --quiet, --silent do not print \`checking...' messages
1258
--cache-file=FILE cache test results in FILE [disabled]
1259
-C, --config-cache alias for \`--cache-file=config.cache'
1260
-n, --no-create do not create output files
1261
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1263
Installation directories:
1264
--prefix=PREFIX install architecture-independent files in PREFIX
1265
[$ac_default_prefix]
1266
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269
By default, \`make install' will install all the files in
1270
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272
for instance \`--prefix=\$HOME'.
1274
For better control, use the options below.
1276
Fine tuning of the installation directories:
1277
--bindir=DIR user executables [EPREFIX/bin]
1278
--sbindir=DIR system admin executables [EPREFIX/sbin]
1279
--libexecdir=DIR program executables [EPREFIX/libexec]
1280
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283
--libdir=DIR object code libraries [EPREFIX/lib]
1284
--includedir=DIR C header files [PREFIX/include]
1285
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1286
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288
--infodir=DIR info documentation [DATAROOTDIR/info]
1289
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290
--mandir=DIR man documentation [DATAROOTDIR/man]
1291
--docdir=DIR documentation root [DATAROOTDIR/doc/mm3d]
1292
--htmldir=DIR html documentation [DOCDIR]
1293
--dvidir=DIR dvi documentation [DOCDIR]
1294
--pdfdir=DIR pdf documentation [DOCDIR]
1295
--psdir=DIR ps documentation [DOCDIR]
1301
--program-prefix=PREFIX prepend PREFIX to installed program names
1302
--program-suffix=SUFFIX append SUFFIX to installed program names
1303
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306
--x-includes=DIR X include files are in DIR
1307
--x-libraries=DIR X library files are in DIR
1311
if test -n "$ac_init_help"; then
1312
case $ac_init_help in
1313
short | recursive ) echo "Configuration of mm3d 1.3.6:";;
1318
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320
--disable-dependency-tracking speeds up one-time build
1321
--enable-dependency-tracking do not reject slow dependency extractors
1322
--enable-debug=yes/no Specify "yes" to enable a debug build.
1323
$with_Mesa_help_string
1326
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1327
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1328
--with-lua-dir=DIR DIR is equal to the install prefix of Lua.
1329
Header files are in DIR/include, and Library
1330
files are in DIR/lib
1331
--with-lua-include-dir=DIR
1332
Lua header files are in DIR
1333
--with-lua-lib-dir=DIR Lua libraries are in DIR
1334
--with-lua-lib=LIB Use -lLIB to link with the lua library
1335
--with-lualib-dir=DIR DIR is equal to the install prefix of Lualib.
1336
Header files are in DIR/include, and Library
1337
files are in DIR/lib
1338
--with-lualib-include-dir=DIR
1339
Lua header files are in DIR
1340
--with-lualib-lib-dir=DIR Lua libraries are in DIR
1341
--with-lualib-lib=LIB Use -lLIB to link with the lualib library
1342
--with-x use the X Window System
1343
Prefer the Mesa library over a vendors native OpenGL library (default=yes)
1344
--with-Qt-dir=DIR DIR is equal to \$QTDIR if you have followed the
1345
installation instructions of Trolltech. Header
1346
files are in DIR/include, binary utilities are
1347
in DIR/bin and the library is in DIR/lib
1348
--with-Qt-include-dir=DIR
1349
Qt header files are in DIR
1350
--with-Qt-bin-dir=DIR Qt utilities such as moc and uic are in DIR
1351
--with-Qt-lib-dir=DIR The Qt library is in DIR
1352
--with-Qt-lib=LIB Use -lLIB to link with the Qt library
1354
Some influential environment variables:
1355
CXX C++ compiler command
1356
CXXFLAGS C++ compiler flags
1357
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1358
nonstandard directory <lib dir>
1359
LIBS libraries to pass to the linker, e.g. -l<library>
1360
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1361
you have headers in a nonstandard directory <include dir>
1362
CC C compiler command
1363
CFLAGS C compiler flags
1365
XMKMF Path to xmkmf, Makefile generator for X Window System
1367
Use these variables to override the choices made by `configure' or to help
1368
it to find libraries and programs with nonstandard names/locations.
1370
Report bugs to <kevin@misfitcode.com>.
1375
if test "$ac_init_help" = "recursive"; then
1376
# If there are subdirs, report their specific --help.
1377
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378
test -d "$ac_dir" || continue
1382
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385
# A ".." for each directory in $ac_dir_suffix.
1386
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387
case $ac_top_builddir_sub in
1388
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392
ac_abs_top_builddir=$ac_pwd
1393
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394
# for backward compatibility:
1395
ac_top_builddir=$ac_top_build_prefix
1398
.) # We are building in place.
1400
ac_top_srcdir=$ac_top_builddir_sub
1401
ac_abs_top_srcdir=$ac_pwd ;;
1402
[\\/]* | ?:[\\/]* ) # Absolute name.
1403
ac_srcdir=$srcdir$ac_dir_suffix;
1404
ac_top_srcdir=$srcdir
1405
ac_abs_top_srcdir=$srcdir ;;
1407
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408
ac_top_srcdir=$ac_top_build_prefix$srcdir
1409
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413
cd "$ac_dir" || { ac_status=$?; continue; }
1414
# Check for guested configure.
1415
if test -f "$ac_srcdir/configure.gnu"; then
1417
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418
elif test -f "$ac_srcdir/configure"; then
1420
$SHELL "$ac_srcdir/configure" --help=recursive
1422
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424
cd "$ac_pwd" || { ac_status=$?; break; }
1428
test -n "$ac_init_help" && exit $ac_status
1429
if $ac_init_version; then
1431
mm3d configure 1.3.6
1432
generated by GNU Autoconf 2.61
1434
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436
This configure script is free software; the Free Software Foundation
1437
gives unlimited permission to copy, distribute and modify it.
1441
cat >config.log <<_ACEOF
1442
This file contains any messages produced by compilers while
1443
running configure, to aid debugging if configure makes a mistake.
1445
It was created by mm3d $as_me 1.3.6, which was
1446
generated by GNU Autoconf 2.61. Invocation command line was
1458
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1467
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481
test -z "$as_dir" && as_dir=.
1482
echo "PATH: $as_dir"
1498
# Keep a trace of the command line.
1499
# Strip out --no-create and --no-recursion so they do not pile up.
1500
# Strip out --silent because we don't want to record it for future runs.
1501
# Also quote any args containing shell meta-characters.
1502
# Make two passes to allow for proper duplicate-argument suppression.
1506
ac_must_keep_next=false
1512
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514
| -silent | --silent | --silen | --sile | --sil)
1517
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1522
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523
if test $ac_must_keep_next = true; then
1524
ac_must_keep_next=false # Got value, back to normal.
1527
*=* | --config-cache | -C | -disable-* | --disable-* \
1528
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530
| -with-* | --with-* | -without-* | --without-* | --x)
1531
case "$ac_configure_args0 " in
1532
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535
-* ) ac_must_keep_next=true ;;
1538
ac_configure_args="$ac_configure_args '$ac_arg'"
1543
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1546
# When interrupted or exit'd, cleanup temporary files, and complete
1547
# config.log. We remove comments because anyway the quotes in there
1548
# would cause problems or look ugly.
1549
# WARNING: Use '\'' to represent an apostrophe within the trap.
1550
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551
trap 'exit_status=$?
1552
# Save into config.log some information that might help in debugging.
1557
## ---------------- ##
1558
## Cache variables. ##
1559
## ---------------- ##
1562
# The following way of writing the cache mishandles newlines in values,
1564
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565
eval ac_val=\$$ac_var
1569
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573
_ | IFS | as_nl) ;; #(
1574
*) $as_unset $ac_var ;;
1579
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580
*${as_nl}ac_space=\ *)
1582
"s/'\''/'\''\\\\'\'''\''/g;
1583
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1594
## ----------------- ##
1595
## Output variables. ##
1596
## ----------------- ##
1599
for ac_var in $ac_subst_vars
1601
eval ac_val=\$$ac_var
1603
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605
echo "$ac_var='\''$ac_val'\''"
1609
if test -n "$ac_subst_files"; then
1611
## ------------------- ##
1612
## File substitutions. ##
1613
## ------------------- ##
1616
for ac_var in $ac_subst_files
1618
eval ac_val=\$$ac_var
1620
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622
echo "$ac_var='\''$ac_val'\''"
1627
if test -s confdefs.h; then
1637
test "$ac_signal" != 0 &&
1638
echo "$as_me: caught signal $ac_signal"
1639
echo "$as_me: exit $exit_status"
1641
rm -f core *.core core.conftest.* &&
1642
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645
for ac_signal in 1 2 13 15; do
1646
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1650
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1651
rm -f -r conftest* confdefs.h
1653
# Predefined preprocessor variables.
1655
cat >>confdefs.h <<_ACEOF
1656
#define PACKAGE_NAME "$PACKAGE_NAME"
1660
cat >>confdefs.h <<_ACEOF
1661
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1665
cat >>confdefs.h <<_ACEOF
1666
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1670
cat >>confdefs.h <<_ACEOF
1671
#define PACKAGE_STRING "$PACKAGE_STRING"
1675
cat >>confdefs.h <<_ACEOF
1676
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1680
# Let the site file select an alternate cache file if it wants to.
523
1681
# Prefer explicitly selected file to automatically selected ones.
524
if test -z "$CONFIG_SITE"; then
525
if test "x$prefix" != xNONE; then
526
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
528
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1682
if test -n "$CONFIG_SITE"; then
1683
set x "$CONFIG_SITE"
1684
elif test "x$prefix" != xNONE; then
1685
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1687
set x "$ac_default_prefix/share/config.site" \
1688
"$ac_default_prefix/etc/config.site"
531
for ac_site_file in $CONFIG_SITE; do
532
1693
if test -r "$ac_site_file"; then
533
echo "loading site script $ac_site_file"
1694
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695
echo "$as_me: loading site script $ac_site_file" >&6;}
1696
sed 's/^/| /' "$ac_site_file" >&5
534
1697
. "$ac_site_file"
538
1701
if test -r "$cache_file"; then
539
echo "loading cache $cache_file"
1702
# Some versions of bash will fail to source /dev/null (special
1703
# files actually), so we avoid doing that.
1704
if test -f "$cache_file"; then
1705
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706
echo "$as_me: loading cache $cache_file" >&6;}
1708
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1709
*) . "./$cache_file";;
542
echo "creating cache $cache_file"
1713
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714
echo "$as_me: creating cache $cache_file" >&6;}
1718
# Check that the precious variables saved in the cache have kept the same
1720
ac_cache_corrupted=false
1721
for ac_var in $ac_precious_vars; do
1722
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1723
eval ac_new_set=\$ac_env_${ac_var}_set
1724
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1725
eval ac_new_val=\$ac_env_${ac_var}_value
1726
case $ac_old_set,$ac_new_set in
1728
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1729
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1730
ac_cache_corrupted=: ;;
1732
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1733
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1734
ac_cache_corrupted=: ;;
1737
if test "x$ac_old_val" != "x$ac_new_val"; then
1738
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1739
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1740
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1741
echo "$as_me: former value: $ac_old_val" >&2;}
1742
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1743
echo "$as_me: current value: $ac_new_val" >&2;}
1744
ac_cache_corrupted=:
1747
# Pass precious variables to config.status.
1748
if test "$ac_new_set" = set; then
1750
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1751
*) ac_arg=$ac_var=$ac_new_val ;;
1753
case " $ac_configure_args " in
1754
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1755
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1759
if $ac_cache_corrupted; then
1760
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1761
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1762
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1763
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1764
{ (exit 1); exit 1; }; }
547
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548
1792
ac_cpp='$CPP $CPPFLAGS'
549
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551
cross_compiling=$ac_cv_prog_cc_cross
555
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564
ac_n= ac_c='\c' ac_t=
1793
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1798
am__api_version="1.9"
570
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
571
if test -f $ac_dir/install-sh; then
1800
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1801
if test -f "$ac_dir/install-sh"; then
572
1802
ac_aux_dir=$ac_dir
573
1803
ac_install_sh="$ac_aux_dir/install-sh -c"
575
elif test -f $ac_dir/install.sh; then
1805
elif test -f "$ac_dir/install.sh"; then
576
1806
ac_aux_dir=$ac_dir
577
1807
ac_install_sh="$ac_aux_dir/install.sh -c"
1809
elif test -f "$ac_dir/shtool"; then
1811
ac_install_sh="$ac_aux_dir/shtool install -c"
581
1815
if test -z "$ac_aux_dir"; then
582
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1816
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1817
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1818
{ (exit 1); exit 1; }; }
584
ac_config_guess=$ac_aux_dir/config.guess
585
ac_config_sub=$ac_aux_dir/config.sub
586
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
588
am__api_version="1.4"
1821
# These three variables are undocumented and unsupported,
1822
# and are intended to be withdrawn in a future Autoconf release.
1823
# They can cause serious problems if a builder's source tree is in a directory
1824
# whose full name contains unusual characters.
1825
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1826
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1827
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
589
1830
# Find a good install program. We prefer a C program (faster),
590
1831
# so one script is as good as another. But avoid the broken or
591
1832
# incompatible versions:
593
1834
# SunOS /usr/etc/install
594
1835
# IRIX /sbin/install
595
1836
# AIX /bin/install
1837
# AmigaOS /C/install, which installs bootblocks on floppy discs
596
1838
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
597
1839
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
598
1840
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1841
# OS/2's system install, which has a completely different semantic
599
1842
# ./install, which can be erroneously created by make from ./install.sh.
600
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
601
echo "configure:602: checking for a BSD compatible install" >&5
1843
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1844
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
602
1845
if test -z "$INSTALL"; then
603
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
604
echo $ac_n "(cached) $ac_c" 1>&6
1846
if test "${ac_cv_path_install+set}" = set; then
1847
echo $ECHO_N "(cached) $ECHO_C" >&6
606
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
607
for ac_dir in $PATH; do
608
# Account for people who put trailing slashes in PATH elements.
610
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
612
# OSF1 and SCO ODT 3.0 have their own names for install.
613
# Don't use installbsd from OSF since it installs stuff as root
615
for ac_prog in ginstall scoinst install; do
616
if test -f $ac_dir/$ac_prog; then
1849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853
test -z "$as_dir" && as_dir=.
1854
# Account for people who put trailing slashes in PATH elements.
1856
./ | .// | /cC/* | \
1857
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1858
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1861
# OSF1 and SCO ODT 3.0 have their own names for install.
1862
# Don't use installbsd from OSF since it installs stuff as root
1864
for ac_prog in ginstall scoinst install; do
1865
for ac_exec_ext in '' $ac_executable_extensions; do
1866
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
617
1867
if test $ac_prog = install &&
618
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1868
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
619
1869
# AIX install. It has an incompatible calling convention.
1871
elif test $ac_prog = install &&
1872
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1873
# program-specific install script used by HP pwplus--don't use.
622
ac_cv_path_install="$ac_dir/$ac_prog -c"
1876
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
633
1889
if test "${ac_cv_path_install+set}" = set; then
634
INSTALL="$ac_cv_path_install"
1890
INSTALL=$ac_cv_path_install
636
# As a last resort, use the slow shell script. We don't cache a
637
# path for INSTALL within a source directory, because that will
1892
# As a last resort, use the slow shell script. Don't cache a
1893
# value for INSTALL within a source directory, because that will
638
1894
# break other packages using the cache if that directory is
639
# removed, or if the path is relative.
640
INSTALL="$ac_install_sh"
1895
# removed, or if the value is a relative name.
1896
INSTALL=$ac_install_sh
643
echo "$ac_t""$INSTALL" 1>&6
1899
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1900
echo "${ECHO_T}$INSTALL" >&6; }
645
1902
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
646
1903
# It thinks the first close brace ends the variable substitution.
647
1904
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
649
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1906
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
651
1908
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
653
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
654
echo "configure:655: checking whether build environment is sane" >&5
1910
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1911
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
657
echo timestamp > conftestfile
1914
echo timestamp > conftest.file
658
1915
# Do `set' in a subshell so we don't clobber the current shell's
659
1916
# arguments. Must try -L first in case configure is actually a
660
1917
# symlink; some systems play weird games with the mod time of symlinks
661
1918
# (eg FreeBSD returns the mod time of the symlink's containing
664
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1921
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
665
1922
if test "$*" = "X"; then
666
1923
# -L didn't work.
667
set X `ls -t $srcdir/configure conftestfile`
1924
set X `ls -t $srcdir/configure conftest.file`
669
if test "$*" != "X $srcdir/configure conftestfile" \
670
&& test "$*" != "X conftestfile $srcdir/configure"; then
1927
if test "$*" != "X $srcdir/configure conftest.file" \
1928
&& test "$*" != "X conftest.file $srcdir/configure"; then
672
1930
# If neither matched, then we have a broken ls. This can happen
673
1931
# if, for instance, CONFIG_SHELL is bash and it inherits a
674
1932
# broken ls alias from the environment. This has actually
675
1933
# happened. Such a system could not be considered "sane".
676
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
677
alias in your environment" 1>&2; exit 1; }
1934
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1935
alias in your environment" >&5
1936
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1937
alias in your environment" >&2;}
1938
{ (exit 1); exit 1; }; }
680
test "$2" = conftestfile
1941
test "$2" = conftest.file
686
{ echo "configure: error: newly created file is older than distributed files!
687
Check your system clock" 1>&2; exit 1; }
690
echo "$ac_t""yes" 1>&6
691
if test "$program_transform_name" = s,x,x,; then
692
program_transform_name=
694
# Double any \ or $. echo might interpret backslashes.
695
cat <<\EOF_SED > conftestsed
696
s,\\,\\\\,g; s,\$,$$,g
698
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1947
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1948
Check your system clock" >&5
1949
echo "$as_me: error: newly created file is older than distributed files!
1950
Check your system clock" >&2;}
1951
{ (exit 1); exit 1; }; }
1953
{ echo "$as_me:$LINENO: result: yes" >&5
1954
echo "${ECHO_T}yes" >&6; }
701
1955
test "$program_prefix" != NONE &&
702
program_transform_name="s,^,${program_prefix},; $program_transform_name"
1956
program_transform_name="s&^&$program_prefix&;$program_transform_name"
703
1957
# Use a double $ so make ignores it.
704
1958
test "$program_suffix" != NONE &&
705
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
707
# sed with no file args requires a program.
708
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
710
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
711
echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5
712
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
713
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
714
echo $ac_n "(cached) $ac_c" 1>&6
716
cat > conftestmake <<\EOF
1959
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1960
# Double any \ or $. echo might interpret backslashes.
1961
# By default was `s,x,x', remove it if useless.
1962
cat <<\_ACEOF >conftest.sed
1963
s/[\\$]/&&/g;s/;s,x,x,$//
1965
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1968
# expand $ac_aux_dir to an absolute path
1969
am_aux_dir=`cd $ac_aux_dir && pwd`
1971
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1972
# Use eval to expand $SHELL
1973
if eval "$MISSING --run true"; then
1974
am_missing_run="$MISSING --run "
1977
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1978
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1981
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1982
# We used to keeping the `.' as first argument, in order to
1983
# allow $(mkdir_p) to be used without argument. As in
1984
# $(mkdir_p) $(somedir)
1985
# where $(somedir) is conditionally defined. However this is wrong
1987
# 1. if the package is installed by a user who cannot write `.'
1988
# make install will fail,
1989
# 2. the above comment should most certainly read
1990
# $(mkdir_p) $(DESTDIR)$(somedir)
1991
# so it does not work when $(somedir) is undefined and
1992
# $(DESTDIR) is not.
1993
# To support the latter case, we have to write
1994
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1995
# so the `.' trick is pointless.
1996
mkdir_p='mkdir -p --'
1998
# On NextStep and OpenStep, the `mkdir' command does not
1999
# recognize any option. It will interpret all options as
2000
# directories to create, and then abort because `.' already
2002
for d in ./-p ./--version;
2004
test -d $d && rmdir $d
2006
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2007
if test -f "$ac_aux_dir/mkinstalldirs"; then
2008
mkdir_p='$(mkinstalldirs)'
2010
mkdir_p='$(install_sh) -d'
2014
for ac_prog in gawk mawk nawk awk
2016
# Extract the first word of "$ac_prog", so it can be a program name with args.
2017
set dummy $ac_prog; ac_word=$2
2018
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2019
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020
if test "${ac_cv_prog_AWK+set}" = set; then
2021
echo $ECHO_N "(cached) $ECHO_C" >&6
2023
if test -n "$AWK"; then
2024
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030
test -z "$as_dir" && as_dir=.
2031
for ac_exec_ext in '' $ac_executable_extensions; do
2032
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033
ac_cv_prog_AWK="$ac_prog"
2034
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044
if test -n "$AWK"; then
2045
{ echo "$as_me:$LINENO: result: $AWK" >&5
2046
echo "${ECHO_T}$AWK" >&6; }
2048
{ echo "$as_me:$LINENO: result: no" >&5
2049
echo "${ECHO_T}no" >&6; }
2053
test -n "$AWK" && break
2056
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2057
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2058
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2059
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2060
echo $ECHO_N "(cached) $ECHO_C" >&6
2062
cat >conftest.make <<\_ACEOF
718
@echo 'ac_maketemp="${MAKE}"'
2065
@echo '@@@%%%=$(MAKE)=@@@%%%'
720
2067
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
721
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
722
if test -n "$ac_maketemp"; then
723
eval ac_cv_prog_make_${ac_make}_set=yes
725
eval ac_cv_prog_make_${ac_make}_set=no
729
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
730
echo "$ac_t""yes" 1>&6
2068
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2070
eval ac_cv_prog_make_${ac_make}_set=yes;;
2072
eval ac_cv_prog_make_${ac_make}_set=no;;
2076
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2077
{ echo "$as_me:$LINENO: result: yes" >&5
2078
echo "${ECHO_T}yes" >&6; }
733
echo "$ac_t""no" 1>&6
2081
{ echo "$as_me:$LINENO: result: no" >&5
2082
echo "${ECHO_T}no" >&6; }
734
2083
SET_MAKE="MAKE=${MAKE-make}"
742
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
743
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
745
cat >> confdefs.h <<EOF
2086
rm -rf .tst 2>/dev/null
2087
mkdir .tst 2>/dev/null
2088
if test -d .tst; then
2093
rmdir .tst 2>/dev/null
2095
# test to see if srcdir already configured
2096
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2097
test -f $srcdir/config.status; then
2098
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2099
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2100
{ (exit 1); exit 1; }; }
2103
# test whether we have cygpath
2104
if test -z "$CYGPATH_W"; then
2105
if (cygpath --version) >/dev/null 2>/dev/null; then
2106
CYGPATH_W='cygpath -w'
2113
# Define the identity of the package.
2118
cat >>confdefs.h <<_ACEOF
746
2119
#define PACKAGE "$PACKAGE"
749
cat >> confdefs.h <<EOF
2123
cat >>confdefs.h <<_ACEOF
750
2124
#define VERSION "$VERSION"
755
missing_dir=`cd $ac_aux_dir && pwd`
756
echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
757
echo "configure:758: checking for working aclocal-${am__api_version}" >&5
758
# Run test in a subshell; some versions of sh will print an error if
759
# an executable is not found, even if stderr is redirected.
760
# Redirect stdin to placate older versions of autoconf. Sigh.
761
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
762
ACLOCAL=aclocal-${am__api_version}
763
echo "$ac_t""found" 1>&6
765
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
766
echo "$ac_t""missing" 1>&6
769
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
770
echo "configure:771: checking for working autoconf" >&5
771
# Run test in a subshell; some versions of sh will print an error if
772
# an executable is not found, even if stderr is redirected.
773
# Redirect stdin to placate older versions of autoconf. Sigh.
774
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
776
echo "$ac_t""found" 1>&6
778
AUTOCONF="$missing_dir/missing autoconf"
779
echo "$ac_t""missing" 1>&6
782
echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
783
echo "configure:784: checking for working automake-${am__api_version}" >&5
784
# Run test in a subshell; some versions of sh will print an error if
785
# an executable is not found, even if stderr is redirected.
786
# Redirect stdin to placate older versions of autoconf. Sigh.
787
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
788
AUTOMAKE=automake-${am__api_version}
789
echo "$ac_t""found" 1>&6
791
AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
792
echo "$ac_t""missing" 1>&6
795
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
796
echo "configure:797: checking for working autoheader" >&5
797
# Run test in a subshell; some versions of sh will print an error if
798
# an executable is not found, even if stderr is redirected.
799
# Redirect stdin to placate older versions of autoconf. Sigh.
800
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
801
AUTOHEADER=autoheader
802
echo "$ac_t""found" 1>&6
804
AUTOHEADER="$missing_dir/missing autoheader"
805
echo "$ac_t""missing" 1>&6
808
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
809
echo "configure:810: checking for working makeinfo" >&5
810
# Run test in a subshell; some versions of sh will print an error if
811
# an executable is not found, even if stderr is redirected.
812
# Redirect stdin to placate older versions of autoconf. Sigh.
813
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
815
echo "$ac_t""found" 1>&6
817
MAKEINFO="$missing_dir/missing makeinfo"
818
echo "$ac_t""missing" 1>&6
826
# Extract the first word of "gcc", so it can be a program name with args.
2127
# Some tools Automake needs.
2129
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2132
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2135
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2138
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2141
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2143
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2145
# Installed binaries are usually stripped using `strip' when the user
2146
# run `make install-strip'. However `strip' might not be the right
2147
# tool to use in cross-compilation environments, therefore Automake
2148
# will honor the `STRIP' environment variable to overrule this program.
2149
if test "$cross_compiling" != no; then
2150
if test -n "$ac_tool_prefix"; then
2151
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2152
set dummy ${ac_tool_prefix}strip; ac_word=$2
2153
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155
if test "${ac_cv_prog_STRIP+set}" = set; then
2156
echo $ECHO_N "(cached) $ECHO_C" >&6
2158
if test -n "$STRIP"; then
2159
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165
test -z "$as_dir" && as_dir=.
2166
for ac_exec_ext in '' $ac_executable_extensions; do
2167
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2169
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178
STRIP=$ac_cv_prog_STRIP
2179
if test -n "$STRIP"; then
2180
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2181
echo "${ECHO_T}$STRIP" >&6; }
2183
{ echo "$as_me:$LINENO: result: no" >&5
2184
echo "${ECHO_T}no" >&6; }
2189
if test -z "$ac_cv_prog_STRIP"; then
2191
# Extract the first word of "strip", so it can be a program name with args.
2192
set dummy strip; ac_word=$2
2193
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2196
echo $ECHO_N "(cached) $ECHO_C" >&6
2198
if test -n "$ac_ct_STRIP"; then
2199
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205
test -z "$as_dir" && as_dir=.
2206
for ac_exec_ext in '' $ac_executable_extensions; do
2207
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208
ac_cv_prog_ac_ct_STRIP="strip"
2209
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2219
if test -n "$ac_ct_STRIP"; then
2220
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2221
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2223
{ echo "$as_me:$LINENO: result: no" >&5
2224
echo "${ECHO_T}no" >&6; }
2227
if test "x$ac_ct_STRIP" = x; then
2230
case $cross_compiling:$ac_tool_warned in
2232
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2233
whose name does not start with the host triplet. If you think this
2234
configuration is useful to you, please write to autoconf@gnu.org." >&5
2235
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2236
whose name does not start with the host triplet. If you think this
2237
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2238
ac_tool_warned=yes ;;
2243
STRIP="$ac_cv_prog_STRIP"
2247
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2249
# We need awk for the "check" target. The system "awk" is bad on
2251
# Always define AMTAR for backward compatibility.
2253
AMTAR=${AMTAR-"${am_missing_run}tar"}
2255
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2262
ac_config_headers="$ac_config_headers config.h"
2265
# Checks for programs.
2267
ac_cpp='$CXXCPP $CPPFLAGS'
2268
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2271
if test -z "$CXX"; then
2272
if test -n "$CCC"; then
2275
if test -n "$ac_tool_prefix"; then
2276
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2278
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2279
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2280
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2281
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282
if test "${ac_cv_prog_CXX+set}" = set; then
2283
echo $ECHO_N "(cached) $ECHO_C" >&6
2285
if test -n "$CXX"; then
2286
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292
test -z "$as_dir" && as_dir=.
2293
for ac_exec_ext in '' $ac_executable_extensions; do
2294
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2296
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306
if test -n "$CXX"; then
2307
{ echo "$as_me:$LINENO: result: $CXX" >&5
2308
echo "${ECHO_T}$CXX" >&6; }
2310
{ echo "$as_me:$LINENO: result: no" >&5
2311
echo "${ECHO_T}no" >&6; }
2315
test -n "$CXX" && break
2318
if test -z "$CXX"; then
2320
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2322
# Extract the first word of "$ac_prog", so it can be a program name with args.
2323
set dummy $ac_prog; ac_word=$2
2324
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2327
echo $ECHO_N "(cached) $ECHO_C" >&6
2329
if test -n "$ac_ct_CXX"; then
2330
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336
test -z "$as_dir" && as_dir=.
2337
for ac_exec_ext in '' $ac_executable_extensions; do
2338
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339
ac_cv_prog_ac_ct_CXX="$ac_prog"
2340
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2350
if test -n "$ac_ct_CXX"; then
2351
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2352
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2354
{ echo "$as_me:$LINENO: result: no" >&5
2355
echo "${ECHO_T}no" >&6; }
2359
test -n "$ac_ct_CXX" && break
2362
if test "x$ac_ct_CXX" = x; then
2365
case $cross_compiling:$ac_tool_warned in
2367
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2368
whose name does not start with the host triplet. If you think this
2369
configuration is useful to you, please write to autoconf@gnu.org." >&5
2370
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2371
whose name does not start with the host triplet. If you think this
2372
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2373
ac_tool_warned=yes ;;
2381
# Provide some information about the compiler.
2382
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2383
ac_compiler=`set X $ac_compile; echo $2`
2384
{ (ac_try="$ac_compiler --version >&5"
2386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387
*) ac_try_echo=$ac_try;;
2389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390
(eval "$ac_compiler --version >&5") 2>&5
2392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393
(exit $ac_status); }
2394
{ (ac_try="$ac_compiler -v >&5"
2396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397
*) ac_try_echo=$ac_try;;
2399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400
(eval "$ac_compiler -v >&5") 2>&5
2402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403
(exit $ac_status); }
2404
{ (ac_try="$ac_compiler -V >&5"
2406
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407
*) ac_try_echo=$ac_try;;
2409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410
(eval "$ac_compiler -V >&5") 2>&5
2412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
(exit $ac_status); }
2415
cat >conftest.$ac_ext <<_ACEOF
2418
cat confdefs.h >>conftest.$ac_ext
2419
cat >>conftest.$ac_ext <<_ACEOF
2420
/* end confdefs.h. */
2430
ac_clean_files_save=$ac_clean_files
2431
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2432
# Try to create an executable without -o first, disregard a.out.
2433
# It will help us diagnose broken compilers, and finding out an intuition
2435
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2436
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2437
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2439
# List of possible output files, starting from the most likely.
2440
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2441
# only as a last resort. b.out is created by i960 compilers.
2442
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2444
# The IRIX 6 linker writes into existing files which may not be
2445
# executable, retaining their permissions. Remove them first so a
2446
# subsequent execution test works.
2448
for ac_file in $ac_files
2451
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2452
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2457
if { (ac_try="$ac_link_default"
2459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460
*) ac_try_echo=$ac_try;;
2462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463
(eval "$ac_link_default") 2>&5
2465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466
(exit $ac_status); }; then
2467
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2468
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2469
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2470
# so that the user can short-circuit this test for compilers unknown to
2472
for ac_file in $ac_files ''
2474
test -f "$ac_file" || continue
2476
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2479
# We found the default executable, but exeext='' is most
2483
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2485
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2487
# We set ac_cv_exeext here because the later test for it is not
2488
# safe: cross compilers may not add the suffix if given an `-o'
2489
# argument, so we may need to know it at that point already.
2490
# Even if this section looks crufty: it has the advantage of
2497
test "$ac_cv_exeext" = no && ac_cv_exeext=
2503
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2504
echo "${ECHO_T}$ac_file" >&6; }
2505
if test -z "$ac_file"; then
2506
echo "$as_me: failed program was:" >&5
2507
sed 's/^/| /' conftest.$ac_ext >&5
2509
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2510
See \`config.log' for more details." >&5
2511
echo "$as_me: error: C++ compiler cannot create executables
2512
See \`config.log' for more details." >&2;}
2513
{ (exit 77); exit 77; }; }
2516
ac_exeext=$ac_cv_exeext
2518
# Check that the compiler produces executables we can run. If not, either
2519
# the compiler is broken, or we cross compile.
2520
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2521
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2522
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2523
# If not cross compiling, check that we can run a simple program.
2524
if test "$cross_compiling" != yes; then
2525
if { ac_try='./$ac_file'
2526
{ (case "(($ac_try" in
2527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528
*) ac_try_echo=$ac_try;;
2530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531
(eval "$ac_try") 2>&5
2533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534
(exit $ac_status); }; }; then
2537
if test "$cross_compiling" = maybe; then
2540
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2541
If you meant to cross compile, use \`--host'.
2542
See \`config.log' for more details." >&5
2543
echo "$as_me: error: cannot run C++ compiled programs.
2544
If you meant to cross compile, use \`--host'.
2545
See \`config.log' for more details." >&2;}
2546
{ (exit 1); exit 1; }; }
2550
{ echo "$as_me:$LINENO: result: yes" >&5
2551
echo "${ECHO_T}yes" >&6; }
2553
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2554
ac_clean_files=$ac_clean_files_save
2555
# Check that the compiler produces executables we can run. If not, either
2556
# the compiler is broken, or we cross compile.
2557
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2558
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2559
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2560
echo "${ECHO_T}$cross_compiling" >&6; }
2562
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2563
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2564
if { (ac_try="$ac_link"
2566
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567
*) ac_try_echo=$ac_try;;
2569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570
(eval "$ac_link") 2>&5
2572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
(exit $ac_status); }; then
2574
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2575
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2576
# work properly (i.e., refer to `conftest.exe'), while it won't with
2578
for ac_file in conftest.exe conftest conftest.*; do
2579
test -f "$ac_file" || continue
2581
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2582
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2588
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2589
See \`config.log' for more details." >&5
2590
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2591
See \`config.log' for more details." >&2;}
2592
{ (exit 1); exit 1; }; }
2595
rm -f conftest$ac_cv_exeext
2596
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2597
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2599
rm -f conftest.$ac_ext
2600
EXEEXT=$ac_cv_exeext
2602
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2603
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2604
if test "${ac_cv_objext+set}" = set; then
2605
echo $ECHO_N "(cached) $ECHO_C" >&6
2607
cat >conftest.$ac_ext <<_ACEOF
2610
cat confdefs.h >>conftest.$ac_ext
2611
cat >>conftest.$ac_ext <<_ACEOF
2612
/* end confdefs.h. */
2622
rm -f conftest.o conftest.obj
2623
if { (ac_try="$ac_compile"
2625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626
*) ac_try_echo=$ac_try;;
2628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629
(eval "$ac_compile") 2>&5
2631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
(exit $ac_status); }; then
2633
for ac_file in conftest.o conftest.obj conftest.*; do
2634
test -f "$ac_file" || continue;
2636
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2637
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2642
echo "$as_me: failed program was:" >&5
2643
sed 's/^/| /' conftest.$ac_ext >&5
2645
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2646
See \`config.log' for more details." >&5
2647
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2648
See \`config.log' for more details." >&2;}
2649
{ (exit 1); exit 1; }; }
2652
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2654
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2655
echo "${ECHO_T}$ac_cv_objext" >&6; }
2656
OBJEXT=$ac_cv_objext
2658
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2659
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2660
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2661
echo $ECHO_N "(cached) $ECHO_C" >&6
2663
cat >conftest.$ac_ext <<_ACEOF
2666
cat confdefs.h >>conftest.$ac_ext
2667
cat >>conftest.$ac_ext <<_ACEOF
2668
/* end confdefs.h. */
2681
rm -f conftest.$ac_objext
2682
if { (ac_try="$ac_compile"
2684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685
*) ac_try_echo=$ac_try;;
2687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688
(eval "$ac_compile") 2>conftest.er1
2690
grep -v '^ *+' conftest.er1 >conftest.err
2692
cat conftest.err >&5
2693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694
(exit $ac_status); } && {
2695
test -z "$ac_cxx_werror_flag" ||
2696
test ! -s conftest.err
2697
} && test -s conftest.$ac_objext; then
2700
echo "$as_me: failed program was:" >&5
2701
sed 's/^/| /' conftest.$ac_ext >&5
2706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2710
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2711
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2712
GXX=`test $ac_compiler_gnu = yes && echo yes`
2713
ac_test_CXXFLAGS=${CXXFLAGS+set}
2714
ac_save_CXXFLAGS=$CXXFLAGS
2715
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2716
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2717
if test "${ac_cv_prog_cxx_g+set}" = set; then
2718
echo $ECHO_N "(cached) $ECHO_C" >&6
2720
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2721
ac_cxx_werror_flag=yes
2724
cat >conftest.$ac_ext <<_ACEOF
2727
cat confdefs.h >>conftest.$ac_ext
2728
cat >>conftest.$ac_ext <<_ACEOF
2729
/* end confdefs.h. */
2739
rm -f conftest.$ac_objext
2740
if { (ac_try="$ac_compile"
2742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743
*) ac_try_echo=$ac_try;;
2745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746
(eval "$ac_compile") 2>conftest.er1
2748
grep -v '^ *+' conftest.er1 >conftest.err
2750
cat conftest.err >&5
2751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752
(exit $ac_status); } && {
2753
test -z "$ac_cxx_werror_flag" ||
2754
test ! -s conftest.err
2755
} && test -s conftest.$ac_objext; then
2756
ac_cv_prog_cxx_g=yes
2758
echo "$as_me: failed program was:" >&5
2759
sed 's/^/| /' conftest.$ac_ext >&5
2762
cat >conftest.$ac_ext <<_ACEOF
2765
cat confdefs.h >>conftest.$ac_ext
2766
cat >>conftest.$ac_ext <<_ACEOF
2767
/* end confdefs.h. */
2777
rm -f conftest.$ac_objext
2778
if { (ac_try="$ac_compile"
2780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781
*) ac_try_echo=$ac_try;;
2783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784
(eval "$ac_compile") 2>conftest.er1
2786
grep -v '^ *+' conftest.er1 >conftest.err
2788
cat conftest.err >&5
2789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
(exit $ac_status); } && {
2791
test -z "$ac_cxx_werror_flag" ||
2792
test ! -s conftest.err
2793
} && test -s conftest.$ac_objext; then
2796
echo "$as_me: failed program was:" >&5
2797
sed 's/^/| /' conftest.$ac_ext >&5
2799
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2801
cat >conftest.$ac_ext <<_ACEOF
2804
cat confdefs.h >>conftest.$ac_ext
2805
cat >>conftest.$ac_ext <<_ACEOF
2806
/* end confdefs.h. */
2816
rm -f conftest.$ac_objext
2817
if { (ac_try="$ac_compile"
2819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820
*) ac_try_echo=$ac_try;;
2822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823
(eval "$ac_compile") 2>conftest.er1
2825
grep -v '^ *+' conftest.er1 >conftest.err
2827
cat conftest.err >&5
2828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829
(exit $ac_status); } && {
2830
test -z "$ac_cxx_werror_flag" ||
2831
test ! -s conftest.err
2832
} && test -s conftest.$ac_objext; then
2833
ac_cv_prog_cxx_g=yes
2835
echo "$as_me: failed program was:" >&5
2836
sed 's/^/| /' conftest.$ac_ext >&5
2841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2850
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2851
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2852
if test "$ac_test_CXXFLAGS" = set; then
2853
CXXFLAGS=$ac_save_CXXFLAGS
2854
elif test $ac_cv_prog_cxx_g = yes; then
2855
if test "$GXX" = yes; then
2861
if test "$GXX" = yes; then
2868
ac_cpp='$CPP $CPPFLAGS'
2869
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872
DEPDIR="${am__leading_dot}deps"
2874
ac_config_commands="$ac_config_commands depfiles"
2877
am_make=${MAKE-make}
2878
cat > confinc << 'END'
2883
# If we don't find an include directive, just comment out the code.
2884
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2885
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2889
# First try GNU make style include.
2890
echo "include confinc" > confmf
2891
# We grep out `Entering directory' and `Leaving directory'
2892
# messages which can occur if `w' ends up in MAKEFLAGS.
2893
# In particular we don't look at `^make:' because GNU make might
2894
# be invoked under some other name (usually "gmake"), in which
2895
# case it prints its new name instead of `make'.
2896
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2901
# Now try BSD make style include.
2902
if test "$am__include" = "#"; then
2903
echo '.include "confinc"' > confmf
2904
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2905
am__include=.include
2912
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2913
echo "${ECHO_T}$_am_result" >&6; }
2914
rm -f confinc confmf
2916
# Check whether --enable-dependency-tracking was given.
2917
if test "${enable_dependency_tracking+set}" = set; then
2918
enableval=$enable_dependency_tracking;
2921
if test "x$enable_dependency_tracking" != xno; then
2922
am_depcomp="$ac_aux_dir/depcomp"
2927
if test "x$enable_dependency_tracking" != xno; then
2938
depcc="$CXX" am_compiler_list=
2940
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2941
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2942
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2943
echo $ECHO_N "(cached) $ECHO_C" >&6
2945
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2946
# We make a subdir and do the tests there. Otherwise we can end up
2947
# making bogus files that we don't know about and never remove. For
2948
# instance it was reported that on HP-UX the gcc test will end up
2949
# making a dummy file named `D' -- because `-MD' means `put the output
2952
# Copy depcomp to subdir because otherwise we won't find it if we're
2953
# using a relative directory.
2954
cp "$am_depcomp" conftest.dir
2956
# We will build objects and dependencies in a subdirectory because
2957
# it helps to detect inapplicable dependency modes. For instance
2958
# both Tru64's cc and ICC support -MD to output dependencies as a
2959
# side effect of compilation, but ICC will put the dependencies in
2960
# the current directory while Tru64 will put them in the object
2964
am_cv_CXX_dependencies_compiler_type=none
2965
if test "$am_compiler_list" = ""; then
2966
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2968
for depmode in $am_compiler_list; do
2969
# Setup a source with many dependencies, because some compilers
2970
# like to wrap large dependency lists on column 80 (with \), and
2971
# we should not choose a depcomp mode which is confused by this.
2973
# We need to recreate these files for each test, as the compiler may
2974
# overwrite some of them when testing with obscure command lines.
2975
# This happens at least with the AIX C compiler.
2977
for i in 1 2 3 4 5 6; do
2978
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2979
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2980
# Solaris 8's {/usr,}/bin/sh.
2981
touch sub/conftst$i.h
2983
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2987
# after this tag, mechanisms are not by side-effect, so they'll
2988
# only be used when explicitly requested
2989
if test "x$enable_dependency_tracking" = xyes; then
2997
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2998
# mode. It turns out that the SunPro C++ compiler does not properly
2999
# handle `-M -o', and we need to detect this.
3000
if depmode=$depmode \
3001
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3002
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3003
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3004
>/dev/null 2>conftest.err &&
3005
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3006
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3007
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3008
# icc doesn't choke on unknown options, it will just issue warnings
3009
# or remarks (even with -Werror). So we grep stderr for any message
3010
# that says an option was ignored or not supported.
3011
# When given -MP, icc 7.0 and 7.1 complain thusly:
3012
# icc: Command line warning: ignoring option '-M'; no argument required
3013
# The diagnosis changed in icc 8.0:
3014
# icc: Command line remark: option '-MP' not supported
3015
if (grep 'ignoring option' conftest.err ||
3016
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3017
am_cv_CXX_dependencies_compiler_type=$depmode
3026
am_cv_CXX_dependencies_compiler_type=none
3030
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3031
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3032
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3037
test "x$enable_dependency_tracking" != xno \
3038
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3039
am__fastdepCXX_TRUE=
3040
am__fastdepCXX_FALSE='#'
3042
am__fastdepCXX_TRUE='#'
3043
am__fastdepCXX_FALSE=
3048
ac_cpp='$CPP $CPPFLAGS'
3049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
if test -n "$ac_tool_prefix"; then
3053
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3055
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3056
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3057
if test "${ac_cv_prog_CC+set}" = set; then
3058
echo $ECHO_N "(cached) $ECHO_C" >&6
3060
if test -n "$CC"; then
3061
ac_cv_prog_CC="$CC" # Let the user override the test.
3063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067
test -z "$as_dir" && as_dir=.
3068
for ac_exec_ext in '' $ac_executable_extensions; do
3069
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3071
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081
if test -n "$CC"; then
3082
{ echo "$as_me:$LINENO: result: $CC" >&5
3083
echo "${ECHO_T}$CC" >&6; }
3085
{ echo "$as_me:$LINENO: result: no" >&5
3086
echo "${ECHO_T}no" >&6; }
3091
if test -z "$ac_cv_prog_CC"; then
3093
# Extract the first word of "gcc", so it can be a program name with args.
827
3094
set dummy gcc; ac_word=$2
828
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829
echo "configure:830: checking for $ac_word" >&5
830
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831
echo $ac_n "(cached) $ac_c" 1>&6
3095
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3097
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3098
echo $ECHO_N "(cached) $ECHO_C" >&6
3100
if test -n "$ac_ct_CC"; then
3101
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107
test -z "$as_dir" && as_dir=.
3108
for ac_exec_ext in '' $ac_executable_extensions; do
3109
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110
ac_cv_prog_ac_ct_CC="gcc"
3111
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121
if test -n "$ac_ct_CC"; then
3122
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123
echo "${ECHO_T}$ac_ct_CC" >&6; }
3125
{ echo "$as_me:$LINENO: result: no" >&5
3126
echo "${ECHO_T}no" >&6; }
3129
if test "x$ac_ct_CC" = x; then
3132
case $cross_compiling:$ac_tool_warned in
3134
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3135
whose name does not start with the host triplet. If you think this
3136
configuration is useful to you, please write to autoconf@gnu.org." >&5
3137
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3138
whose name does not start with the host triplet. If you think this
3139
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3140
ac_tool_warned=yes ;;
3148
if test -z "$CC"; then
3149
if test -n "$ac_tool_prefix"; then
3150
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3151
set dummy ${ac_tool_prefix}cc; ac_word=$2
3152
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3154
if test "${ac_cv_prog_CC+set}" = set; then
3155
echo $ECHO_N "(cached) $ECHO_C" >&6
833
3157
if test -n "$CC"; then
834
3158
ac_cv_prog_CC="$CC" # Let the user override the test.
836
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838
for ac_dir in $ac_dummy; do
839
test -z "$ac_dir" && ac_dir=.
840
if test -f $ac_dir/$ac_word; then
3160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164
test -z "$as_dir" && as_dir=.
3165
for ac_exec_ext in '' $ac_executable_extensions; do
3166
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167
ac_cv_prog_CC="${ac_tool_prefix}cc"
3168
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
849
3178
if test -n "$CC"; then
850
echo "$ac_t""$CC" 1>&6
3179
{ echo "$as_me:$LINENO: result: $CC" >&5
3180
echo "${ECHO_T}$CC" >&6; }
852
echo "$ac_t""no" 1>&6
3182
{ echo "$as_me:$LINENO: result: no" >&5
3183
echo "${ECHO_T}no" >&6; }
855
3189
if test -z "$CC"; then
856
3190
# Extract the first word of "cc", so it can be a program name with args.
857
3191
set dummy cc; ac_word=$2
858
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859
echo "configure:860: checking for $ac_word" >&5
860
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
861
echo $ac_n "(cached) $ac_c" 1>&6
3192
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3193
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3194
if test "${ac_cv_prog_CC+set}" = set; then
3195
echo $ECHO_N "(cached) $ECHO_C" >&6
863
3197
if test -n "$CC"; then
864
3198
ac_cv_prog_CC="$CC" # Let the user override the test.
866
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867
3200
ac_prog_rejected=no
869
for ac_dir in $ac_dummy; do
870
test -z "$ac_dir" && ac_dir=.
871
if test -f $ac_dir/$ac_word; then
872
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205
test -z "$as_dir" && as_dir=.
3206
for ac_exec_ext in '' $ac_executable_extensions; do
3207
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3209
ac_prog_rejected=yes
3213
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
881
3220
if test $ac_prog_rejected = yes; then
882
3221
# We found a bogon in the path, so make sure we never use it.
883
3222
set dummy $ac_cv_prog_CC
885
if test $# -gt 0; then
3224
if test $# != 0; then
886
3225
# We chose a different compiler from the bogus one.
887
3226
# However, it has the same basename, so the bogon will be chosen
888
3227
# first if we set CC to just the basename; use the full file name.
890
set dummy "$ac_dir/$ac_word" "$@"
3229
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
898
3235
if test -n "$CC"; then
899
echo "$ac_t""$CC" 1>&6
3236
{ echo "$as_me:$LINENO: result: $CC" >&5
3237
echo "${ECHO_T}$CC" >&6; }
901
echo "$ac_t""no" 1>&6
904
if test -z "$CC"; then
907
# Extract the first word of "cl", so it can be a program name with args.
908
set dummy cl; ac_word=$2
909
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
910
echo "configure:911: checking for $ac_word" >&5
911
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
912
echo $ac_n "(cached) $ac_c" 1>&6
3239
{ echo "$as_me:$LINENO: result: no" >&5
3240
echo "${ECHO_T}no" >&6; }
3245
if test -z "$CC"; then
3246
if test -n "$ac_tool_prefix"; then
3247
for ac_prog in cl.exe
3249
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3250
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3251
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3253
if test "${ac_cv_prog_CC+set}" = set; then
3254
echo $ECHO_N "(cached) $ECHO_C" >&6
914
3256
if test -n "$CC"; then
915
3257
ac_cv_prog_CC="$CC" # Let the user override the test.
917
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
919
for ac_dir in $ac_dummy; do
920
test -z "$ac_dir" && ac_dir=.
921
if test -f $ac_dir/$ac_word; then
3259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263
test -z "$as_dir" && as_dir=.
3264
for ac_exec_ext in '' $ac_executable_extensions; do
3265
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3267
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277
if test -n "$CC"; then
3278
{ echo "$as_me:$LINENO: result: $CC" >&5
3279
echo "${ECHO_T}$CC" >&6; }
3281
{ echo "$as_me:$LINENO: result: no" >&5
3282
echo "${ECHO_T}no" >&6; }
3286
test -n "$CC" && break
930
if test -n "$CC"; then
931
echo "$ac_t""$CC" 1>&6
933
echo "$ac_t""no" 1>&6
3289
if test -z "$CC"; then
3291
for ac_prog in cl.exe
3293
# Extract the first word of "$ac_prog", so it can be a program name with args.
3294
set dummy $ac_prog; ac_word=$2
3295
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3296
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3297
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298
echo $ECHO_N "(cached) $ECHO_C" >&6
3300
if test -n "$ac_ct_CC"; then
3301
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307
test -z "$as_dir" && as_dir=.
3308
for ac_exec_ext in '' $ac_executable_extensions; do
3309
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310
ac_cv_prog_ac_ct_CC="$ac_prog"
3311
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
938
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
941
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
942
echo "configure:943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
945
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
946
ac_cpp='$CPP $CPPFLAGS'
947
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
948
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
949
cross_compiling=$ac_cv_prog_cc_cross
951
cat > conftest.$ac_ext << EOF
953
#line 954 "configure"
954
#include "confdefs.h"
958
if { (eval echo configure:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
959
ac_cv_prog_cc_works=yes
960
# If we can't run a trivial program, we are probably using a cross compiler.
961
if (./conftest; exit) 2>/dev/null; then
962
ac_cv_prog_cc_cross=no
3320
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321
if test -n "$ac_ct_CC"; then
3322
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3323
echo "${ECHO_T}$ac_ct_CC" >&6; }
3325
{ echo "$as_me:$LINENO: result: no" >&5
3326
echo "${ECHO_T}no" >&6; }
3330
test -n "$ac_ct_CC" && break
3333
if test "x$ac_ct_CC" = x; then
964
ac_cv_prog_cc_cross=yes
3336
case $cross_compiling:$ac_tool_warned in
3338
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3339
whose name does not start with the host triplet. If you think this
3340
configuration is useful to you, please write to autoconf@gnu.org." >&5
3341
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3342
whose name does not start with the host triplet. If you think this
3343
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3344
ac_tool_warned=yes ;;
967
echo "configure: failed program was:" >&5
968
cat conftest.$ac_ext >&5
969
ac_cv_prog_cc_works=no
973
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
974
ac_cpp='$CPP $CPPFLAGS'
975
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
976
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
977
cross_compiling=$ac_cv_prog_cc_cross
979
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
980
if test $ac_cv_prog_cc_works = no; then
981
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
983
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
984
echo "configure:985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
985
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
986
cross_compiling=$ac_cv_prog_cc_cross
988
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
989
echo "configure:990: checking whether we are using GNU C" >&5
990
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
991
echo $ac_n "(cached) $ac_c" 1>&6
993
cat > conftest.c <<EOF
3353
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3354
See \`config.log' for more details." >&5
3355
echo "$as_me: error: no acceptable C compiler found in \$PATH
3356
See \`config.log' for more details." >&2;}
3357
{ (exit 1); exit 1; }; }
3359
# Provide some information about the compiler.
3360
echo "$as_me:$LINENO: checking for C compiler version" >&5
3361
ac_compiler=`set X $ac_compile; echo $2`
3362
{ (ac_try="$ac_compiler --version >&5"
3364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365
*) ac_try_echo=$ac_try;;
3367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368
(eval "$ac_compiler --version >&5") 2>&5
3370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371
(exit $ac_status); }
3372
{ (ac_try="$ac_compiler -v >&5"
3374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375
*) ac_try_echo=$ac_try;;
3377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378
(eval "$ac_compiler -v >&5") 2>&5
3380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381
(exit $ac_status); }
3382
{ (ac_try="$ac_compiler -V >&5"
3384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385
*) ac_try_echo=$ac_try;;
3387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388
(eval "$ac_compiler -V >&5") 2>&5
3390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391
(exit $ac_status); }
3393
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3394
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3395
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3396
echo $ECHO_N "(cached) $ECHO_C" >&6
3398
cat >conftest.$ac_ext <<_ACEOF
3401
cat confdefs.h >>conftest.$ac_ext
3402
cat >>conftest.$ac_ext <<_ACEOF
3403
/* end confdefs.h. */
998
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1005
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1007
if test $ac_cv_prog_gcc = yes; then
1013
ac_test_CFLAGS="${CFLAGS+set}"
1014
ac_save_CFLAGS="$CFLAGS"
1016
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1017
echo "configure:1018: checking whether ${CC-cc} accepts -g" >&5
1018
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1019
echo $ac_n "(cached) $ac_c" 1>&6
1021
echo 'void f(){}' > conftest.c
1022
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1031
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3416
rm -f conftest.$ac_objext
3417
if { (ac_try="$ac_compile"
3419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420
*) ac_try_echo=$ac_try;;
3422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423
(eval "$ac_compile") 2>conftest.er1
3425
grep -v '^ *+' conftest.er1 >conftest.err
3427
cat conftest.err >&5
3428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429
(exit $ac_status); } && {
3430
test -z "$ac_c_werror_flag" ||
3431
test ! -s conftest.err
3432
} && test -s conftest.$ac_objext; then
3435
echo "$as_me: failed program was:" >&5
3436
sed 's/^/| /' conftest.$ac_ext >&5
3441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3446
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3447
GCC=`test $ac_compiler_gnu = yes && echo yes`
3448
ac_test_CFLAGS=${CFLAGS+set}
3449
ac_save_CFLAGS=$CFLAGS
3450
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3451
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3452
if test "${ac_cv_prog_cc_g+set}" = set; then
3453
echo $ECHO_N "(cached) $ECHO_C" >&6
3455
ac_save_c_werror_flag=$ac_c_werror_flag
3456
ac_c_werror_flag=yes
3459
cat >conftest.$ac_ext <<_ACEOF
3462
cat confdefs.h >>conftest.$ac_ext
3463
cat >>conftest.$ac_ext <<_ACEOF
3464
/* end confdefs.h. */
3474
rm -f conftest.$ac_objext
3475
if { (ac_try="$ac_compile"
3477
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478
*) ac_try_echo=$ac_try;;
3480
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481
(eval "$ac_compile") 2>conftest.er1
3483
grep -v '^ *+' conftest.er1 >conftest.err
3485
cat conftest.err >&5
3486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487
(exit $ac_status); } && {
3488
test -z "$ac_c_werror_flag" ||
3489
test ! -s conftest.err
3490
} && test -s conftest.$ac_objext; then
3493
echo "$as_me: failed program was:" >&5
3494
sed 's/^/| /' conftest.$ac_ext >&5
3497
cat >conftest.$ac_ext <<_ACEOF
3500
cat confdefs.h >>conftest.$ac_ext
3501
cat >>conftest.$ac_ext <<_ACEOF
3502
/* end confdefs.h. */
3512
rm -f conftest.$ac_objext
3513
if { (ac_try="$ac_compile"
3515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516
*) ac_try_echo=$ac_try;;
3518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519
(eval "$ac_compile") 2>conftest.er1
3521
grep -v '^ *+' conftest.er1 >conftest.err
3523
cat conftest.err >&5
3524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525
(exit $ac_status); } && {
3526
test -z "$ac_c_werror_flag" ||
3527
test ! -s conftest.err
3528
} && test -s conftest.$ac_objext; then
3531
echo "$as_me: failed program was:" >&5
3532
sed 's/^/| /' conftest.$ac_ext >&5
3534
ac_c_werror_flag=$ac_save_c_werror_flag
3536
cat >conftest.$ac_ext <<_ACEOF
3539
cat confdefs.h >>conftest.$ac_ext
3540
cat >>conftest.$ac_ext <<_ACEOF
3541
/* end confdefs.h. */
3551
rm -f conftest.$ac_objext
3552
if { (ac_try="$ac_compile"
3554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555
*) ac_try_echo=$ac_try;;
3557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558
(eval "$ac_compile") 2>conftest.er1
3560
grep -v '^ *+' conftest.er1 >conftest.err
3562
cat conftest.err >&5
3563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564
(exit $ac_status); } && {
3565
test -z "$ac_c_werror_flag" ||
3566
test ! -s conftest.err
3567
} && test -s conftest.$ac_objext; then
3570
echo "$as_me: failed program was:" >&5
3571
sed 's/^/| /' conftest.$ac_ext >&5
3576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583
ac_c_werror_flag=$ac_save_c_werror_flag
3585
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3586
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1032
3587
if test "$ac_test_CFLAGS" = set; then
1033
CFLAGS="$ac_save_CFLAGS"
3588
CFLAGS=$ac_save_CFLAGS
1034
3589
elif test $ac_cv_prog_cc_g = yes; then
1035
3590
if test "$GCC" = yes; then
1036
3591
CFLAGS="-g -O2"
1246
3953
LDFLAGS="-fomit-frame-pointer -fno-math-errno"
1249
cat > conftest.$ac_ext <<EOF
1250
#line 1251 "configure"
1251
#include "confdefs.h"
3956
cat >conftest.$ac_ext <<_ACEOF
3959
cat confdefs.h >>conftest.$ac_ext
3960
cat >>conftest.$ac_ext <<_ACEOF
3961
/* end confdefs.h. */
1252
3962
#include <stdio.h>
1257
if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1260
if test x"$with_enable_debug" = xyes; then
1261
cat >> confdefs.h <<\EOF
1262
#define CODE_DEBUG 1
1269
echo "configure: failed program was:" >&5
1270
cat conftest.$ac_ext >&5
1273
if test x"$with_enable_debug" = xyes; then
1274
CFLAGS="${enable_debug_save_CFLAGS}"
1275
CXXFLAGS="${enable_debug_save_CXXFLAGS}"
1276
LDFLAGS="${enable_debug_save_LDFLAGS}"
1277
cat >> confdefs.h <<\EOF
1278
#define CODE_DEBUG 1
1283
CFLAGS="${enable_debug_save_CFLAGS}"
1284
CXXFLAGS="${enable_debug_save_CXXFLAGS}"
1285
LDFLAGS="${enable_debug_save_LDFLAGS}"
1290
echo "$ac_t""$is_debug" 1>&6
1294
if test -z "$ansi"; then
1295
msg="for C compiler warning flags"
1297
msg="for C compiler warning and ANSI conformance flags"
1299
echo $ac_n "checking $msg""... $ac_c" 1>&6
1300
echo "configure:1301: checking $msg" >&5
1301
if eval "test \"`echo '$''{'vl_cv_prog_cc_warnings'+set}'`\" = set"; then
1302
echo $ac_n "(cached) $ac_c" 1>&6
1305
if test -n "$CC"; then
1306
cat > conftest.c <<EOF
1307
int main(int argc, char **argv) { return 0; }
1310
if test "$GCC" = "yes"; then
1311
if test -z "$ansi"; then
1312
vl_cv_prog_cc_warnings="-Wall"
1314
vl_cv_prog_cc_warnings="-Wall -ansi -pedantic"
1318
elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
1319
$CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
1320
test -f conftest.o; then
1321
if test -z "$ansi"; then
1322
vl_cv_prog_cc_warnings="-v"
1324
vl_cv_prog_cc_warnings="-v -Xc"
1327
elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
1328
$CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
1329
test -f conftest.o; then
1330
if test -z "$ansi"; then
1331
vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
1333
vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
1336
elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
1337
$CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
1338
test -f conftest.o; then
1339
if test -z "$ansi"; then
1340
vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
1342
vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
1345
elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
1346
$CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
1347
test -f conftest.o; then
1348
if test -z "$ansi"; then
1349
vl_cv_prog_cc_warnings="-fullwarn"
1351
vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
1354
elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
1355
$CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
1356
test -f conftest.o; then
1357
if test -z "$ansi"; then
1358
vl_cv_prog_cc_warnings="+w1"
1360
vl_cv_prog_cc_warnings="+w1 -Aa"
1363
elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
1364
$CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
1365
test -f conftest.o; then
1366
if test -z "$ansi"; then
1367
vl_cv_prog_cc_warnings="-pvctl,fullmsg"
1369
vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
1372
elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
1373
$CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
1374
test -f conftest.o; then
1375
if test -z "$ansi"; then
1376
vl_cv_prog_cc_warnings="-h msglevel 2"
1378
vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
1384
if test -n "$vl_cv_prog_cc_warnings"; then
1385
CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
1386
CXXFLAGS="$CXXFLAGS $vl_cv_prog_cc_warnings"
1388
vl_cv_prog_cc_warnings="unknown"
1393
echo "$ac_t""$vl_cv_prog_cc_warnings" 1>&6
1398
echo $ac_n "checking for lua""... $ac_c" 1>&6
1399
echo "configure:1400: checking for lua" >&5
1401
# Check whether --with-lua-dir or --without-lua-dir was given.
3971
rm -f conftest.$ac_objext conftest$ac_exeext
3972
if { (ac_try="$ac_link"
3974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975
*) ac_try_echo=$ac_try;;
3977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978
(eval "$ac_link") 2>conftest.er1
3980
grep -v '^ *+' conftest.er1 >conftest.err
3982
cat conftest.err >&5
3983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
(exit $ac_status); } && {
3985
test -z "$ac_c_werror_flag" ||
3986
test ! -s conftest.err
3987
} && test -s conftest$ac_exeext &&
3988
$as_test_x conftest$ac_exeext; then
3990
if test x"$enable_debug" = xyes; then
3991
cat >>confdefs.h <<\_ACEOF
3992
#define CODE_DEBUG 1
3999
echo "$as_me: failed program was:" >&5
4000
sed 's/^/| /' conftest.$ac_ext >&5
4003
if test x"$enable_debug" = xyes; then
4004
CFLAGS="${enable_debug_save_CFLAGS}"
4005
CXXFLAGS="${enable_debug_save_CXXFLAGS}"
4006
LDFLAGS="${enable_debug_save_LDFLAGS}"
4007
cat >>confdefs.h <<\_ACEOF
4008
#define CODE_DEBUG 1
4013
CFLAGS="${enable_debug_save_CFLAGS}"
4014
CXXFLAGS="${enable_debug_save_CXXFLAGS}"
4015
LDFLAGS="${enable_debug_save_LDFLAGS}"
4020
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4021
conftest$ac_exeext conftest.$ac_ext
4022
{ echo "$as_me:$LINENO: result: $is_debug" >&5
4023
echo "${ECHO_T}$is_debug" >&6; }
4026
# Checks for libraries.
4028
# Checks for header files.
4035
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4036
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4037
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4038
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4039
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4040
echo $ECHO_N "(cached) $ECHO_C" >&6
4042
cat >conftest.$ac_ext <<_ACEOF
4045
cat confdefs.h >>conftest.$ac_ext
4046
cat >>conftest.$ac_ext <<_ACEOF
4047
/* end confdefs.h. */
4048
#include <sys/types.h>
4060
rm -f conftest.$ac_objext
4061
if { (ac_try="$ac_compile"
4063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064
*) ac_try_echo=$ac_try;;
4066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067
(eval "$ac_compile") 2>conftest.er1
4069
grep -v '^ *+' conftest.er1 >conftest.err
4071
cat conftest.err >&5
4072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
(exit $ac_status); } && {
4074
test -z "$ac_c_werror_flag" ||
4075
test ! -s conftest.err
4076
} && test -s conftest.$ac_objext; then
4077
eval "$as_ac_Header=yes"
4079
echo "$as_me: failed program was:" >&5
4080
sed 's/^/| /' conftest.$ac_ext >&5
4082
eval "$as_ac_Header=no"
4085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087
ac_res=`eval echo '${'$as_ac_Header'}'`
4088
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4089
echo "${ECHO_T}$ac_res" >&6; }
4090
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4091
cat >>confdefs.h <<_ACEOF
4092
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4095
ac_header_dirent=$ac_hdr; break
4099
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4100
if test $ac_header_dirent = dirent.h; then
4101
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
4102
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4103
if test "${ac_cv_search_opendir+set}" = set; then
4104
echo $ECHO_N "(cached) $ECHO_C" >&6
4106
ac_func_search_save_LIBS=$LIBS
4107
cat >conftest.$ac_ext <<_ACEOF
4110
cat confdefs.h >>conftest.$ac_ext
4111
cat >>conftest.$ac_ext <<_ACEOF
4112
/* end confdefs.h. */
4114
/* Override any GCC internal prototype to avoid an error.
4115
Use char because int might match the return type of a GCC
4116
builtin and then its argument prototype would still apply. */
4129
for ac_lib in '' dir; do
4130
if test -z "$ac_lib"; then
4131
ac_res="none required"
4134
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4136
rm -f conftest.$ac_objext conftest$ac_exeext
4137
if { (ac_try="$ac_link"
4139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140
*) ac_try_echo=$ac_try;;
4142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143
(eval "$ac_link") 2>conftest.er1
4145
grep -v '^ *+' conftest.er1 >conftest.err
4147
cat conftest.err >&5
4148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149
(exit $ac_status); } && {
4150
test -z "$ac_c_werror_flag" ||
4151
test ! -s conftest.err
4152
} && test -s conftest$ac_exeext &&
4153
$as_test_x conftest$ac_exeext; then
4154
ac_cv_search_opendir=$ac_res
4156
echo "$as_me: failed program was:" >&5
4157
sed 's/^/| /' conftest.$ac_ext >&5
4162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4164
if test "${ac_cv_search_opendir+set}" = set; then
4168
if test "${ac_cv_search_opendir+set}" = set; then
4171
ac_cv_search_opendir=no
4174
LIBS=$ac_func_search_save_LIBS
4176
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4177
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4178
ac_res=$ac_cv_search_opendir
4179
if test "$ac_res" != no; then
4180
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4185
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
4186
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4187
if test "${ac_cv_search_opendir+set}" = set; then
4188
echo $ECHO_N "(cached) $ECHO_C" >&6
4190
ac_func_search_save_LIBS=$LIBS
4191
cat >conftest.$ac_ext <<_ACEOF
4194
cat confdefs.h >>conftest.$ac_ext
4195
cat >>conftest.$ac_ext <<_ACEOF
4196
/* end confdefs.h. */
4198
/* Override any GCC internal prototype to avoid an error.
4199
Use char because int might match the return type of a GCC
4200
builtin and then its argument prototype would still apply. */
4213
for ac_lib in '' x; do
4214
if test -z "$ac_lib"; then
4215
ac_res="none required"
4218
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4220
rm -f conftest.$ac_objext conftest$ac_exeext
4221
if { (ac_try="$ac_link"
4223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224
*) ac_try_echo=$ac_try;;
4226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227
(eval "$ac_link") 2>conftest.er1
4229
grep -v '^ *+' conftest.er1 >conftest.err
4231
cat conftest.err >&5
4232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233
(exit $ac_status); } && {
4234
test -z "$ac_c_werror_flag" ||
4235
test ! -s conftest.err
4236
} && test -s conftest$ac_exeext &&
4237
$as_test_x conftest$ac_exeext; then
4238
ac_cv_search_opendir=$ac_res
4240
echo "$as_me: failed program was:" >&5
4241
sed 's/^/| /' conftest.$ac_ext >&5
4246
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248
if test "${ac_cv_search_opendir+set}" = set; then
4252
if test "${ac_cv_search_opendir+set}" = set; then
4255
ac_cv_search_opendir=no
4258
LIBS=$ac_func_search_save_LIBS
4260
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4261
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4262
ac_res=$ac_cv_search_opendir
4263
if test "$ac_res" != no; then
4264
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4271
ac_cpp='$CPP $CPPFLAGS'
4272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4276
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4277
# On Suns, sometimes $CPP names a directory.
4278
if test -n "$CPP" && test -d "$CPP"; then
4281
if test -z "$CPP"; then
4282
if test "${ac_cv_prog_CPP+set}" = set; then
4283
echo $ECHO_N "(cached) $ECHO_C" >&6
4285
# Double quotes because CPP needs to be expanded
4286
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4289
for ac_c_preproc_warn_flag in '' yes
4291
# Use a header file that comes with gcc, so configuring glibc
4292
# with a fresh cross-compiler works.
4293
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4294
# <limits.h> exists even on freestanding compilers.
4295
# On the NeXT, cc -E runs the code through the compiler's parser,
4296
# not just through cpp. "Syntax error" is here to catch this case.
4297
cat >conftest.$ac_ext <<_ACEOF
4300
cat confdefs.h >>conftest.$ac_ext
4301
cat >>conftest.$ac_ext <<_ACEOF
4302
/* end confdefs.h. */
4304
# include <limits.h>
4306
# include <assert.h>
4310
if { (ac_try="$ac_cpp conftest.$ac_ext"
4312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313
*) ac_try_echo=$ac_try;;
4315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4318
grep -v '^ *+' conftest.er1 >conftest.err
4320
cat conftest.err >&5
4321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
(exit $ac_status); } >/dev/null && {
4323
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4324
test ! -s conftest.err
4328
echo "$as_me: failed program was:" >&5
4329
sed 's/^/| /' conftest.$ac_ext >&5
4331
# Broken: fails on valid input.
4335
rm -f conftest.err conftest.$ac_ext
4337
# OK, works on sane cases. Now check whether nonexistent headers
4338
# can be detected and how.
4339
cat >conftest.$ac_ext <<_ACEOF
4342
cat confdefs.h >>conftest.$ac_ext
4343
cat >>conftest.$ac_ext <<_ACEOF
4344
/* end confdefs.h. */
4345
#include <ac_nonexistent.h>
4347
if { (ac_try="$ac_cpp conftest.$ac_ext"
4349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350
*) ac_try_echo=$ac_try;;
4352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4355
grep -v '^ *+' conftest.er1 >conftest.err
4357
cat conftest.err >&5
4358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
(exit $ac_status); } >/dev/null && {
4360
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4361
test ! -s conftest.err
4363
# Broken: success on invalid input.
4366
echo "$as_me: failed program was:" >&5
4367
sed 's/^/| /' conftest.$ac_ext >&5
4369
# Passes both tests.
4374
rm -f conftest.err conftest.$ac_ext
4377
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4378
rm -f conftest.err conftest.$ac_ext
4379
if $ac_preproc_ok; then
4391
{ echo "$as_me:$LINENO: result: $CPP" >&5
4392
echo "${ECHO_T}$CPP" >&6; }
4394
for ac_c_preproc_warn_flag in '' yes
4396
# Use a header file that comes with gcc, so configuring glibc
4397
# with a fresh cross-compiler works.
4398
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4399
# <limits.h> exists even on freestanding compilers.
4400
# On the NeXT, cc -E runs the code through the compiler's parser,
4401
# not just through cpp. "Syntax error" is here to catch this case.
4402
cat >conftest.$ac_ext <<_ACEOF
4405
cat confdefs.h >>conftest.$ac_ext
4406
cat >>conftest.$ac_ext <<_ACEOF
4407
/* end confdefs.h. */
4409
# include <limits.h>
4411
# include <assert.h>
4415
if { (ac_try="$ac_cpp conftest.$ac_ext"
4417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418
*) ac_try_echo=$ac_try;;
4420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4423
grep -v '^ *+' conftest.er1 >conftest.err
4425
cat conftest.err >&5
4426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427
(exit $ac_status); } >/dev/null && {
4428
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4429
test ! -s conftest.err
4433
echo "$as_me: failed program was:" >&5
4434
sed 's/^/| /' conftest.$ac_ext >&5
4436
# Broken: fails on valid input.
4440
rm -f conftest.err conftest.$ac_ext
4442
# OK, works on sane cases. Now check whether nonexistent headers
4443
# can be detected and how.
4444
cat >conftest.$ac_ext <<_ACEOF
4447
cat confdefs.h >>conftest.$ac_ext
4448
cat >>conftest.$ac_ext <<_ACEOF
4449
/* end confdefs.h. */
4450
#include <ac_nonexistent.h>
4452
if { (ac_try="$ac_cpp conftest.$ac_ext"
4454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455
*) ac_try_echo=$ac_try;;
4457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4460
grep -v '^ *+' conftest.er1 >conftest.err
4462
cat conftest.err >&5
4463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464
(exit $ac_status); } >/dev/null && {
4465
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4466
test ! -s conftest.err
4468
# Broken: success on invalid input.
4471
echo "$as_me: failed program was:" >&5
4472
sed 's/^/| /' conftest.$ac_ext >&5
4474
# Passes both tests.
4479
rm -f conftest.err conftest.$ac_ext
4482
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483
rm -f conftest.err conftest.$ac_ext
4484
if $ac_preproc_ok; then
4487
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4488
See \`config.log' for more details." >&5
4489
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4490
See \`config.log' for more details." >&2;}
4491
{ (exit 1); exit 1; }; }
4495
ac_cpp='$CPP $CPPFLAGS'
4496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4502
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4503
if test "${ac_cv_path_GREP+set}" = set; then
4504
echo $ECHO_N "(cached) $ECHO_C" >&6
4506
# Extract the first word of "grep ggrep" to use in msg output
4507
if test -z "$GREP"; then
4508
set dummy grep ggrep; ac_prog_name=$2
4509
if test "${ac_cv_path_GREP+set}" = set; then
4510
echo $ECHO_N "(cached) $ECHO_C" >&6
4512
ac_path_GREP_found=false
4513
# Loop through the user's path and test for each of PROGNAME-LIST
4514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518
test -z "$as_dir" && as_dir=.
4519
for ac_prog in grep ggrep; do
4520
for ac_exec_ext in '' $ac_executable_extensions; do
4521
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4522
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4523
# Check for GNU ac_path_GREP and select it if it is found.
4524
# Check for GNU $ac_path_GREP
4525
case `"$ac_path_GREP" --version 2>&1` in
4527
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4530
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4533
cat "conftest.in" "conftest.in" >"conftest.tmp"
4534
mv "conftest.tmp" "conftest.in"
4535
cp "conftest.in" "conftest.nl"
4536
echo 'GREP' >> "conftest.nl"
4537
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4538
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4539
ac_count=`expr $ac_count + 1`
4540
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4541
# Best one so far, save it but keep looking for a better one
4542
ac_cv_path_GREP="$ac_path_GREP"
4543
ac_path_GREP_max=$ac_count
4545
# 10*(2^10) chars as input seems more than enough
4546
test $ac_count -gt 10 && break
4548
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552
$ac_path_GREP_found && break 3
4562
GREP="$ac_cv_path_GREP"
4563
if test -z "$GREP"; then
4564
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4565
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4566
{ (exit 1); exit 1; }; }
4570
ac_cv_path_GREP=$GREP
4575
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4576
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4577
GREP="$ac_cv_path_GREP"
4580
{ echo "$as_me:$LINENO: checking for egrep" >&5
4581
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4582
if test "${ac_cv_path_EGREP+set}" = set; then
4583
echo $ECHO_N "(cached) $ECHO_C" >&6
4585
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4586
then ac_cv_path_EGREP="$GREP -E"
4588
# Extract the first word of "egrep" to use in msg output
4589
if test -z "$EGREP"; then
4590
set dummy egrep; ac_prog_name=$2
4591
if test "${ac_cv_path_EGREP+set}" = set; then
4592
echo $ECHO_N "(cached) $ECHO_C" >&6
4594
ac_path_EGREP_found=false
4595
# Loop through the user's path and test for each of PROGNAME-LIST
4596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600
test -z "$as_dir" && as_dir=.
4601
for ac_prog in egrep; do
4602
for ac_exec_ext in '' $ac_executable_extensions; do
4603
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4604
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4605
# Check for GNU ac_path_EGREP and select it if it is found.
4606
# Check for GNU $ac_path_EGREP
4607
case `"$ac_path_EGREP" --version 2>&1` in
4609
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4612
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4615
cat "conftest.in" "conftest.in" >"conftest.tmp"
4616
mv "conftest.tmp" "conftest.in"
4617
cp "conftest.in" "conftest.nl"
4618
echo 'EGREP' >> "conftest.nl"
4619
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621
ac_count=`expr $ac_count + 1`
4622
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4623
# Best one so far, save it but keep looking for a better one
4624
ac_cv_path_EGREP="$ac_path_EGREP"
4625
ac_path_EGREP_max=$ac_count
4627
# 10*(2^10) chars as input seems more than enough
4628
test $ac_count -gt 10 && break
4630
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634
$ac_path_EGREP_found && break 3
4644
EGREP="$ac_cv_path_EGREP"
4645
if test -z "$EGREP"; then
4646
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4647
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4648
{ (exit 1); exit 1; }; }
4652
ac_cv_path_EGREP=$EGREP
4658
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4659
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4660
EGREP="$ac_cv_path_EGREP"
4663
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4664
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4665
if test "${ac_cv_header_stdc+set}" = set; then
4666
echo $ECHO_N "(cached) $ECHO_C" >&6
4668
cat >conftest.$ac_ext <<_ACEOF
4671
cat confdefs.h >>conftest.$ac_ext
4672
cat >>conftest.$ac_ext <<_ACEOF
4673
/* end confdefs.h. */
4687
rm -f conftest.$ac_objext
4688
if { (ac_try="$ac_compile"
4690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691
*) ac_try_echo=$ac_try;;
4693
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694
(eval "$ac_compile") 2>conftest.er1
4696
grep -v '^ *+' conftest.er1 >conftest.err
4698
cat conftest.err >&5
4699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700
(exit $ac_status); } && {
4701
test -z "$ac_c_werror_flag" ||
4702
test ! -s conftest.err
4703
} && test -s conftest.$ac_objext; then
4704
ac_cv_header_stdc=yes
4706
echo "$as_me: failed program was:" >&5
4707
sed 's/^/| /' conftest.$ac_ext >&5
4709
ac_cv_header_stdc=no
4712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714
if test $ac_cv_header_stdc = yes; then
4715
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4716
cat >conftest.$ac_ext <<_ACEOF
4719
cat confdefs.h >>conftest.$ac_ext
4720
cat >>conftest.$ac_ext <<_ACEOF
4721
/* end confdefs.h. */
4725
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726
$EGREP "memchr" >/dev/null 2>&1; then
4729
ac_cv_header_stdc=no
4735
if test $ac_cv_header_stdc = yes; then
4736
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4737
cat >conftest.$ac_ext <<_ACEOF
4740
cat confdefs.h >>conftest.$ac_ext
4741
cat >>conftest.$ac_ext <<_ACEOF
4742
/* end confdefs.h. */
4746
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747
$EGREP "free" >/dev/null 2>&1; then
4750
ac_cv_header_stdc=no
4756
if test $ac_cv_header_stdc = yes; then
4757
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4758
if test "$cross_compiling" = yes; then
4761
cat >conftest.$ac_ext <<_ACEOF
4764
cat confdefs.h >>conftest.$ac_ext
4765
cat >>conftest.$ac_ext <<_ACEOF
4766
/* end confdefs.h. */
4769
#if ((' ' & 0x0FF) == 0x020)
4770
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4771
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4773
# define ISLOWER(c) \
4774
(('a' <= (c) && (c) <= 'i') \
4775
|| ('j' <= (c) && (c) <= 'r') \
4776
|| ('s' <= (c) && (c) <= 'z'))
4777
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4780
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4785
for (i = 0; i < 256; i++)
4786
if (XOR (islower (i), ISLOWER (i))
4787
|| toupper (i) != TOUPPER (i))
4792
rm -f conftest$ac_exeext
4793
if { (ac_try="$ac_link"
4795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796
*) ac_try_echo=$ac_try;;
4798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799
(eval "$ac_link") 2>&5
4801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4803
{ (case "(($ac_try" in
4804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805
*) ac_try_echo=$ac_try;;
4807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808
(eval "$ac_try") 2>&5
4810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811
(exit $ac_status); }; }; then
4814
echo "$as_me: program exited with status $ac_status" >&5
4815
echo "$as_me: failed program was:" >&5
4816
sed 's/^/| /' conftest.$ac_ext >&5
4819
ac_cv_header_stdc=no
4821
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4827
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4828
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4829
if test $ac_cv_header_stdc = yes; then
4831
cat >>confdefs.h <<\_ACEOF
4832
#define STDC_HEADERS 1
4837
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4838
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4839
if test "${ac_cv_header_sys_wait_h+set}" = set; then
4840
echo $ECHO_N "(cached) $ECHO_C" >&6
4842
cat >conftest.$ac_ext <<_ACEOF
4845
cat confdefs.h >>conftest.$ac_ext
4846
cat >>conftest.$ac_ext <<_ACEOF
4847
/* end confdefs.h. */
4848
#include <sys/types.h>
4849
#include <sys/wait.h>
4851
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4854
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4862
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4867
rm -f conftest.$ac_objext
4868
if { (ac_try="$ac_compile"
4870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871
*) ac_try_echo=$ac_try;;
4873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874
(eval "$ac_compile") 2>conftest.er1
4876
grep -v '^ *+' conftest.er1 >conftest.err
4878
cat conftest.err >&5
4879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880
(exit $ac_status); } && {
4881
test -z "$ac_c_werror_flag" ||
4882
test ! -s conftest.err
4883
} && test -s conftest.$ac_objext; then
4884
ac_cv_header_sys_wait_h=yes
4886
echo "$as_me: failed program was:" >&5
4887
sed 's/^/| /' conftest.$ac_ext >&5
4889
ac_cv_header_sys_wait_h=no
4892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4895
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4896
if test $ac_cv_header_sys_wait_h = yes; then
4898
cat >>confdefs.h <<\_ACEOF
4899
#define HAVE_SYS_WAIT_H 1
4904
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4914
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4915
inttypes.h stdint.h unistd.h
4917
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4918
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4919
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4920
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4921
echo $ECHO_N "(cached) $ECHO_C" >&6
4923
cat >conftest.$ac_ext <<_ACEOF
4926
cat confdefs.h >>conftest.$ac_ext
4927
cat >>conftest.$ac_ext <<_ACEOF
4928
/* end confdefs.h. */
4929
$ac_includes_default
4931
#include <$ac_header>
4933
rm -f conftest.$ac_objext
4934
if { (ac_try="$ac_compile"
4936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937
*) ac_try_echo=$ac_try;;
4939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940
(eval "$ac_compile") 2>conftest.er1
4942
grep -v '^ *+' conftest.er1 >conftest.err
4944
cat conftest.err >&5
4945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946
(exit $ac_status); } && {
4947
test -z "$ac_c_werror_flag" ||
4948
test ! -s conftest.err
4949
} && test -s conftest.$ac_objext; then
4950
eval "$as_ac_Header=yes"
4952
echo "$as_me: failed program was:" >&5
4953
sed 's/^/| /' conftest.$ac_ext >&5
4955
eval "$as_ac_Header=no"
4958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960
ac_res=`eval echo '${'$as_ac_Header'}'`
4961
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4962
echo "${ECHO_T}$ac_res" >&6; }
4963
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4964
cat >>confdefs.h <<_ACEOF
4965
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4982
for ac_header in limits.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/time.h sys/timeb.h unistd.h
4984
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4986
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4987
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4988
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4989
echo $ECHO_N "(cached) $ECHO_C" >&6
4991
ac_res=`eval echo '${'$as_ac_Header'}'`
4992
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4993
echo "${ECHO_T}$ac_res" >&6; }
4995
# Is the header compilable?
4996
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4997
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4998
cat >conftest.$ac_ext <<_ACEOF
5001
cat confdefs.h >>conftest.$ac_ext
5002
cat >>conftest.$ac_ext <<_ACEOF
5003
/* end confdefs.h. */
5004
$ac_includes_default
5005
#include <$ac_header>
5007
rm -f conftest.$ac_objext
5008
if { (ac_try="$ac_compile"
5010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011
*) ac_try_echo=$ac_try;;
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014
(eval "$ac_compile") 2>conftest.er1
5016
grep -v '^ *+' conftest.er1 >conftest.err
5018
cat conftest.err >&5
5019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020
(exit $ac_status); } && {
5021
test -z "$ac_c_werror_flag" ||
5022
test ! -s conftest.err
5023
} && test -s conftest.$ac_objext; then
5024
ac_header_compiler=yes
5026
echo "$as_me: failed program was:" >&5
5027
sed 's/^/| /' conftest.$ac_ext >&5
5029
ac_header_compiler=no
5032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5034
echo "${ECHO_T}$ac_header_compiler" >&6; }
5036
# Is the header present?
5037
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5038
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5039
cat >conftest.$ac_ext <<_ACEOF
5042
cat confdefs.h >>conftest.$ac_ext
5043
cat >>conftest.$ac_ext <<_ACEOF
5044
/* end confdefs.h. */
5045
#include <$ac_header>
5047
if { (ac_try="$ac_cpp conftest.$ac_ext"
5049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050
*) ac_try_echo=$ac_try;;
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055
grep -v '^ *+' conftest.er1 >conftest.err
5057
cat conftest.err >&5
5058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059
(exit $ac_status); } >/dev/null && {
5060
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061
test ! -s conftest.err
5063
ac_header_preproc=yes
5065
echo "$as_me: failed program was:" >&5
5066
sed 's/^/| /' conftest.$ac_ext >&5
5068
ac_header_preproc=no
5071
rm -f conftest.err conftest.$ac_ext
5072
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5073
echo "${ECHO_T}$ac_header_preproc" >&6; }
5075
# So? What about this header?
5076
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5078
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5079
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5080
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5081
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5082
ac_header_preproc=yes
5085
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5086
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5087
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5088
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5089
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5090
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5091
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5092
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5093
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5094
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5095
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5096
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5098
## ----------------------------------- ##
5099
## Report this to kevin@misfitcode.com ##
5100
## ----------------------------------- ##
5102
) | sed "s/^/$as_me: WARNING: /" >&2
5105
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5106
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108
echo $ECHO_N "(cached) $ECHO_C" >&6
5110
eval "$as_ac_Header=\$ac_header_preproc"
5112
ac_res=`eval echo '${'$as_ac_Header'}'`
5113
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5114
echo "${ECHO_T}$ac_res" >&6; }
5117
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5118
cat >>confdefs.h <<_ACEOF
5119
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127
# Checks for typedefs, structures, and compiler characteristics.
5128
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5129
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5130
if test "${ac_cv_header_stat_broken+set}" = set; then
5131
echo $ECHO_N "(cached) $ECHO_C" >&6
5133
cat >conftest.$ac_ext <<_ACEOF
5136
cat confdefs.h >>conftest.$ac_ext
5137
cat >>conftest.$ac_ext <<_ACEOF
5138
/* end confdefs.h. */
5139
#include <sys/types.h>
5140
#include <sys/stat.h>
5142
#if defined S_ISBLK && defined S_IFDIR
5143
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5146
#if defined S_ISBLK && defined S_IFCHR
5147
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5150
#if defined S_ISLNK && defined S_IFREG
5151
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5154
#if defined S_ISSOCK && defined S_IFREG
5155
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5159
rm -f conftest.$ac_objext
5160
if { (ac_try="$ac_compile"
5162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163
*) ac_try_echo=$ac_try;;
5165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166
(eval "$ac_compile") 2>conftest.er1
5168
grep -v '^ *+' conftest.er1 >conftest.err
5170
cat conftest.err >&5
5171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172
(exit $ac_status); } && {
5173
test -z "$ac_c_werror_flag" ||
5174
test ! -s conftest.err
5175
} && test -s conftest.$ac_objext; then
5176
ac_cv_header_stat_broken=no
5178
echo "$as_me: failed program was:" >&5
5179
sed 's/^/| /' conftest.$ac_ext >&5
5181
ac_cv_header_stat_broken=yes
5184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5187
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5188
if test $ac_cv_header_stat_broken = yes; then
5190
cat >>confdefs.h <<\_ACEOF
5191
#define STAT_MACROS_BROKEN 1
5196
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5197
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
5198
if test "${ac_cv_header_stdbool_h+set}" = set; then
5199
echo $ECHO_N "(cached) $ECHO_C" >&6
5201
cat >conftest.$ac_ext <<_ACEOF
5204
cat confdefs.h >>conftest.$ac_ext
5205
cat >>conftest.$ac_ext <<_ACEOF
5206
/* end confdefs.h. */
5208
#include <stdbool.h>
5210
"error: bool is not defined"
5213
"error: false is not defined"
5216
"error: false is not 0"
5219
"error: true is not defined"
5222
"error: true is not 1"
5224
#ifndef __bool_true_false_are_defined
5225
"error: __bool_true_false_are_defined is not defined"
5228
struct s { _Bool s: 1; _Bool t; } s;
5230
char a[true == 1 ? 1 : -1];
5231
char b[false == 0 ? 1 : -1];
5232
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5233
char d[(bool) 0.5 == true ? 1 : -1];
5235
char f[(_Bool) 0.0 == false ? 1 : -1];
5237
char h[sizeof (_Bool)];
5239
enum { j = false, k = true, l = false * true, m = true * 256 };
5241
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5242
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5243
# if defined __xlc__ || defined __GNUC__
5244
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5245
reported by James Lemley on 2005-10-05; see
5246
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5247
This test is not quite right, since xlc is allowed to
5248
reject this program, as the initializer for xlcbug is
5249
not one of the forms that C requires support for.
5250
However, doing the test right would require a runtime
5251
test, and that would make cross-compilation harder.
5252
Let us hope that IBM fixes the xlc bug, and also adds
5253
support for this kind of constant expression. In the
5254
meantime, this test will reject xlc, which is OK, since
5255
our stdbool.h substitute should suffice. We also test
5256
this with GCC, where it should work, to detect more
5257
quickly whether someone messes up the test in the
5259
char digs[] = "0123456789";
5260
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5262
/* Catch a bug in an HP-UX C compiler. See
5263
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5264
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5275
/* Refer to every declared value, to avoid compiler optimizations. */
5276
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5277
+ !m + !n + !o + !p + !q + !pq);
5283
rm -f conftest.$ac_objext
5284
if { (ac_try="$ac_compile"
5286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287
*) ac_try_echo=$ac_try;;
5289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290
(eval "$ac_compile") 2>conftest.er1
5292
grep -v '^ *+' conftest.er1 >conftest.err
5294
cat conftest.err >&5
5295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
(exit $ac_status); } && {
5297
test -z "$ac_c_werror_flag" ||
5298
test ! -s conftest.err
5299
} && test -s conftest.$ac_objext; then
5300
ac_cv_header_stdbool_h=yes
5302
echo "$as_me: failed program was:" >&5
5303
sed 's/^/| /' conftest.$ac_ext >&5
5305
ac_cv_header_stdbool_h=no
5308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5311
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
5312
{ echo "$as_me:$LINENO: checking for _Bool" >&5
5313
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
5314
if test "${ac_cv_type__Bool+set}" = set; then
5315
echo $ECHO_N "(cached) $ECHO_C" >&6
5317
cat >conftest.$ac_ext <<_ACEOF
5320
cat confdefs.h >>conftest.$ac_ext
5321
cat >>conftest.$ac_ext <<_ACEOF
5322
/* end confdefs.h. */
5323
$ac_includes_default
5324
typedef _Bool ac__type_new_;
5328
if ((ac__type_new_ *) 0)
5330
if (sizeof (ac__type_new_))
5336
rm -f conftest.$ac_objext
5337
if { (ac_try="$ac_compile"
5339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340
*) ac_try_echo=$ac_try;;
5342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343
(eval "$ac_compile") 2>conftest.er1
5345
grep -v '^ *+' conftest.er1 >conftest.err
5347
cat conftest.err >&5
5348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349
(exit $ac_status); } && {
5350
test -z "$ac_c_werror_flag" ||
5351
test ! -s conftest.err
5352
} && test -s conftest.$ac_objext; then
5353
ac_cv_type__Bool=yes
5355
echo "$as_me: failed program was:" >&5
5356
sed 's/^/| /' conftest.$ac_ext >&5
5361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5364
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
5365
if test $ac_cv_type__Bool = yes; then
5367
cat >>confdefs.h <<_ACEOF
5368
#define HAVE__BOOL 1
5374
if test $ac_cv_header_stdbool_h = yes; then
5376
cat >>confdefs.h <<\_ACEOF
5377
#define HAVE_STDBOOL_H 1
5382
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5383
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5384
if test "${ac_cv_c_const+set}" = set; then
5385
echo $ECHO_N "(cached) $ECHO_C" >&6
5387
cat >conftest.$ac_ext <<_ACEOF
5390
cat confdefs.h >>conftest.$ac_ext
5391
cat >>conftest.$ac_ext <<_ACEOF
5392
/* end confdefs.h. */
5397
/* FIXME: Include the comments suggested by Paul. */
5399
/* Ultrix mips cc rejects this. */
5400
typedef int charset[2];
5402
/* SunOS 4.1.1 cc rejects this. */
5403
char const *const *pcpcc;
5405
/* NEC SVR4.0.2 mips cc rejects this. */
5406
struct point {int x, y;};
5407
static struct point const zero = {0,0};
5408
/* AIX XL C 1.02.0.0 rejects this.
5409
It does not let you subtract one const X* pointer from another in
5410
an arm of an if-expression whose if-part is not a constant
5412
const char *g = "string";
5413
pcpcc = &g + (g ? g-g : 0);
5414
/* HPUX 7.0 cc rejects these. */
5416
ppc = (char**) pcpcc;
5417
pcpcc = (char const *const *) ppc;
5418
{ /* SCO 3.2v4 cc rejects this. */
5420
char const *s = 0 ? (char *) 0 : (char const *) 0;
5425
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5427
const int *foo = &x[0];
5430
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5431
typedef const int *iptr;
5435
{ /* AIX XL C 1.02.0.0 rejects this saying
5436
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5437
struct s { int j; const int *ap[3]; };
5438
struct s *b; b->j = 5;
5440
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5444
return !cs[0] && !zero.x;
5451
rm -f conftest.$ac_objext
5452
if { (ac_try="$ac_compile"
5454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455
*) ac_try_echo=$ac_try;;
5457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458
(eval "$ac_compile") 2>conftest.er1
5460
grep -v '^ *+' conftest.er1 >conftest.err
5462
cat conftest.err >&5
5463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464
(exit $ac_status); } && {
5465
test -z "$ac_c_werror_flag" ||
5466
test ! -s conftest.err
5467
} && test -s conftest.$ac_objext; then
5470
echo "$as_me: failed program was:" >&5
5471
sed 's/^/| /' conftest.$ac_ext >&5
5476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5479
echo "${ECHO_T}$ac_cv_c_const" >&6; }
5480
if test $ac_cv_c_const = no; then
5482
cat >>confdefs.h <<\_ACEOF
5488
{ echo "$as_me:$LINENO: checking for inline" >&5
5489
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5490
if test "${ac_cv_c_inline+set}" = set; then
5491
echo $ECHO_N "(cached) $ECHO_C" >&6
5494
for ac_kw in inline __inline__ __inline; do
5495
cat >conftest.$ac_ext <<_ACEOF
5498
cat confdefs.h >>conftest.$ac_ext
5499
cat >>conftest.$ac_ext <<_ACEOF
5500
/* end confdefs.h. */
5503
static $ac_kw foo_t static_foo () {return 0; }
5504
$ac_kw foo_t foo () {return 0; }
5508
rm -f conftest.$ac_objext
5509
if { (ac_try="$ac_compile"
5511
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512
*) ac_try_echo=$ac_try;;
5514
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515
(eval "$ac_compile") 2>conftest.er1
5517
grep -v '^ *+' conftest.er1 >conftest.err
5519
cat conftest.err >&5
5520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521
(exit $ac_status); } && {
5522
test -z "$ac_c_werror_flag" ||
5523
test ! -s conftest.err
5524
} && test -s conftest.$ac_objext; then
5525
ac_cv_c_inline=$ac_kw
5527
echo "$as_me: failed program was:" >&5
5528
sed 's/^/| /' conftest.$ac_ext >&5
5533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534
test "$ac_cv_c_inline" != no && break
5538
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5539
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5542
case $ac_cv_c_inline in
5545
case $ac_cv_c_inline in
5547
*) ac_val=$ac_cv_c_inline;;
5549
cat >>confdefs.h <<_ACEOF
5551
#define inline $ac_val
5558
{ echo "$as_me:$LINENO: checking for int16_t" >&5
5559
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
5560
if test "${ac_cv_c_int16_t+set}" = set; then
5561
echo $ECHO_N "(cached) $ECHO_C" >&6
5564
for ac_type in 'int16_t' 'int' 'long int' \
5565
'long long int' 'short int' 'signed char'; do
5566
cat >conftest.$ac_ext <<_ACEOF
5569
cat confdefs.h >>conftest.$ac_ext
5570
cat >>conftest.$ac_ext <<_ACEOF
5571
/* end confdefs.h. */
5572
$ac_includes_default
5576
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
5583
rm -f conftest.$ac_objext
5584
if { (ac_try="$ac_compile"
5586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587
*) ac_try_echo=$ac_try;;
5589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590
(eval "$ac_compile") 2>conftest.er1
5592
grep -v '^ *+' conftest.er1 >conftest.err
5594
cat conftest.err >&5
5595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596
(exit $ac_status); } && {
5597
test -z "$ac_c_werror_flag" ||
5598
test ! -s conftest.err
5599
} && test -s conftest.$ac_objext; then
5600
cat >conftest.$ac_ext <<_ACEOF
5603
cat confdefs.h >>conftest.$ac_ext
5604
cat >>conftest.$ac_ext <<_ACEOF
5605
/* end confdefs.h. */
5606
$ac_includes_default
5610
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
5611
< ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
5618
rm -f conftest.$ac_objext
5619
if { (ac_try="$ac_compile"
5621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622
*) ac_try_echo=$ac_try;;
5624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625
(eval "$ac_compile") 2>conftest.er1
5627
grep -v '^ *+' conftest.er1 >conftest.err
5629
cat conftest.err >&5
5630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631
(exit $ac_status); } && {
5632
test -z "$ac_c_werror_flag" ||
5633
test ! -s conftest.err
5634
} && test -s conftest.$ac_objext; then
5637
echo "$as_me: failed program was:" >&5
5638
sed 's/^/| /' conftest.$ac_ext >&5
5641
int16_t) ac_cv_c_int16_t=yes ;;
5642
*) ac_cv_c_int16_t=$ac_type ;;
5647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649
echo "$as_me: failed program was:" >&5
5650
sed 's/^/| /' conftest.$ac_ext >&5
5655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
test "$ac_cv_c_int16_t" != no && break
5659
{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
5660
echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
5661
case $ac_cv_c_int16_t in #(
5665
cat >>confdefs.h <<_ACEOF
5666
#define int16_t $ac_cv_c_int16_t
5672
{ echo "$as_me:$LINENO: checking for int32_t" >&5
5673
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
5674
if test "${ac_cv_c_int32_t+set}" = set; then
5675
echo $ECHO_N "(cached) $ECHO_C" >&6
5678
for ac_type in 'int32_t' 'int' 'long int' \
5679
'long long int' 'short int' 'signed char'; do
5680
cat >conftest.$ac_ext <<_ACEOF
5683
cat confdefs.h >>conftest.$ac_ext
5684
cat >>conftest.$ac_ext <<_ACEOF
5685
/* end confdefs.h. */
5686
$ac_includes_default
5690
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
5697
rm -f conftest.$ac_objext
5698
if { (ac_try="$ac_compile"
5700
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701
*) ac_try_echo=$ac_try;;
5703
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704
(eval "$ac_compile") 2>conftest.er1
5706
grep -v '^ *+' conftest.er1 >conftest.err
5708
cat conftest.err >&5
5709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710
(exit $ac_status); } && {
5711
test -z "$ac_c_werror_flag" ||
5712
test ! -s conftest.err
5713
} && test -s conftest.$ac_objext; then
5714
cat >conftest.$ac_ext <<_ACEOF
5717
cat confdefs.h >>conftest.$ac_ext
5718
cat >>conftest.$ac_ext <<_ACEOF
5719
/* end confdefs.h. */
5720
$ac_includes_default
5724
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
5725
< ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
5732
rm -f conftest.$ac_objext
5733
if { (ac_try="$ac_compile"
5735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736
*) ac_try_echo=$ac_try;;
5738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739
(eval "$ac_compile") 2>conftest.er1
5741
grep -v '^ *+' conftest.er1 >conftest.err
5743
cat conftest.err >&5
5744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745
(exit $ac_status); } && {
5746
test -z "$ac_c_werror_flag" ||
5747
test ! -s conftest.err
5748
} && test -s conftest.$ac_objext; then
5751
echo "$as_me: failed program was:" >&5
5752
sed 's/^/| /' conftest.$ac_ext >&5
5755
int32_t) ac_cv_c_int32_t=yes ;;
5756
*) ac_cv_c_int32_t=$ac_type ;;
5761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763
echo "$as_me: failed program was:" >&5
5764
sed 's/^/| /' conftest.$ac_ext >&5
5769
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770
test "$ac_cv_c_int32_t" != no && break
5773
{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
5774
echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
5775
case $ac_cv_c_int32_t in #(
5779
cat >>confdefs.h <<_ACEOF
5780
#define int32_t $ac_cv_c_int32_t
5786
{ echo "$as_me:$LINENO: checking for int8_t" >&5
5787
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5788
if test "${ac_cv_c_int8_t+set}" = set; then
5789
echo $ECHO_N "(cached) $ECHO_C" >&6
5792
for ac_type in 'int8_t' 'int' 'long int' \
5793
'long long int' 'short int' 'signed char'; do
5794
cat >conftest.$ac_ext <<_ACEOF
5797
cat confdefs.h >>conftest.$ac_ext
5798
cat >>conftest.$ac_ext <<_ACEOF
5799
/* end confdefs.h. */
5800
$ac_includes_default
5804
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
5811
rm -f conftest.$ac_objext
5812
if { (ac_try="$ac_compile"
5814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815
*) ac_try_echo=$ac_try;;
5817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818
(eval "$ac_compile") 2>conftest.er1
5820
grep -v '^ *+' conftest.er1 >conftest.err
5822
cat conftest.err >&5
5823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824
(exit $ac_status); } && {
5825
test -z "$ac_c_werror_flag" ||
5826
test ! -s conftest.err
5827
} && test -s conftest.$ac_objext; then
5828
cat >conftest.$ac_ext <<_ACEOF
5831
cat confdefs.h >>conftest.$ac_ext
5832
cat >>conftest.$ac_ext <<_ACEOF
5833
/* end confdefs.h. */
5834
$ac_includes_default
5838
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
5839
< ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
5846
rm -f conftest.$ac_objext
5847
if { (ac_try="$ac_compile"
5849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850
*) ac_try_echo=$ac_try;;
5852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853
(eval "$ac_compile") 2>conftest.er1
5855
grep -v '^ *+' conftest.er1 >conftest.err
5857
cat conftest.err >&5
5858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859
(exit $ac_status); } && {
5860
test -z "$ac_c_werror_flag" ||
5861
test ! -s conftest.err
5862
} && test -s conftest.$ac_objext; then
5865
echo "$as_me: failed program was:" >&5
5866
sed 's/^/| /' conftest.$ac_ext >&5
5869
int8_t) ac_cv_c_int8_t=yes ;;
5870
*) ac_cv_c_int8_t=$ac_type ;;
5875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877
echo "$as_me: failed program was:" >&5
5878
sed 's/^/| /' conftest.$ac_ext >&5
5883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884
test "$ac_cv_c_int8_t" != no && break
5887
{ echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
5888
echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
5889
case $ac_cv_c_int8_t in #(
5893
cat >>confdefs.h <<_ACEOF
5894
#define int8_t $ac_cv_c_int8_t
5899
{ echo "$as_me:$LINENO: checking for mode_t" >&5
5900
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
5901
if test "${ac_cv_type_mode_t+set}" = set; then
5902
echo $ECHO_N "(cached) $ECHO_C" >&6
5904
cat >conftest.$ac_ext <<_ACEOF
5907
cat confdefs.h >>conftest.$ac_ext
5908
cat >>conftest.$ac_ext <<_ACEOF
5909
/* end confdefs.h. */
5910
$ac_includes_default
5911
typedef mode_t ac__type_new_;
5915
if ((ac__type_new_ *) 0)
5917
if (sizeof (ac__type_new_))
5923
rm -f conftest.$ac_objext
5924
if { (ac_try="$ac_compile"
5926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927
*) ac_try_echo=$ac_try;;
5929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930
(eval "$ac_compile") 2>conftest.er1
5932
grep -v '^ *+' conftest.er1 >conftest.err
5934
cat conftest.err >&5
5935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936
(exit $ac_status); } && {
5937
test -z "$ac_c_werror_flag" ||
5938
test ! -s conftest.err
5939
} && test -s conftest.$ac_objext; then
5940
ac_cv_type_mode_t=yes
5942
echo "$as_me: failed program was:" >&5
5943
sed 's/^/| /' conftest.$ac_ext >&5
5945
ac_cv_type_mode_t=no
5948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5951
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5952
if test $ac_cv_type_mode_t = yes; then
5956
cat >>confdefs.h <<_ACEOF
5962
{ echo "$as_me:$LINENO: checking for size_t" >&5
5963
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5964
if test "${ac_cv_type_size_t+set}" = set; then
5965
echo $ECHO_N "(cached) $ECHO_C" >&6
5967
cat >conftest.$ac_ext <<_ACEOF
5970
cat confdefs.h >>conftest.$ac_ext
5971
cat >>conftest.$ac_ext <<_ACEOF
5972
/* end confdefs.h. */
5973
$ac_includes_default
5974
typedef size_t ac__type_new_;
5978
if ((ac__type_new_ *) 0)
5980
if (sizeof (ac__type_new_))
5986
rm -f conftest.$ac_objext
5987
if { (ac_try="$ac_compile"
5989
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990
*) ac_try_echo=$ac_try;;
5992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993
(eval "$ac_compile") 2>conftest.er1
5995
grep -v '^ *+' conftest.er1 >conftest.err
5997
cat conftest.err >&5
5998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999
(exit $ac_status); } && {
6000
test -z "$ac_c_werror_flag" ||
6001
test ! -s conftest.err
6002
} && test -s conftest.$ac_objext; then
6003
ac_cv_type_size_t=yes
6005
echo "$as_me: failed program was:" >&5
6006
sed 's/^/| /' conftest.$ac_ext >&5
6008
ac_cv_type_size_t=no
6011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6014
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6015
if test $ac_cv_type_size_t = yes; then
6019
cat >>confdefs.h <<_ACEOF
6020
#define size_t unsigned int
6025
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6026
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6027
if test "${ac_cv_header_time+set}" = set; then
6028
echo $ECHO_N "(cached) $ECHO_C" >&6
6030
cat >conftest.$ac_ext <<_ACEOF
6033
cat confdefs.h >>conftest.$ac_ext
6034
cat >>conftest.$ac_ext <<_ACEOF
6035
/* end confdefs.h. */
6036
#include <sys/types.h>
6037
#include <sys/time.h>
6043
if ((struct tm *) 0)
6049
rm -f conftest.$ac_objext
6050
if { (ac_try="$ac_compile"
6052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053
*) ac_try_echo=$ac_try;;
6055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056
(eval "$ac_compile") 2>conftest.er1
6058
grep -v '^ *+' conftest.er1 >conftest.err
6060
cat conftest.err >&5
6061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062
(exit $ac_status); } && {
6063
test -z "$ac_c_werror_flag" ||
6064
test ! -s conftest.err
6065
} && test -s conftest.$ac_objext; then
6066
ac_cv_header_time=yes
6068
echo "$as_me: failed program was:" >&5
6069
sed 's/^/| /' conftest.$ac_ext >&5
6071
ac_cv_header_time=no
6074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6077
echo "${ECHO_T}$ac_cv_header_time" >&6; }
6078
if test $ac_cv_header_time = yes; then
6080
cat >>confdefs.h <<\_ACEOF
6081
#define TIME_WITH_SYS_TIME 1
6086
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6087
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6088
if test "${ac_cv_struct_tm+set}" = set; then
6089
echo $ECHO_N "(cached) $ECHO_C" >&6
6091
cat >conftest.$ac_ext <<_ACEOF
6094
cat confdefs.h >>conftest.$ac_ext
6095
cat >>conftest.$ac_ext <<_ACEOF
6096
/* end confdefs.h. */
6097
#include <sys/types.h>
6104
int *p = &tm.tm_sec;
6110
rm -f conftest.$ac_objext
6111
if { (ac_try="$ac_compile"
6113
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114
*) ac_try_echo=$ac_try;;
6116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117
(eval "$ac_compile") 2>conftest.er1
6119
grep -v '^ *+' conftest.er1 >conftest.err
6121
cat conftest.err >&5
6122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123
(exit $ac_status); } && {
6124
test -z "$ac_c_werror_flag" ||
6125
test ! -s conftest.err
6126
} && test -s conftest.$ac_objext; then
6127
ac_cv_struct_tm=time.h
6129
echo "$as_me: failed program was:" >&5
6130
sed 's/^/| /' conftest.$ac_ext >&5
6132
ac_cv_struct_tm=sys/time.h
6135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6138
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6139
if test $ac_cv_struct_tm = sys/time.h; then
6141
cat >>confdefs.h <<\_ACEOF
6142
#define TM_IN_SYS_TIME 1
6148
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
6149
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6150
if test "${ac_cv_c_uint16_t+set}" = set; then
6151
echo $ECHO_N "(cached) $ECHO_C" >&6
6154
for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
6155
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6156
cat >conftest.$ac_ext <<_ACEOF
6159
cat confdefs.h >>conftest.$ac_ext
6160
cat >>conftest.$ac_ext <<_ACEOF
6161
/* end confdefs.h. */
6162
$ac_includes_default
6166
static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
6173
rm -f conftest.$ac_objext
6174
if { (ac_try="$ac_compile"
6176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177
*) ac_try_echo=$ac_try;;
6179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180
(eval "$ac_compile") 2>conftest.er1
6182
grep -v '^ *+' conftest.er1 >conftest.err
6184
cat conftest.err >&5
6185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
(exit $ac_status); } && {
6187
test -z "$ac_c_werror_flag" ||
6188
test ! -s conftest.err
6189
} && test -s conftest.$ac_objext; then
6191
uint16_t) ac_cv_c_uint16_t=yes ;;
6192
*) ac_cv_c_uint16_t=$ac_type ;;
6196
echo "$as_me: failed program was:" >&5
6197
sed 's/^/| /' conftest.$ac_ext >&5
6202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203
test "$ac_cv_c_uint16_t" != no && break
6206
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
6207
echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
6208
case $ac_cv_c_uint16_t in #(
6213
cat >>confdefs.h <<_ACEOF
6214
#define uint16_t $ac_cv_c_uint16_t
6220
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
6221
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6222
if test "${ac_cv_c_uint32_t+set}" = set; then
6223
echo $ECHO_N "(cached) $ECHO_C" >&6
6226
for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
6227
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6228
cat >conftest.$ac_ext <<_ACEOF
6231
cat confdefs.h >>conftest.$ac_ext
6232
cat >>conftest.$ac_ext <<_ACEOF
6233
/* end confdefs.h. */
6234
$ac_includes_default
6238
static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
6245
rm -f conftest.$ac_objext
6246
if { (ac_try="$ac_compile"
6248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249
*) ac_try_echo=$ac_try;;
6251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252
(eval "$ac_compile") 2>conftest.er1
6254
grep -v '^ *+' conftest.er1 >conftest.err
6256
cat conftest.err >&5
6257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258
(exit $ac_status); } && {
6259
test -z "$ac_c_werror_flag" ||
6260
test ! -s conftest.err
6261
} && test -s conftest.$ac_objext; then
6263
uint32_t) ac_cv_c_uint32_t=yes ;;
6264
*) ac_cv_c_uint32_t=$ac_type ;;
6268
echo "$as_me: failed program was:" >&5
6269
sed 's/^/| /' conftest.$ac_ext >&5
6274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275
test "$ac_cv_c_uint32_t" != no && break
6278
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
6279
echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
6280
case $ac_cv_c_uint32_t in #(
6284
cat >>confdefs.h <<\_ACEOF
6289
cat >>confdefs.h <<_ACEOF
6290
#define uint32_t $ac_cv_c_uint32_t
6296
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
6297
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
6298
if test "${ac_cv_c_uint8_t+set}" = set; then
6299
echo $ECHO_N "(cached) $ECHO_C" >&6
6302
for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
6303
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6304
cat >conftest.$ac_ext <<_ACEOF
6307
cat confdefs.h >>conftest.$ac_ext
6308
cat >>conftest.$ac_ext <<_ACEOF
6309
/* end confdefs.h. */
6310
$ac_includes_default
6314
static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
6321
rm -f conftest.$ac_objext
6322
if { (ac_try="$ac_compile"
6324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325
*) ac_try_echo=$ac_try;;
6327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328
(eval "$ac_compile") 2>conftest.er1
6330
grep -v '^ *+' conftest.er1 >conftest.err
6332
cat conftest.err >&5
6333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334
(exit $ac_status); } && {
6335
test -z "$ac_c_werror_flag" ||
6336
test ! -s conftest.err
6337
} && test -s conftest.$ac_objext; then
6339
uint8_t) ac_cv_c_uint8_t=yes ;;
6340
*) ac_cv_c_uint8_t=$ac_type ;;
6344
echo "$as_me: failed program was:" >&5
6345
sed 's/^/| /' conftest.$ac_ext >&5
6350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351
test "$ac_cv_c_uint8_t" != no && break
6354
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
6355
echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
6356
case $ac_cv_c_uint8_t in #(
6360
cat >>confdefs.h <<\_ACEOF
6365
cat >>confdefs.h <<_ACEOF
6366
#define uint8_t $ac_cv_c_uint8_t
6372
# Checks for library functions.
6373
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6374
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
6375
if test "${ac_cv_func_closedir_void+set}" = set; then
6376
echo $ECHO_N "(cached) $ECHO_C" >&6
6378
if test "$cross_compiling" = yes; then
6379
ac_cv_func_closedir_void=yes
6381
cat >conftest.$ac_ext <<_ACEOF
6384
cat confdefs.h >>conftest.$ac_ext
6385
cat >>conftest.$ac_ext <<_ACEOF
6386
/* end confdefs.h. */
6387
$ac_includes_default
6388
#include <$ac_header_dirent>
6396
return closedir (opendir (".")) != 0;
6401
rm -f conftest$ac_exeext
6402
if { (ac_try="$ac_link"
6404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405
*) ac_try_echo=$ac_try;;
6407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408
(eval "$ac_link") 2>&5
6410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6412
{ (case "(($ac_try" in
6413
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414
*) ac_try_echo=$ac_try;;
6416
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417
(eval "$ac_try") 2>&5
6419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420
(exit $ac_status); }; }; then
6421
ac_cv_func_closedir_void=no
6423
echo "$as_me: program exited with status $ac_status" >&5
6424
echo "$as_me: failed program was:" >&5
6425
sed 's/^/| /' conftest.$ac_ext >&5
6428
ac_cv_func_closedir_void=yes
6430
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6435
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6436
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
6437
if test $ac_cv_func_closedir_void = yes; then
6439
cat >>confdefs.h <<\_ACEOF
6440
#define CLOSEDIR_VOID 1
6445
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
6446
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
6447
if test "${ac_cv_lib_error_at_line+set}" = set; then
6448
echo $ECHO_N "(cached) $ECHO_C" >&6
6450
cat >conftest.$ac_ext <<_ACEOF
6453
cat confdefs.h >>conftest.$ac_ext
6454
cat >>conftest.$ac_ext <<_ACEOF
6455
/* end confdefs.h. */
6460
error_at_line (0, 0, "", 0, "an error occurred");
6465
rm -f conftest.$ac_objext conftest$ac_exeext
6466
if { (ac_try="$ac_link"
6468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469
*) ac_try_echo=$ac_try;;
6471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472
(eval "$ac_link") 2>conftest.er1
6474
grep -v '^ *+' conftest.er1 >conftest.err
6476
cat conftest.err >&5
6477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478
(exit $ac_status); } && {
6479
test -z "$ac_c_werror_flag" ||
6480
test ! -s conftest.err
6481
} && test -s conftest$ac_exeext &&
6482
$as_test_x conftest$ac_exeext; then
6483
ac_cv_lib_error_at_line=yes
6485
echo "$as_me: failed program was:" >&5
6486
sed 's/^/| /' conftest.$ac_ext >&5
6488
ac_cv_lib_error_at_line=no
6491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6492
conftest$ac_exeext conftest.$ac_ext
6494
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
6495
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
6496
if test $ac_cv_lib_error_at_line = no; then
6497
case " $LIBOBJS " in
6498
*" error.$ac_objext "* ) ;;
6499
*) LIBOBJS="$LIBOBJS error.$ac_objext"
6505
{ echo "$as_me:$LINENO: checking for pid_t" >&5
6506
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6507
if test "${ac_cv_type_pid_t+set}" = set; then
6508
echo $ECHO_N "(cached) $ECHO_C" >&6
6510
cat >conftest.$ac_ext <<_ACEOF
6513
cat confdefs.h >>conftest.$ac_ext
6514
cat >>conftest.$ac_ext <<_ACEOF
6515
/* end confdefs.h. */
6516
$ac_includes_default
6517
typedef pid_t ac__type_new_;
6521
if ((ac__type_new_ *) 0)
6523
if (sizeof (ac__type_new_))
6529
rm -f conftest.$ac_objext
6530
if { (ac_try="$ac_compile"
6532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533
*) ac_try_echo=$ac_try;;
6535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536
(eval "$ac_compile") 2>conftest.er1
6538
grep -v '^ *+' conftest.er1 >conftest.err
6540
cat conftest.err >&5
6541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542
(exit $ac_status); } && {
6543
test -z "$ac_c_werror_flag" ||
6544
test ! -s conftest.err
6545
} && test -s conftest.$ac_objext; then
6546
ac_cv_type_pid_t=yes
6548
echo "$as_me: failed program was:" >&5
6549
sed 's/^/| /' conftest.$ac_ext >&5
6554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6557
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6558
if test $ac_cv_type_pid_t = yes; then
6562
cat >>confdefs.h <<_ACEOF
6569
for ac_header in vfork.h
6571
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6573
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6574
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6575
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6576
echo $ECHO_N "(cached) $ECHO_C" >&6
6578
ac_res=`eval echo '${'$as_ac_Header'}'`
6579
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6580
echo "${ECHO_T}$ac_res" >&6; }
6582
# Is the header compilable?
6583
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6584
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6585
cat >conftest.$ac_ext <<_ACEOF
6588
cat confdefs.h >>conftest.$ac_ext
6589
cat >>conftest.$ac_ext <<_ACEOF
6590
/* end confdefs.h. */
6591
$ac_includes_default
6592
#include <$ac_header>
6594
rm -f conftest.$ac_objext
6595
if { (ac_try="$ac_compile"
6597
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598
*) ac_try_echo=$ac_try;;
6600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601
(eval "$ac_compile") 2>conftest.er1
6603
grep -v '^ *+' conftest.er1 >conftest.err
6605
cat conftest.err >&5
6606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607
(exit $ac_status); } && {
6608
test -z "$ac_c_werror_flag" ||
6609
test ! -s conftest.err
6610
} && test -s conftest.$ac_objext; then
6611
ac_header_compiler=yes
6613
echo "$as_me: failed program was:" >&5
6614
sed 's/^/| /' conftest.$ac_ext >&5
6616
ac_header_compiler=no
6619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6621
echo "${ECHO_T}$ac_header_compiler" >&6; }
6623
# Is the header present?
6624
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6625
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6626
cat >conftest.$ac_ext <<_ACEOF
6629
cat confdefs.h >>conftest.$ac_ext
6630
cat >>conftest.$ac_ext <<_ACEOF
6631
/* end confdefs.h. */
6632
#include <$ac_header>
6634
if { (ac_try="$ac_cpp conftest.$ac_ext"
6636
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637
*) ac_try_echo=$ac_try;;
6639
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6642
grep -v '^ *+' conftest.er1 >conftest.err
6644
cat conftest.err >&5
6645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646
(exit $ac_status); } >/dev/null && {
6647
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6648
test ! -s conftest.err
6650
ac_header_preproc=yes
6652
echo "$as_me: failed program was:" >&5
6653
sed 's/^/| /' conftest.$ac_ext >&5
6655
ac_header_preproc=no
6658
rm -f conftest.err conftest.$ac_ext
6659
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6660
echo "${ECHO_T}$ac_header_preproc" >&6; }
6662
# So? What about this header?
6663
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6665
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6666
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6667
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6668
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6669
ac_header_preproc=yes
6672
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6673
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6674
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6675
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6676
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6677
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6678
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6679
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6680
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6681
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6682
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6683
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6685
## ----------------------------------- ##
6686
## Report this to kevin@misfitcode.com ##
6687
## ----------------------------------- ##
6689
) | sed "s/^/$as_me: WARNING: /" >&2
6692
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6693
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6694
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6695
echo $ECHO_N "(cached) $ECHO_C" >&6
6697
eval "$as_ac_Header=\$ac_header_preproc"
6699
ac_res=`eval echo '${'$as_ac_Header'}'`
6700
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6701
echo "${ECHO_T}$ac_res" >&6; }
6704
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6705
cat >>confdefs.h <<_ACEOF
6706
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715
for ac_func in fork vfork
6717
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6718
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6719
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6720
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6721
echo $ECHO_N "(cached) $ECHO_C" >&6
6723
cat >conftest.$ac_ext <<_ACEOF
6726
cat confdefs.h >>conftest.$ac_ext
6727
cat >>conftest.$ac_ext <<_ACEOF
6728
/* end confdefs.h. */
6729
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6730
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6731
#define $ac_func innocuous_$ac_func
6733
/* System header to define __stub macros and hopefully few prototypes,
6734
which can conflict with char $ac_func (); below.
6735
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6736
<limits.h> exists even on freestanding compilers. */
6739
# include <limits.h>
6741
# include <assert.h>
6746
/* Override any GCC internal prototype to avoid an error.
6747
Use char because int might match the return type of a GCC
6748
builtin and then its argument prototype would still apply. */
6753
/* The GNU C library defines this for functions which it implements
6754
to always fail with ENOSYS. Some functions are actually named
6755
something starting with __ and the normal name is an alias. */
6756
#if defined __stub_$ac_func || defined __stub___$ac_func
6768
rm -f conftest.$ac_objext conftest$ac_exeext
6769
if { (ac_try="$ac_link"
6771
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772
*) ac_try_echo=$ac_try;;
6774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775
(eval "$ac_link") 2>conftest.er1
6777
grep -v '^ *+' conftest.er1 >conftest.err
6779
cat conftest.err >&5
6780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781
(exit $ac_status); } && {
6782
test -z "$ac_c_werror_flag" ||
6783
test ! -s conftest.err
6784
} && test -s conftest$ac_exeext &&
6785
$as_test_x conftest$ac_exeext; then
6786
eval "$as_ac_var=yes"
6788
echo "$as_me: failed program was:" >&5
6789
sed 's/^/| /' conftest.$ac_ext >&5
6791
eval "$as_ac_var=no"
6794
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6795
conftest$ac_exeext conftest.$ac_ext
6797
ac_res=`eval echo '${'$as_ac_var'}'`
6798
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6799
echo "${ECHO_T}$ac_res" >&6; }
6800
if test `eval echo '${'$as_ac_var'}'` = yes; then
6801
cat >>confdefs.h <<_ACEOF
6802
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6808
if test "x$ac_cv_func_fork" = xyes; then
6809
{ echo "$as_me:$LINENO: checking for working fork" >&5
6810
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6811
if test "${ac_cv_func_fork_works+set}" = set; then
6812
echo $ECHO_N "(cached) $ECHO_C" >&6
6814
if test "$cross_compiling" = yes; then
6815
ac_cv_func_fork_works=cross
6817
cat >conftest.$ac_ext <<_ACEOF
6820
cat confdefs.h >>conftest.$ac_ext
6821
cat >>conftest.$ac_ext <<_ACEOF
6822
/* end confdefs.h. */
6823
$ac_includes_default
6828
/* By Ruediger Kuhlmann. */
6835
rm -f conftest$ac_exeext
6836
if { (ac_try="$ac_link"
6838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839
*) ac_try_echo=$ac_try;;
6841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842
(eval "$ac_link") 2>&5
6844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6846
{ (case "(($ac_try" in
6847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848
*) ac_try_echo=$ac_try;;
6850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851
(eval "$ac_try") 2>&5
6853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854
(exit $ac_status); }; }; then
6855
ac_cv_func_fork_works=yes
6857
echo "$as_me: program exited with status $ac_status" >&5
6858
echo "$as_me: failed program was:" >&5
6859
sed 's/^/| /' conftest.$ac_ext >&5
6862
ac_cv_func_fork_works=no
6864
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6869
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6870
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6873
ac_cv_func_fork_works=$ac_cv_func_fork
6875
if test "x$ac_cv_func_fork_works" = xcross; then
6877
*-*-amigaos* | *-*-msdosdjgpp*)
6878
# Override, as these systems have only a dummy fork() stub
6879
ac_cv_func_fork_works=no
6882
ac_cv_func_fork_works=yes
6885
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6886
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6888
ac_cv_func_vfork_works=$ac_cv_func_vfork
6889
if test "x$ac_cv_func_vfork" = xyes; then
6890
{ echo "$as_me:$LINENO: checking for working vfork" >&5
6891
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6892
if test "${ac_cv_func_vfork_works+set}" = set; then
6893
echo $ECHO_N "(cached) $ECHO_C" >&6
6895
if test "$cross_compiling" = yes; then
6896
ac_cv_func_vfork_works=cross
6898
cat >conftest.$ac_ext <<_ACEOF
6901
cat confdefs.h >>conftest.$ac_ext
6902
cat >>conftest.$ac_ext <<_ACEOF
6903
/* end confdefs.h. */
6904
/* Thanks to Paul Eggert for this test. */
6905
$ac_includes_default
6906
#include <sys/wait.h>
6910
/* On some sparc systems, changes by the child to local and incoming
6911
argument registers are propagated back to the parent. The compiler
6912
is told about this with #include <vfork.h>, but some compilers
6913
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6914
static variable whose address is put into a register that is
6915
clobbered by the vfork. */
6918
sparc_address_test (int arg)
6920
sparc_address_test (arg) int arg;
6941
pid_t parent = getpid ();
6944
sparc_address_test (0);
6949
/* Here is another test for sparc vfork register problems. This
6950
test uses lots of local variables, at least as many local
6951
variables as main has allocated so far including compiler
6952
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6953
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6954
reuse the register of parent for one of the local variables,
6955
since it will think that parent can't possibly be used any more
6956
in this routine. Assigning to the local variable will thus
6957
munge parent in the parent process. */
6959
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6960
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6961
/* Convince the compiler that p..p7 are live; otherwise, it might
6962
use the same hardware register for all 8 local variables. */
6963
if (p != p1 || p != p2 || p != p3 || p != p4
6964
|| p != p5 || p != p6 || p != p7)
6967
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6968
from child file descriptors. If the child closes a descriptor
6969
before it execs or exits, this munges the parent's descriptor
6970
as well. Test for this by closing stdout in the child. */
6971
_exit(close(fileno(stdout)) != 0);
6976
while (wait(&status) != child)
6979
/* Was there some problem with vforking? */
6982
/* Did the child fail? (This shouldn't happen.) */
6985
/* Did the vfork/compiler bug occur? */
6986
|| parent != getpid()
6988
/* Did the file descriptor bug occur? */
6989
|| fstat(fileno(stdout), &st) != 0
6994
rm -f conftest$ac_exeext
6995
if { (ac_try="$ac_link"
6997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998
*) ac_try_echo=$ac_try;;
7000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001
(eval "$ac_link") 2>&5
7003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7005
{ (case "(($ac_try" in
7006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007
*) ac_try_echo=$ac_try;;
7009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010
(eval "$ac_try") 2>&5
7012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013
(exit $ac_status); }; }; then
7014
ac_cv_func_vfork_works=yes
7016
echo "$as_me: program exited with status $ac_status" >&5
7017
echo "$as_me: failed program was:" >&5
7018
sed 's/^/| /' conftest.$ac_ext >&5
7021
ac_cv_func_vfork_works=no
7023
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7029
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
7032
if test "x$ac_cv_func_fork_works" = xcross; then
7033
ac_cv_func_vfork_works=$ac_cv_func_vfork
7034
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7035
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7038
if test "x$ac_cv_func_vfork_works" = xyes; then
7040
cat >>confdefs.h <<\_ACEOF
7041
#define HAVE_WORKING_VFORK 1
7046
cat >>confdefs.h <<\_ACEOF
7051
if test "x$ac_cv_func_fork_works" = xyes; then
7053
cat >>confdefs.h <<\_ACEOF
7054
#define HAVE_WORKING_FORK 1
7059
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7060
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
7061
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7062
echo $ECHO_N "(cached) $ECHO_C" >&6
7064
rm -f conftest.sym conftest.file
7066
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7067
if test "$cross_compiling" = yes; then
7068
ac_cv_func_lstat_dereferences_slashed_symlink=no
7070
cat >conftest.$ac_ext <<_ACEOF
7073
cat confdefs.h >>conftest.$ac_ext
7074
cat >>conftest.$ac_ext <<_ACEOF
7075
/* end confdefs.h. */
7076
$ac_includes_default
7081
/* Linux will dereference the symlink and fail.
7082
That is better in the sense that it means we will not
7083
have to compile and use the lstat wrapper. */
7084
return lstat ("conftest.sym/", &sbuf) == 0;
7089
rm -f conftest$ac_exeext
7090
if { (ac_try="$ac_link"
7092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093
*) ac_try_echo=$ac_try;;
7095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096
(eval "$ac_link") 2>&5
7098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7100
{ (case "(($ac_try" in
7101
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102
*) ac_try_echo=$ac_try;;
7104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105
(eval "$ac_try") 2>&5
7107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108
(exit $ac_status); }; }; then
7109
ac_cv_func_lstat_dereferences_slashed_symlink=yes
7111
echo "$as_me: program exited with status $ac_status" >&5
7112
echo "$as_me: failed program was:" >&5
7113
sed 's/^/| /' conftest.$ac_ext >&5
7116
ac_cv_func_lstat_dereferences_slashed_symlink=no
7118
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7123
# If the `ln -s' command failed, then we probably don't even
7124
# have an lstat function.
7125
ac_cv_func_lstat_dereferences_slashed_symlink=no
7127
rm -f conftest.sym conftest.file
7130
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7131
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7133
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7135
cat >>confdefs.h <<_ACEOF
7136
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7140
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7141
case " $LIBOBJS " in
7142
*" lstat.$ac_objext "* ) ;;
7143
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7149
{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7150
echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
7151
if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7152
echo $ECHO_N "(cached) $ECHO_C" >&6
7154
if test "$cross_compiling" = yes; then
7155
ac_cv_func_lstat_empty_string_bug=yes
7157
cat >conftest.$ac_ext <<_ACEOF
7160
cat confdefs.h >>conftest.$ac_ext
7161
cat >>conftest.$ac_ext <<_ACEOF
7162
/* end confdefs.h. */
7163
$ac_includes_default
7168
return lstat ("", &sbuf) == 0;
7173
rm -f conftest$ac_exeext
7174
if { (ac_try="$ac_link"
7176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177
*) ac_try_echo=$ac_try;;
7179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180
(eval "$ac_link") 2>&5
7182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7184
{ (case "(($ac_try" in
7185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186
*) ac_try_echo=$ac_try;;
7188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189
(eval "$ac_try") 2>&5
7191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192
(exit $ac_status); }; }; then
7193
ac_cv_func_lstat_empty_string_bug=no
7195
echo "$as_me: program exited with status $ac_status" >&5
7196
echo "$as_me: failed program was:" >&5
7197
sed 's/^/| /' conftest.$ac_ext >&5
7200
ac_cv_func_lstat_empty_string_bug=yes
7202
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7207
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7208
echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
7209
if test $ac_cv_func_lstat_empty_string_bug = yes; then
7210
case " $LIBOBJS " in
7211
*" lstat.$ac_objext "* ) ;;
7212
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7217
cat >>confdefs.h <<_ACEOF
7218
#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7223
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7224
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
7225
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7226
echo $ECHO_N "(cached) $ECHO_C" >&6
7228
rm -f conftest.sym conftest.file
7230
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7231
if test "$cross_compiling" = yes; then
7232
ac_cv_func_lstat_dereferences_slashed_symlink=no
7234
cat >conftest.$ac_ext <<_ACEOF
7237
cat confdefs.h >>conftest.$ac_ext
7238
cat >>conftest.$ac_ext <<_ACEOF
7239
/* end confdefs.h. */
7240
$ac_includes_default
7245
/* Linux will dereference the symlink and fail.
7246
That is better in the sense that it means we will not
7247
have to compile and use the lstat wrapper. */
7248
return lstat ("conftest.sym/", &sbuf) == 0;
7253
rm -f conftest$ac_exeext
7254
if { (ac_try="$ac_link"
7256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257
*) ac_try_echo=$ac_try;;
7259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260
(eval "$ac_link") 2>&5
7262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7264
{ (case "(($ac_try" in
7265
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266
*) ac_try_echo=$ac_try;;
7268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269
(eval "$ac_try") 2>&5
7271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272
(exit $ac_status); }; }; then
7273
ac_cv_func_lstat_dereferences_slashed_symlink=yes
7275
echo "$as_me: program exited with status $ac_status" >&5
7276
echo "$as_me: failed program was:" >&5
7277
sed 's/^/| /' conftest.$ac_ext >&5
7280
ac_cv_func_lstat_dereferences_slashed_symlink=no
7282
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7287
# If the `ln -s' command failed, then we probably don't even
7288
# have an lstat function.
7289
ac_cv_func_lstat_dereferences_slashed_symlink=no
7291
rm -f conftest.sym conftest.file
7294
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7295
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7297
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7299
cat >>confdefs.h <<_ACEOF
7300
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7304
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7305
case " $LIBOBJS " in
7306
*" lstat.$ac_objext "* ) ;;
7307
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7314
for ac_header in stdlib.h
7316
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7318
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7319
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7320
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7321
echo $ECHO_N "(cached) $ECHO_C" >&6
7323
ac_res=`eval echo '${'$as_ac_Header'}'`
7324
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7325
echo "${ECHO_T}$ac_res" >&6; }
7327
# Is the header compilable?
7328
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7329
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7330
cat >conftest.$ac_ext <<_ACEOF
7333
cat confdefs.h >>conftest.$ac_ext
7334
cat >>conftest.$ac_ext <<_ACEOF
7335
/* end confdefs.h. */
7336
$ac_includes_default
7337
#include <$ac_header>
7339
rm -f conftest.$ac_objext
7340
if { (ac_try="$ac_compile"
7342
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343
*) ac_try_echo=$ac_try;;
7345
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346
(eval "$ac_compile") 2>conftest.er1
7348
grep -v '^ *+' conftest.er1 >conftest.err
7350
cat conftest.err >&5
7351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352
(exit $ac_status); } && {
7353
test -z "$ac_c_werror_flag" ||
7354
test ! -s conftest.err
7355
} && test -s conftest.$ac_objext; then
7356
ac_header_compiler=yes
7358
echo "$as_me: failed program was:" >&5
7359
sed 's/^/| /' conftest.$ac_ext >&5
7361
ac_header_compiler=no
7364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7366
echo "${ECHO_T}$ac_header_compiler" >&6; }
7368
# Is the header present?
7369
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7370
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7371
cat >conftest.$ac_ext <<_ACEOF
7374
cat confdefs.h >>conftest.$ac_ext
7375
cat >>conftest.$ac_ext <<_ACEOF
7376
/* end confdefs.h. */
7377
#include <$ac_header>
7379
if { (ac_try="$ac_cpp conftest.$ac_ext"
7381
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382
*) ac_try_echo=$ac_try;;
7384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7387
grep -v '^ *+' conftest.er1 >conftest.err
7389
cat conftest.err >&5
7390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391
(exit $ac_status); } >/dev/null && {
7392
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7393
test ! -s conftest.err
7395
ac_header_preproc=yes
7397
echo "$as_me: failed program was:" >&5
7398
sed 's/^/| /' conftest.$ac_ext >&5
7400
ac_header_preproc=no
7403
rm -f conftest.err conftest.$ac_ext
7404
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7405
echo "${ECHO_T}$ac_header_preproc" >&6; }
7407
# So? What about this header?
7408
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7410
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7411
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7412
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7413
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7414
ac_header_preproc=yes
7417
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7418
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7419
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7420
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7421
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7422
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7423
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7424
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7425
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7426
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7427
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7428
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7430
## ----------------------------------- ##
7431
## Report this to kevin@misfitcode.com ##
7432
## ----------------------------------- ##
7434
) | sed "s/^/$as_me: WARNING: /" >&2
7437
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7438
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7439
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7440
echo $ECHO_N "(cached) $ECHO_C" >&6
7442
eval "$as_ac_Header=\$ac_header_preproc"
7444
ac_res=`eval echo '${'$as_ac_Header'}'`
7445
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7446
echo "${ECHO_T}$ac_res" >&6; }
7449
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7450
cat >>confdefs.h <<_ACEOF
7451
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7459
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
7460
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7461
echo $ECHO_N "(cached) $ECHO_C" >&6
7463
if test "$cross_compiling" = yes; then
7464
ac_cv_func_malloc_0_nonnull=no
7466
cat >conftest.$ac_ext <<_ACEOF
7469
cat confdefs.h >>conftest.$ac_ext
7470
cat >>conftest.$ac_ext <<_ACEOF
7471
/* end confdefs.h. */
7472
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7473
# include <stdlib.h>
7481
return ! malloc (0);
7486
rm -f conftest$ac_exeext
7487
if { (ac_try="$ac_link"
7489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490
*) ac_try_echo=$ac_try;;
7492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493
(eval "$ac_link") 2>&5
7495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7497
{ (case "(($ac_try" in
7498
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499
*) ac_try_echo=$ac_try;;
7501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502
(eval "$ac_try") 2>&5
7504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505
(exit $ac_status); }; }; then
7506
ac_cv_func_malloc_0_nonnull=yes
7508
echo "$as_me: program exited with status $ac_status" >&5
7509
echo "$as_me: failed program was:" >&5
7510
sed 's/^/| /' conftest.$ac_ext >&5
7513
ac_cv_func_malloc_0_nonnull=no
7515
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7520
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7521
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
7522
if test $ac_cv_func_malloc_0_nonnull = yes; then
7524
cat >>confdefs.h <<\_ACEOF
7525
#define HAVE_MALLOC 1
7529
cat >>confdefs.h <<\_ACEOF
7530
#define HAVE_MALLOC 0
7533
case " $LIBOBJS " in
7534
*" malloc.$ac_objext "* ) ;;
7535
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7540
cat >>confdefs.h <<\_ACEOF
7541
#define malloc rpl_malloc
7548
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7549
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
7550
if test "${ac_cv_func_memcmp_working+set}" = set; then
7551
echo $ECHO_N "(cached) $ECHO_C" >&6
7553
if test "$cross_compiling" = yes; then
7554
ac_cv_func_memcmp_working=no
7556
cat >conftest.$ac_ext <<_ACEOF
7559
cat confdefs.h >>conftest.$ac_ext
7560
cat >>conftest.$ac_ext <<_ACEOF
7561
/* end confdefs.h. */
7562
$ac_includes_default
7567
/* Some versions of memcmp are not 8-bit clean. */
7568
char c0 = '\100', c1 = '\200', c2 = '\201';
7569
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7572
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7573
or more and with at least one buffer not starting on a 4-byte boundary.
7574
William Lewis provided this test program. */
7579
for (i = 0; i < 4; i++)
7583
strcpy (a, "--------01111111");
7584
strcpy (b, "--------10000000");
7585
if (memcmp (a, b, 16) >= 0)
7595
rm -f conftest$ac_exeext
7596
if { (ac_try="$ac_link"
7598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599
*) ac_try_echo=$ac_try;;
7601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602
(eval "$ac_link") 2>&5
7604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7606
{ (case "(($ac_try" in
7607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608
*) ac_try_echo=$ac_try;;
7610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611
(eval "$ac_try") 2>&5
7613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614
(exit $ac_status); }; }; then
7615
ac_cv_func_memcmp_working=yes
7617
echo "$as_me: program exited with status $ac_status" >&5
7618
echo "$as_me: failed program was:" >&5
7619
sed 's/^/| /' conftest.$ac_ext >&5
7622
ac_cv_func_memcmp_working=no
7624
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7629
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7630
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7631
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7632
*" memcmp.$ac_objext "* ) ;;
7633
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7639
for ac_header in stdlib.h
7641
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7642
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7643
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7644
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7645
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7646
echo $ECHO_N "(cached) $ECHO_C" >&6
7648
ac_res=`eval echo '${'$as_ac_Header'}'`
7649
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7650
echo "${ECHO_T}$ac_res" >&6; }
7652
# Is the header compilable?
7653
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7654
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7655
cat >conftest.$ac_ext <<_ACEOF
7658
cat confdefs.h >>conftest.$ac_ext
7659
cat >>conftest.$ac_ext <<_ACEOF
7660
/* end confdefs.h. */
7661
$ac_includes_default
7662
#include <$ac_header>
7664
rm -f conftest.$ac_objext
7665
if { (ac_try="$ac_compile"
7667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668
*) ac_try_echo=$ac_try;;
7670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671
(eval "$ac_compile") 2>conftest.er1
7673
grep -v '^ *+' conftest.er1 >conftest.err
7675
cat conftest.err >&5
7676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677
(exit $ac_status); } && {
7678
test -z "$ac_c_werror_flag" ||
7679
test ! -s conftest.err
7680
} && test -s conftest.$ac_objext; then
7681
ac_header_compiler=yes
7683
echo "$as_me: failed program was:" >&5
7684
sed 's/^/| /' conftest.$ac_ext >&5
7686
ac_header_compiler=no
7689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7691
echo "${ECHO_T}$ac_header_compiler" >&6; }
7693
# Is the header present?
7694
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7695
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7696
cat >conftest.$ac_ext <<_ACEOF
7699
cat confdefs.h >>conftest.$ac_ext
7700
cat >>conftest.$ac_ext <<_ACEOF
7701
/* end confdefs.h. */
7702
#include <$ac_header>
7704
if { (ac_try="$ac_cpp conftest.$ac_ext"
7706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707
*) ac_try_echo=$ac_try;;
7709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7712
grep -v '^ *+' conftest.er1 >conftest.err
7714
cat conftest.err >&5
7715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716
(exit $ac_status); } >/dev/null && {
7717
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7718
test ! -s conftest.err
7720
ac_header_preproc=yes
7722
echo "$as_me: failed program was:" >&5
7723
sed 's/^/| /' conftest.$ac_ext >&5
7725
ac_header_preproc=no
7728
rm -f conftest.err conftest.$ac_ext
7729
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7730
echo "${ECHO_T}$ac_header_preproc" >&6; }
7732
# So? What about this header?
7733
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7735
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7737
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7738
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7739
ac_header_preproc=yes
7742
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7743
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7744
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7745
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7746
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7747
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7748
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7749
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7750
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7751
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7752
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7753
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7755
## ----------------------------------- ##
7756
## Report this to kevin@misfitcode.com ##
7757
## ----------------------------------- ##
7759
) | sed "s/^/$as_me: WARNING: /" >&2
7762
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7763
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7764
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7765
echo $ECHO_N "(cached) $ECHO_C" >&6
7767
eval "$as_ac_Header=\$ac_header_preproc"
7769
ac_res=`eval echo '${'$as_ac_Header'}'`
7770
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7771
echo "${ECHO_T}$ac_res" >&6; }
7774
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7775
cat >>confdefs.h <<_ACEOF
7776
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7783
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
7784
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
7785
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
7786
echo $ECHO_N "(cached) $ECHO_C" >&6
7788
if test "$cross_compiling" = yes; then
7789
ac_cv_func_realloc_0_nonnull=no
7791
cat >conftest.$ac_ext <<_ACEOF
7794
cat confdefs.h >>conftest.$ac_ext
7795
cat >>conftest.$ac_ext <<_ACEOF
7796
/* end confdefs.h. */
7797
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7798
# include <stdlib.h>
7806
return ! realloc (0, 0);
7811
rm -f conftest$ac_exeext
7812
if { (ac_try="$ac_link"
7814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815
*) ac_try_echo=$ac_try;;
7817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818
(eval "$ac_link") 2>&5
7820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7822
{ (case "(($ac_try" in
7823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824
*) ac_try_echo=$ac_try;;
7826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827
(eval "$ac_try") 2>&5
7829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830
(exit $ac_status); }; }; then
7831
ac_cv_func_realloc_0_nonnull=yes
7833
echo "$as_me: program exited with status $ac_status" >&5
7834
echo "$as_me: failed program was:" >&5
7835
sed 's/^/| /' conftest.$ac_ext >&5
7838
ac_cv_func_realloc_0_nonnull=no
7840
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7845
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
7846
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
7847
if test $ac_cv_func_realloc_0_nonnull = yes; then
7849
cat >>confdefs.h <<\_ACEOF
7850
#define HAVE_REALLOC 1
7854
cat >>confdefs.h <<\_ACEOF
7855
#define HAVE_REALLOC 0
7858
case " $LIBOBJS " in
7859
*" realloc.$ac_objext "* ) ;;
7860
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
7865
cat >>confdefs.h <<\_ACEOF
7866
#define realloc rpl_realloc
7873
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7874
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7875
if test "${ac_cv_type_signal+set}" = set; then
7876
echo $ECHO_N "(cached) $ECHO_C" >&6
7878
cat >conftest.$ac_ext <<_ACEOF
7881
cat confdefs.h >>conftest.$ac_ext
7882
cat >>conftest.$ac_ext <<_ACEOF
7883
/* end confdefs.h. */
7884
#include <sys/types.h>
7890
return *(signal (0, 0)) (0) == 1;
7895
rm -f conftest.$ac_objext
7896
if { (ac_try="$ac_compile"
7898
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899
*) ac_try_echo=$ac_try;;
7901
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902
(eval "$ac_compile") 2>conftest.er1
7904
grep -v '^ *+' conftest.er1 >conftest.err
7906
cat conftest.err >&5
7907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908
(exit $ac_status); } && {
7909
test -z "$ac_c_werror_flag" ||
7910
test ! -s conftest.err
7911
} && test -s conftest.$ac_objext; then
7912
ac_cv_type_signal=int
7914
echo "$as_me: failed program was:" >&5
7915
sed 's/^/| /' conftest.$ac_ext >&5
7917
ac_cv_type_signal=void
7920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7923
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7925
cat >>confdefs.h <<_ACEOF
7926
#define RETSIGTYPE $ac_cv_type_signal
7930
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7931
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7932
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7933
echo $ECHO_N "(cached) $ECHO_C" >&6
7935
if test "$cross_compiling" = yes; then
7936
ac_cv_func_stat_empty_string_bug=yes
7938
cat >conftest.$ac_ext <<_ACEOF
7941
cat confdefs.h >>conftest.$ac_ext
7942
cat >>conftest.$ac_ext <<_ACEOF
7943
/* end confdefs.h. */
7944
$ac_includes_default
7949
return stat ("", &sbuf) == 0;
7954
rm -f conftest$ac_exeext
7955
if { (ac_try="$ac_link"
7957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958
*) ac_try_echo=$ac_try;;
7960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961
(eval "$ac_link") 2>&5
7963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7965
{ (case "(($ac_try" in
7966
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967
*) ac_try_echo=$ac_try;;
7969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970
(eval "$ac_try") 2>&5
7972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973
(exit $ac_status); }; }; then
7974
ac_cv_func_stat_empty_string_bug=no
7976
echo "$as_me: program exited with status $ac_status" >&5
7977
echo "$as_me: failed program was:" >&5
7978
sed 's/^/| /' conftest.$ac_ext >&5
7981
ac_cv_func_stat_empty_string_bug=yes
7983
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7988
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7989
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7990
if test $ac_cv_func_stat_empty_string_bug = yes; then
7991
case " $LIBOBJS " in
7992
*" stat.$ac_objext "* ) ;;
7993
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
7998
cat >>confdefs.h <<_ACEOF
7999
#define HAVE_STAT_EMPTY_STRING_BUG 1
8005
for ac_func in vprintf
8007
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8008
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8009
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8010
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8011
echo $ECHO_N "(cached) $ECHO_C" >&6
8013
cat >conftest.$ac_ext <<_ACEOF
8016
cat confdefs.h >>conftest.$ac_ext
8017
cat >>conftest.$ac_ext <<_ACEOF
8018
/* end confdefs.h. */
8019
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8020
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8021
#define $ac_func innocuous_$ac_func
8023
/* System header to define __stub macros and hopefully few prototypes,
8024
which can conflict with char $ac_func (); below.
8025
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8026
<limits.h> exists even on freestanding compilers. */
8029
# include <limits.h>
8031
# include <assert.h>
8036
/* Override any GCC internal prototype to avoid an error.
8037
Use char because int might match the return type of a GCC
8038
builtin and then its argument prototype would still apply. */
8043
/* The GNU C library defines this for functions which it implements
8044
to always fail with ENOSYS. Some functions are actually named
8045
something starting with __ and the normal name is an alias. */
8046
#if defined __stub_$ac_func || defined __stub___$ac_func
8058
rm -f conftest.$ac_objext conftest$ac_exeext
8059
if { (ac_try="$ac_link"
8061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062
*) ac_try_echo=$ac_try;;
8064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065
(eval "$ac_link") 2>conftest.er1
8067
grep -v '^ *+' conftest.er1 >conftest.err
8069
cat conftest.err >&5
8070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071
(exit $ac_status); } && {
8072
test -z "$ac_c_werror_flag" ||
8073
test ! -s conftest.err
8074
} && test -s conftest$ac_exeext &&
8075
$as_test_x conftest$ac_exeext; then
8076
eval "$as_ac_var=yes"
8078
echo "$as_me: failed program was:" >&5
8079
sed 's/^/| /' conftest.$ac_ext >&5
8081
eval "$as_ac_var=no"
8084
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8085
conftest$ac_exeext conftest.$ac_ext
8087
ac_res=`eval echo '${'$as_ac_var'}'`
8088
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8089
echo "${ECHO_T}$ac_res" >&6; }
8090
if test `eval echo '${'$as_ac_var'}'` = yes; then
8091
cat >>confdefs.h <<_ACEOF
8092
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8095
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8096
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
8097
if test "${ac_cv_func__doprnt+set}" = set; then
8098
echo $ECHO_N "(cached) $ECHO_C" >&6
8100
cat >conftest.$ac_ext <<_ACEOF
8103
cat confdefs.h >>conftest.$ac_ext
8104
cat >>conftest.$ac_ext <<_ACEOF
8105
/* end confdefs.h. */
8106
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8107
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8108
#define _doprnt innocuous__doprnt
8110
/* System header to define __stub macros and hopefully few prototypes,
8111
which can conflict with char _doprnt (); below.
8112
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8113
<limits.h> exists even on freestanding compilers. */
8116
# include <limits.h>
8118
# include <assert.h>
8123
/* Override any GCC internal prototype to avoid an error.
8124
Use char because int might match the return type of a GCC
8125
builtin and then its argument prototype would still apply. */
8130
/* The GNU C library defines this for functions which it implements
8131
to always fail with ENOSYS. Some functions are actually named
8132
something starting with __ and the normal name is an alias. */
8133
#if defined __stub__doprnt || defined __stub____doprnt
8145
rm -f conftest.$ac_objext conftest$ac_exeext
8146
if { (ac_try="$ac_link"
8148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149
*) ac_try_echo=$ac_try;;
8151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152
(eval "$ac_link") 2>conftest.er1
8154
grep -v '^ *+' conftest.er1 >conftest.err
8156
cat conftest.err >&5
8157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158
(exit $ac_status); } && {
8159
test -z "$ac_c_werror_flag" ||
8160
test ! -s conftest.err
8161
} && test -s conftest$ac_exeext &&
8162
$as_test_x conftest$ac_exeext; then
8163
ac_cv_func__doprnt=yes
8165
echo "$as_me: failed program was:" >&5
8166
sed 's/^/| /' conftest.$ac_ext >&5
8168
ac_cv_func__doprnt=no
8171
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8172
conftest$ac_exeext conftest.$ac_ext
8174
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8175
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
8176
if test $ac_cv_func__doprnt = yes; then
8178
cat >>confdefs.h <<\_ACEOF
8179
#define HAVE_DOPRNT 1
8207
for ac_func in ftime getcwd gettimeofday localtime_r memmove memset mkdir pow realpath sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strspn strstr
8209
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8210
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8211
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8212
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8213
echo $ECHO_N "(cached) $ECHO_C" >&6
8215
cat >conftest.$ac_ext <<_ACEOF
8218
cat confdefs.h >>conftest.$ac_ext
8219
cat >>conftest.$ac_ext <<_ACEOF
8220
/* end confdefs.h. */
8221
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8222
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8223
#define $ac_func innocuous_$ac_func
8225
/* System header to define __stub macros and hopefully few prototypes,
8226
which can conflict with char $ac_func (); below.
8227
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8228
<limits.h> exists even on freestanding compilers. */
8231
# include <limits.h>
8233
# include <assert.h>
8238
/* Override any GCC internal prototype to avoid an error.
8239
Use char because int might match the return type of a GCC
8240
builtin and then its argument prototype would still apply. */
8245
/* The GNU C library defines this for functions which it implements
8246
to always fail with ENOSYS. Some functions are actually named
8247
something starting with __ and the normal name is an alias. */
8248
#if defined __stub_$ac_func || defined __stub___$ac_func
8260
rm -f conftest.$ac_objext conftest$ac_exeext
8261
if { (ac_try="$ac_link"
8263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264
*) ac_try_echo=$ac_try;;
8266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267
(eval "$ac_link") 2>conftest.er1
8269
grep -v '^ *+' conftest.er1 >conftest.err
8271
cat conftest.err >&5
8272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273
(exit $ac_status); } && {
8274
test -z "$ac_c_werror_flag" ||
8275
test ! -s conftest.err
8276
} && test -s conftest$ac_exeext &&
8277
$as_test_x conftest$ac_exeext; then
8278
eval "$as_ac_var=yes"
8280
echo "$as_me: failed program was:" >&5
8281
sed 's/^/| /' conftest.$ac_ext >&5
8283
eval "$as_ac_var=no"
8286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8287
conftest$ac_exeext conftest.$ac_ext
8289
ac_res=`eval echo '${'$as_ac_var'}'`
8290
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8291
echo "${ECHO_T}$ac_res" >&6; }
8292
if test `eval echo '${'$as_ac_var'}'` = yes; then
8293
cat >>confdefs.h <<_ACEOF
8294
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8304
{ echo "$as_me:$LINENO: checking for lua" >&5
8305
echo $ECHO_N "checking for lua... $ECHO_C" >&6; }
8308
# Check whether --with-lua-dir was given.
1402
8309
if test "${with_lua_dir+set}" = set; then
1403
withval="$with_lua_dir"
8310
withval=$with_lua_dir;
1407
# Check whether --with-lua-include-dir or --without-lua-include-dir was given.
8314
# Check whether --with-lua-include-dir was given.
1408
8315
if test "${with_lua_include_dir+set}" = set; then
1409
withval="$with_lua_include_dir"
8316
withval=$with_lua_include_dir;
1413
# Check whether --with-lua-lib-dir or --without-lua-lib-dir was given.
8320
# Check whether --with-lua-lib-dir was given.
1414
8321
if test "${with_lua_lib_dir+set}" = set; then
1415
withval="$with_lua_lib_dir"
8322
withval=$with_lua_lib_dir;
1419
# Check whether --with-lua-lib or --without-lua-lib was given.
8326
# Check whether --with-lua-lib was given.
1420
8327
if test "${with_lua_lib+set}" = set; then
1421
withval="$with_lua_lib"
8328
withval=$with_lua_lib;
1425
8331
if test x"$with_lua_dir" = x &&
2255
9158
if test "$ISC" = yes; then
2256
9159
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2258
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2259
# libraries were built with DECnet support. And karl@cs.umb.edu says
9161
# Martyn Johnson says this is needed for Ultrix, if the X
9162
# libraries were built with DECnet support. And Karl Berry says
2260
9163
# the Alpha needs dnet_stub (dnet does not exist).
2261
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2262
echo "configure:2263: checking for dnet_ntoa in -ldnet" >&5
2263
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2264
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2265
echo $ac_n "(cached) $ac_c" 1>&6
2267
ac_save_LIBS="$LIBS"
9164
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9165
cat >conftest.$ac_ext <<_ACEOF
9168
cat confdefs.h >>conftest.$ac_ext
9169
cat >>conftest.$ac_ext <<_ACEOF
9170
/* end confdefs.h. */
9172
/* Override any GCC internal prototype to avoid an error.
9173
Use char because int might match the return type of a GCC
9174
builtin and then its argument prototype would still apply. */
9178
char XOpenDisplay ();
9182
return XOpenDisplay ();
9187
rm -f conftest.$ac_objext conftest$ac_exeext
9188
if { (ac_try="$ac_link"
9190
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191
*) ac_try_echo=$ac_try;;
9193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194
(eval "$ac_link") 2>conftest.er1
9196
grep -v '^ *+' conftest.er1 >conftest.err
9198
cat conftest.err >&5
9199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200
(exit $ac_status); } && {
9201
test -z "$ac_c_werror_flag" ||
9202
test ! -s conftest.err
9203
} && test -s conftest$ac_exeext &&
9204
$as_test_x conftest$ac_exeext; then
9207
echo "$as_me: failed program was:" >&5
9208
sed 's/^/| /' conftest.$ac_ext >&5
9210
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9211
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
9212
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9213
echo $ECHO_N "(cached) $ECHO_C" >&6
9215
ac_check_lib_save_LIBS=$LIBS
2268
9216
LIBS="-ldnet $LIBS"
2269
cat > conftest.$ac_ext <<EOF
2270
#line 2271 "configure"
2271
#include "confdefs.h"
2272
/* Override any gcc2 internal prototype to avoid an error. */
2273
/* We use char because int might match the return type of a gcc2
2274
builtin and then its argument prototype would still apply. */
9217
cat >conftest.$ac_ext <<_ACEOF
9220
cat confdefs.h >>conftest.$ac_ext
9221
cat >>conftest.$ac_ext <<_ACEOF
9222
/* end confdefs.h. */
2281
if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2283
eval "ac_cv_lib_$ac_lib_var=yes"
9224
/* Override any GCC internal prototype to avoid an error.
9225
Use char because int might match the return type of a GCC
9226
builtin and then its argument prototype would still apply. */
9234
return dnet_ntoa ();
9239
rm -f conftest.$ac_objext conftest$ac_exeext
9240
if { (ac_try="$ac_link"
9242
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243
*) ac_try_echo=$ac_try;;
9245
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246
(eval "$ac_link") 2>conftest.er1
9248
grep -v '^ *+' conftest.er1 >conftest.err
9250
cat conftest.err >&5
9251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252
(exit $ac_status); } && {
9253
test -z "$ac_c_werror_flag" ||
9254
test ! -s conftest.err
9255
} && test -s conftest$ac_exeext &&
9256
$as_test_x conftest$ac_exeext; then
9257
ac_cv_lib_dnet_dnet_ntoa=yes
2285
echo "configure: failed program was:" >&5
2286
cat conftest.$ac_ext >&5
2288
eval "ac_cv_lib_$ac_lib_var=no"
2291
LIBS="$ac_save_LIBS"
2294
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2295
echo "$ac_t""yes" 1>&6
9259
echo "$as_me: failed program was:" >&5
9260
sed 's/^/| /' conftest.$ac_ext >&5
9262
ac_cv_lib_dnet_dnet_ntoa=no
9265
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266
conftest$ac_exeext conftest.$ac_ext
9267
LIBS=$ac_check_lib_save_LIBS
9269
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9270
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9271
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2296
9272
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2298
echo "$ac_t""no" 1>&6
2301
9275
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2302
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2303
echo "configure:2304: checking for dnet_ntoa in -ldnet_stub" >&5
2304
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2305
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2306
echo $ac_n "(cached) $ac_c" 1>&6
9276
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9277
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
9278
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9279
echo $ECHO_N "(cached) $ECHO_C" >&6
2308
ac_save_LIBS="$LIBS"
9281
ac_check_lib_save_LIBS=$LIBS
2309
9282
LIBS="-ldnet_stub $LIBS"
2310
cat > conftest.$ac_ext <<EOF
2311
#line 2312 "configure"
2312
#include "confdefs.h"
2313
/* Override any gcc2 internal prototype to avoid an error. */
2314
/* We use char because int might match the return type of a gcc2
2315
builtin and then its argument prototype would still apply. */
9283
cat >conftest.$ac_ext <<_ACEOF
9286
cat confdefs.h >>conftest.$ac_ext
9287
cat >>conftest.$ac_ext <<_ACEOF
9288
/* end confdefs.h. */
2322
if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2324
eval "ac_cv_lib_$ac_lib_var=yes"
9290
/* Override any GCC internal prototype to avoid an error.
9291
Use char because int might match the return type of a GCC
9292
builtin and then its argument prototype would still apply. */
9300
return dnet_ntoa ();
9305
rm -f conftest.$ac_objext conftest$ac_exeext
9306
if { (ac_try="$ac_link"
9308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309
*) ac_try_echo=$ac_try;;
9311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312
(eval "$ac_link") 2>conftest.er1
9314
grep -v '^ *+' conftest.er1 >conftest.err
9316
cat conftest.err >&5
9317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318
(exit $ac_status); } && {
9319
test -z "$ac_c_werror_flag" ||
9320
test ! -s conftest.err
9321
} && test -s conftest$ac_exeext &&
9322
$as_test_x conftest$ac_exeext; then
9323
ac_cv_lib_dnet_stub_dnet_ntoa=yes
2326
echo "configure: failed program was:" >&5
2327
cat conftest.$ac_ext >&5
2329
eval "ac_cv_lib_$ac_lib_var=no"
2332
LIBS="$ac_save_LIBS"
2335
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2336
echo "$ac_t""yes" 1>&6
9325
echo "$as_me: failed program was:" >&5
9326
sed 's/^/| /' conftest.$ac_ext >&5
9328
ac_cv_lib_dnet_stub_dnet_ntoa=no
9331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9332
conftest$ac_exeext conftest.$ac_ext
9333
LIBS=$ac_check_lib_save_LIBS
9335
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9336
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9337
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2337
9338
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2339
echo "$ac_t""no" 1>&6
9344
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9345
conftest$ac_exeext conftest.$ac_ext
9346
LIBS="$ac_xsave_LIBS"
2344
9348
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2345
9349
# to get the SysV transport functions.
2346
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9350
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2348
9352
# The nsl library prevents programs from opening the X display
2349
# on Irix 5.2, according to dickey@clark.net.
2350
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2351
echo "configure:2352: checking for gethostbyname" >&5
2352
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2353
echo $ac_n "(cached) $ac_c" 1>&6
9353
# on Irix 5.2, according to T.E. Dickey.
9354
# The functions gethostbyname, getservbyname, and inet_addr are
9355
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9356
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
9357
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
9358
if test "${ac_cv_func_gethostbyname+set}" = set; then
9359
echo $ECHO_N "(cached) $ECHO_C" >&6
2355
cat > conftest.$ac_ext <<EOF
2356
#line 2357 "configure"
2357
#include "confdefs.h"
9361
cat >conftest.$ac_ext <<_ACEOF
9364
cat confdefs.h >>conftest.$ac_ext
9365
cat >>conftest.$ac_ext <<_ACEOF
9366
/* end confdefs.h. */
9367
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9368
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9369
#define gethostbyname innocuous_gethostbyname
2358
9371
/* System header to define __stub macros and hopefully few prototypes,
2359
which can conflict with char gethostbyname(); below. */
2361
/* Override any gcc2 internal prototype to avoid an error. */
2362
/* We use char because int might match the return type of a gcc2
2363
builtin and then its argument prototype would still apply. */
2364
char gethostbyname();
9372
which can conflict with char gethostbyname (); below.
9373
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9374
<limits.h> exists even on freestanding compilers. */
9377
# include <limits.h>
9379
# include <assert.h>
9382
#undef gethostbyname
9384
/* Override any GCC internal prototype to avoid an error.
9385
Use char because int might match the return type of a GCC
9386
builtin and then its argument prototype would still apply. */
9390
char gethostbyname ();
2368
9391
/* The GNU C library defines this for functions which it implements
2369
9392
to always fail with ENOSYS. Some functions are actually named
2370
9393
something starting with __ and the normal name is an alias. */
2371
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9394
#if defined __stub_gethostbyname || defined __stub___gethostbyname
2379
if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381
eval "ac_cv_func_gethostbyname=yes"
2383
echo "configure: failed program was:" >&5
2384
cat conftest.$ac_ext >&5
2386
eval "ac_cv_func_gethostbyname=no"
2391
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2392
echo "$ac_t""yes" 1>&6
2395
echo "$ac_t""no" 1>&6
9401
return gethostbyname ();
9406
rm -f conftest.$ac_objext conftest$ac_exeext
9407
if { (ac_try="$ac_link"
9409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410
*) ac_try_echo=$ac_try;;
9412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413
(eval "$ac_link") 2>conftest.er1
9415
grep -v '^ *+' conftest.er1 >conftest.err
9417
cat conftest.err >&5
9418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419
(exit $ac_status); } && {
9420
test -z "$ac_c_werror_flag" ||
9421
test ! -s conftest.err
9422
} && test -s conftest$ac_exeext &&
9423
$as_test_x conftest$ac_exeext; then
9424
ac_cv_func_gethostbyname=yes
9426
echo "$as_me: failed program was:" >&5
9427
sed 's/^/| /' conftest.$ac_ext >&5
9429
ac_cv_func_gethostbyname=no
9432
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9433
conftest$ac_exeext conftest.$ac_ext
9435
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9436
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
2398
9438
if test $ac_cv_func_gethostbyname = no; then
2399
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2400
echo "configure:2401: checking for gethostbyname in -lnsl" >&5
2401
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2402
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2403
echo $ac_n "(cached) $ac_c" 1>&6
9439
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9440
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
9441
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9442
echo $ECHO_N "(cached) $ECHO_C" >&6
2405
ac_save_LIBS="$LIBS"
9444
ac_check_lib_save_LIBS=$LIBS
2406
9445
LIBS="-lnsl $LIBS"
2407
cat > conftest.$ac_ext <<EOF
2408
#line 2409 "configure"
2409
#include "confdefs.h"
2410
/* Override any gcc2 internal prototype to avoid an error. */
2411
/* We use char because int might match the return type of a gcc2
2412
builtin and then its argument prototype would still apply. */
2413
char gethostbyname();
9446
cat >conftest.$ac_ext <<_ACEOF
9449
cat confdefs.h >>conftest.$ac_ext
9450
cat >>conftest.$ac_ext <<_ACEOF
9451
/* end confdefs.h. */
2419
if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2421
eval "ac_cv_lib_$ac_lib_var=yes"
9453
/* Override any GCC internal prototype to avoid an error.
9454
Use char because int might match the return type of a GCC
9455
builtin and then its argument prototype would still apply. */
9459
char gethostbyname ();
9463
return gethostbyname ();
9468
rm -f conftest.$ac_objext conftest$ac_exeext
9469
if { (ac_try="$ac_link"
9471
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472
*) ac_try_echo=$ac_try;;
9474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475
(eval "$ac_link") 2>conftest.er1
9477
grep -v '^ *+' conftest.er1 >conftest.err
9479
cat conftest.err >&5
9480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481
(exit $ac_status); } && {
9482
test -z "$ac_c_werror_flag" ||
9483
test ! -s conftest.err
9484
} && test -s conftest$ac_exeext &&
9485
$as_test_x conftest$ac_exeext; then
9486
ac_cv_lib_nsl_gethostbyname=yes
2423
echo "configure: failed program was:" >&5
2424
cat conftest.$ac_ext >&5
2426
eval "ac_cv_lib_$ac_lib_var=no"
2429
LIBS="$ac_save_LIBS"
2432
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2433
echo "$ac_t""yes" 1>&6
9488
echo "$as_me: failed program was:" >&5
9489
sed 's/^/| /' conftest.$ac_ext >&5
9491
ac_cv_lib_nsl_gethostbyname=no
9494
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9495
conftest$ac_exeext conftest.$ac_ext
9496
LIBS=$ac_check_lib_save_LIBS
9498
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9499
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
9500
if test $ac_cv_lib_nsl_gethostbyname = yes; then
2434
9501
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2436
echo "$ac_t""no" 1>&6
9504
if test $ac_cv_lib_nsl_gethostbyname = no; then
9505
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9506
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
9507
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9508
echo $ECHO_N "(cached) $ECHO_C" >&6
9510
ac_check_lib_save_LIBS=$LIBS
9512
cat >conftest.$ac_ext <<_ACEOF
9515
cat confdefs.h >>conftest.$ac_ext
9516
cat >>conftest.$ac_ext <<_ACEOF
9517
/* end confdefs.h. */
9519
/* Override any GCC internal prototype to avoid an error.
9520
Use char because int might match the return type of a GCC
9521
builtin and then its argument prototype would still apply. */
9525
char gethostbyname ();
9529
return gethostbyname ();
9534
rm -f conftest.$ac_objext conftest$ac_exeext
9535
if { (ac_try="$ac_link"
9537
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538
*) ac_try_echo=$ac_try;;
9540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541
(eval "$ac_link") 2>conftest.er1
9543
grep -v '^ *+' conftest.er1 >conftest.err
9545
cat conftest.err >&5
9546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547
(exit $ac_status); } && {
9548
test -z "$ac_c_werror_flag" ||
9549
test ! -s conftest.err
9550
} && test -s conftest$ac_exeext &&
9551
$as_test_x conftest$ac_exeext; then
9552
ac_cv_lib_bsd_gethostbyname=yes
9554
echo "$as_me: failed program was:" >&5
9555
sed 's/^/| /' conftest.$ac_ext >&5
9557
ac_cv_lib_bsd_gethostbyname=no
9560
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561
conftest$ac_exeext conftest.$ac_ext
9562
LIBS=$ac_check_lib_save_LIBS
9564
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9565
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
9566
if test $ac_cv_lib_bsd_gethostbyname = yes; then
9567
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2441
9573
# lieder@skyler.mavd.honeywell.com says without -lsocket,
2442
9574
# socket/setsockopt and other routines are undefined under SCO ODT
2443
9575
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2444
# on later versions), says simon@lia.di.epfl.ch: it contains
2445
# gethostby* variants that don't use the nameserver (or something).
2446
# -lsocket must be given before -lnsl if both are needed.
2447
# We assume that if connect needs -lnsl, so does gethostbyname.
2448
echo $ac_n "checking for connect""... $ac_c" 1>&6
2449
echo "configure:2450: checking for connect" >&5
2450
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2451
echo $ac_n "(cached) $ac_c" 1>&6
9576
# on later versions), says Simon Leinen: it contains gethostby*
9577
# variants that don't use the name server (or something). -lsocket
9578
# must be given before -lnsl if both are needed. We assume that
9579
# if connect needs -lnsl, so does gethostbyname.
9580
{ echo "$as_me:$LINENO: checking for connect" >&5
9581
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
9582
if test "${ac_cv_func_connect+set}" = set; then
9583
echo $ECHO_N "(cached) $ECHO_C" >&6
2453
cat > conftest.$ac_ext <<EOF
2454
#line 2455 "configure"
2455
#include "confdefs.h"
9585
cat >conftest.$ac_ext <<_ACEOF
9588
cat confdefs.h >>conftest.$ac_ext
9589
cat >>conftest.$ac_ext <<_ACEOF
9590
/* end confdefs.h. */
9591
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9592
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9593
#define connect innocuous_connect
2456
9595
/* System header to define __stub macros and hopefully few prototypes,
2457
which can conflict with char connect(); below. */
2459
/* Override any gcc2 internal prototype to avoid an error. */
2460
/* We use char because int might match the return type of a gcc2
2461
builtin and then its argument prototype would still apply. */
9596
which can conflict with char connect (); below.
9597
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598
<limits.h> exists even on freestanding compilers. */
9601
# include <limits.h>
9603
# include <assert.h>
9608
/* Override any GCC internal prototype to avoid an error.
9609
Use char because int might match the return type of a GCC
9610
builtin and then its argument prototype would still apply. */
2466
9615
/* The GNU C library defines this for functions which it implements
2467
9616
to always fail with ENOSYS. Some functions are actually named
2468
9617
something starting with __ and the normal name is an alias. */
2469
#if defined (__stub_connect) || defined (__stub___connect)
9618
#if defined __stub_connect || defined __stub___connect
2477
if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2479
eval "ac_cv_func_connect=yes"
2481
echo "configure: failed program was:" >&5
2482
cat conftest.$ac_ext >&5
2484
eval "ac_cv_func_connect=no"
2489
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2490
echo "$ac_t""yes" 1>&6
2493
echo "$ac_t""no" 1>&6
9630
rm -f conftest.$ac_objext conftest$ac_exeext
9631
if { (ac_try="$ac_link"
9633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634
*) ac_try_echo=$ac_try;;
9636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637
(eval "$ac_link") 2>conftest.er1
9639
grep -v '^ *+' conftest.er1 >conftest.err
9641
cat conftest.err >&5
9642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643
(exit $ac_status); } && {
9644
test -z "$ac_c_werror_flag" ||
9645
test ! -s conftest.err
9646
} && test -s conftest$ac_exeext &&
9647
$as_test_x conftest$ac_exeext; then
9648
ac_cv_func_connect=yes
9650
echo "$as_me: failed program was:" >&5
9651
sed 's/^/| /' conftest.$ac_ext >&5
9653
ac_cv_func_connect=no
9656
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657
conftest$ac_exeext conftest.$ac_ext
9659
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9660
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
2496
9662
if test $ac_cv_func_connect = no; then
2497
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2498
echo "configure:2499: checking for connect in -lsocket" >&5
2499
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2500
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2501
echo $ac_n "(cached) $ac_c" 1>&6
9663
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9664
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
9665
if test "${ac_cv_lib_socket_connect+set}" = set; then
9666
echo $ECHO_N "(cached) $ECHO_C" >&6
2503
ac_save_LIBS="$LIBS"
9668
ac_check_lib_save_LIBS=$LIBS
2504
9669
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2505
cat > conftest.$ac_ext <<EOF
2506
#line 2507 "configure"
2507
#include "confdefs.h"
2508
/* Override any gcc2 internal prototype to avoid an error. */
2509
/* We use char because int might match the return type of a gcc2
2510
builtin and then its argument prototype would still apply. */
9670
cat >conftest.$ac_ext <<_ACEOF
9673
cat confdefs.h >>conftest.$ac_ext
9674
cat >>conftest.$ac_ext <<_ACEOF
9675
/* end confdefs.h. */
2517
if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2519
eval "ac_cv_lib_$ac_lib_var=yes"
9677
/* Override any GCC internal prototype to avoid an error.
9678
Use char because int might match the return type of a GCC
9679
builtin and then its argument prototype would still apply. */
9692
rm -f conftest.$ac_objext conftest$ac_exeext
9693
if { (ac_try="$ac_link"
9695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696
*) ac_try_echo=$ac_try;;
9698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699
(eval "$ac_link") 2>conftest.er1
9701
grep -v '^ *+' conftest.er1 >conftest.err
9703
cat conftest.err >&5
9704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705
(exit $ac_status); } && {
9706
test -z "$ac_c_werror_flag" ||
9707
test ! -s conftest.err
9708
} && test -s conftest$ac_exeext &&
9709
$as_test_x conftest$ac_exeext; then
9710
ac_cv_lib_socket_connect=yes
2521
echo "configure: failed program was:" >&5
2522
cat conftest.$ac_ext >&5
2524
eval "ac_cv_lib_$ac_lib_var=no"
2527
LIBS="$ac_save_LIBS"
2530
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2531
echo "$ac_t""yes" 1>&6
9712
echo "$as_me: failed program was:" >&5
9713
sed 's/^/| /' conftest.$ac_ext >&5
9715
ac_cv_lib_socket_connect=no
9718
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719
conftest$ac_exeext conftest.$ac_ext
9720
LIBS=$ac_check_lib_save_LIBS
9722
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9723
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
9724
if test $ac_cv_lib_socket_connect = yes; then
2532
9725
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2534
echo "$ac_t""no" 1>&6
2539
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2540
echo $ac_n "checking for remove""... $ac_c" 1>&6
2541
echo "configure:2542: checking for remove" >&5
2542
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2543
echo $ac_n "(cached) $ac_c" 1>&6
9730
# Guillermo Gomez says -lposix is necessary on A/UX.
9731
{ echo "$as_me:$LINENO: checking for remove" >&5
9732
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
9733
if test "${ac_cv_func_remove+set}" = set; then
9734
echo $ECHO_N "(cached) $ECHO_C" >&6
2545
cat > conftest.$ac_ext <<EOF
2546
#line 2547 "configure"
2547
#include "confdefs.h"
9736
cat >conftest.$ac_ext <<_ACEOF
9739
cat confdefs.h >>conftest.$ac_ext
9740
cat >>conftest.$ac_ext <<_ACEOF
9741
/* end confdefs.h. */
9742
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9743
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9744
#define remove innocuous_remove
2548
9746
/* System header to define __stub macros and hopefully few prototypes,
2549
which can conflict with char remove(); below. */
2551
/* Override any gcc2 internal prototype to avoid an error. */
2552
/* We use char because int might match the return type of a gcc2
2553
builtin and then its argument prototype would still apply. */
9747
which can conflict with char remove (); below.
9748
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749
<limits.h> exists even on freestanding compilers. */
9752
# include <limits.h>
9754
# include <assert.h>
9759
/* Override any GCC internal prototype to avoid an error.
9760
Use char because int might match the return type of a GCC
9761
builtin and then its argument prototype would still apply. */
2558
9766
/* The GNU C library defines this for functions which it implements
2559
9767
to always fail with ENOSYS. Some functions are actually named
2560
9768
something starting with __ and the normal name is an alias. */
2561
#if defined (__stub_remove) || defined (__stub___remove)
9769
#if defined __stub_remove || defined __stub___remove
2569
if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571
eval "ac_cv_func_remove=yes"
2573
echo "configure: failed program was:" >&5
2574
cat conftest.$ac_ext >&5
2576
eval "ac_cv_func_remove=no"
2581
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2582
echo "$ac_t""yes" 1>&6
2585
echo "$ac_t""no" 1>&6
9781
rm -f conftest.$ac_objext conftest$ac_exeext
9782
if { (ac_try="$ac_link"
9784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785
*) ac_try_echo=$ac_try;;
9787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788
(eval "$ac_link") 2>conftest.er1
9790
grep -v '^ *+' conftest.er1 >conftest.err
9792
cat conftest.err >&5
9793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794
(exit $ac_status); } && {
9795
test -z "$ac_c_werror_flag" ||
9796
test ! -s conftest.err
9797
} && test -s conftest$ac_exeext &&
9798
$as_test_x conftest$ac_exeext; then
9799
ac_cv_func_remove=yes
9801
echo "$as_me: failed program was:" >&5
9802
sed 's/^/| /' conftest.$ac_ext >&5
9804
ac_cv_func_remove=no
9807
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808
conftest$ac_exeext conftest.$ac_ext
9810
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9811
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
2588
9813
if test $ac_cv_func_remove = no; then
2589
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2590
echo "configure:2591: checking for remove in -lposix" >&5
2591
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2592
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2593
echo $ac_n "(cached) $ac_c" 1>&6
9814
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9815
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
9816
if test "${ac_cv_lib_posix_remove+set}" = set; then
9817
echo $ECHO_N "(cached) $ECHO_C" >&6
2595
ac_save_LIBS="$LIBS"
9819
ac_check_lib_save_LIBS=$LIBS
2596
9820
LIBS="-lposix $LIBS"
2597
cat > conftest.$ac_ext <<EOF
2598
#line 2599 "configure"
2599
#include "confdefs.h"
2600
/* Override any gcc2 internal prototype to avoid an error. */
2601
/* We use char because int might match the return type of a gcc2
2602
builtin and then its argument prototype would still apply. */
9821
cat >conftest.$ac_ext <<_ACEOF
9824
cat confdefs.h >>conftest.$ac_ext
9825
cat >>conftest.$ac_ext <<_ACEOF
9826
/* end confdefs.h. */
2609
if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2611
eval "ac_cv_lib_$ac_lib_var=yes"
9828
/* Override any GCC internal prototype to avoid an error.
9829
Use char because int might match the return type of a GCC
9830
builtin and then its argument prototype would still apply. */
9843
rm -f conftest.$ac_objext conftest$ac_exeext
9844
if { (ac_try="$ac_link"
9846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847
*) ac_try_echo=$ac_try;;
9849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850
(eval "$ac_link") 2>conftest.er1
9852
grep -v '^ *+' conftest.er1 >conftest.err
9854
cat conftest.err >&5
9855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856
(exit $ac_status); } && {
9857
test -z "$ac_c_werror_flag" ||
9858
test ! -s conftest.err
9859
} && test -s conftest$ac_exeext &&
9860
$as_test_x conftest$ac_exeext; then
9861
ac_cv_lib_posix_remove=yes
2613
echo "configure: failed program was:" >&5
2614
cat conftest.$ac_ext >&5
2616
eval "ac_cv_lib_$ac_lib_var=no"
2619
LIBS="$ac_save_LIBS"
2622
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2623
echo "$ac_t""yes" 1>&6
9863
echo "$as_me: failed program was:" >&5
9864
sed 's/^/| /' conftest.$ac_ext >&5
9866
ac_cv_lib_posix_remove=no
9869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870
conftest$ac_exeext conftest.$ac_ext
9871
LIBS=$ac_check_lib_save_LIBS
9873
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9874
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
9875
if test $ac_cv_lib_posix_remove = yes; then
2624
9876
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2626
echo "$ac_t""no" 1>&6
2631
9881
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2632
echo $ac_n "checking for shmat""... $ac_c" 1>&6
2633
echo "configure:2634: checking for shmat" >&5
2634
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2635
echo $ac_n "(cached) $ac_c" 1>&6
9882
{ echo "$as_me:$LINENO: checking for shmat" >&5
9883
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
9884
if test "${ac_cv_func_shmat+set}" = set; then
9885
echo $ECHO_N "(cached) $ECHO_C" >&6
2637
cat > conftest.$ac_ext <<EOF
2638
#line 2639 "configure"
2639
#include "confdefs.h"
9887
cat >conftest.$ac_ext <<_ACEOF
9890
cat confdefs.h >>conftest.$ac_ext
9891
cat >>conftest.$ac_ext <<_ACEOF
9892
/* end confdefs.h. */
9893
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9894
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895
#define shmat innocuous_shmat
2640
9897
/* System header to define __stub macros and hopefully few prototypes,
2641
which can conflict with char shmat(); below. */
2643
/* Override any gcc2 internal prototype to avoid an error. */
2644
/* We use char because int might match the return type of a gcc2
2645
builtin and then its argument prototype would still apply. */
9898
which can conflict with char shmat (); below.
9899
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900
<limits.h> exists even on freestanding compilers. */
9903
# include <limits.h>
9905
# include <assert.h>
9910
/* Override any GCC internal prototype to avoid an error.
9911
Use char because int might match the return type of a GCC
9912
builtin and then its argument prototype would still apply. */
2650
9917
/* The GNU C library defines this for functions which it implements
2651
9918
to always fail with ENOSYS. Some functions are actually named
2652
9919
something starting with __ and the normal name is an alias. */
2653
#if defined (__stub_shmat) || defined (__stub___shmat)
9920
#if defined __stub_shmat || defined __stub___shmat
2661
if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2663
eval "ac_cv_func_shmat=yes"
2665
echo "configure: failed program was:" >&5
2666
cat conftest.$ac_ext >&5
2668
eval "ac_cv_func_shmat=no"
2673
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2674
echo "$ac_t""yes" 1>&6
2677
echo "$ac_t""no" 1>&6
9932
rm -f conftest.$ac_objext conftest$ac_exeext
9933
if { (ac_try="$ac_link"
9935
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936
*) ac_try_echo=$ac_try;;
9938
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939
(eval "$ac_link") 2>conftest.er1
9941
grep -v '^ *+' conftest.er1 >conftest.err
9943
cat conftest.err >&5
9944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945
(exit $ac_status); } && {
9946
test -z "$ac_c_werror_flag" ||
9947
test ! -s conftest.err
9948
} && test -s conftest$ac_exeext &&
9949
$as_test_x conftest$ac_exeext; then
9950
ac_cv_func_shmat=yes
9952
echo "$as_me: failed program was:" >&5
9953
sed 's/^/| /' conftest.$ac_ext >&5
9958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959
conftest$ac_exeext conftest.$ac_ext
9961
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9962
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
2680
9964
if test $ac_cv_func_shmat = no; then
2681
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2682
echo "configure:2683: checking for shmat in -lipc" >&5
2683
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2684
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2685
echo $ac_n "(cached) $ac_c" 1>&6
9965
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9966
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
9967
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9968
echo $ECHO_N "(cached) $ECHO_C" >&6
2687
ac_save_LIBS="$LIBS"
9970
ac_check_lib_save_LIBS=$LIBS
2688
9971
LIBS="-lipc $LIBS"
2689
cat > conftest.$ac_ext <<EOF
2690
#line 2691 "configure"
2691
#include "confdefs.h"
2692
/* Override any gcc2 internal prototype to avoid an error. */
2693
/* We use char because int might match the return type of a gcc2
2694
builtin and then its argument prototype would still apply. */
9972
cat >conftest.$ac_ext <<_ACEOF
9975
cat confdefs.h >>conftest.$ac_ext
9976
cat >>conftest.$ac_ext <<_ACEOF
9977
/* end confdefs.h. */
2701
if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2703
eval "ac_cv_lib_$ac_lib_var=yes"
9979
/* Override any GCC internal prototype to avoid an error.
9980
Use char because int might match the return type of a GCC
9981
builtin and then its argument prototype would still apply. */
9994
rm -f conftest.$ac_objext conftest$ac_exeext
9995
if { (ac_try="$ac_link"
9997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998
*) ac_try_echo=$ac_try;;
10000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001
(eval "$ac_link") 2>conftest.er1
10003
grep -v '^ *+' conftest.er1 >conftest.err
10005
cat conftest.err >&5
10006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007
(exit $ac_status); } && {
10008
test -z "$ac_c_werror_flag" ||
10009
test ! -s conftest.err
10010
} && test -s conftest$ac_exeext &&
10011
$as_test_x conftest$ac_exeext; then
10012
ac_cv_lib_ipc_shmat=yes
2705
echo "configure: failed program was:" >&5
2706
cat conftest.$ac_ext >&5
2708
eval "ac_cv_lib_$ac_lib_var=no"
2711
LIBS="$ac_save_LIBS"
2714
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2715
echo "$ac_t""yes" 1>&6
10014
echo "$as_me: failed program was:" >&5
10015
sed 's/^/| /' conftest.$ac_ext >&5
10017
ac_cv_lib_ipc_shmat=no
10020
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10021
conftest$ac_exeext conftest.$ac_ext
10022
LIBS=$ac_check_lib_save_LIBS
10024
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10025
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
10026
if test $ac_cv_lib_ipc_shmat = yes; then
2716
10027
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2718
echo "$ac_t""no" 1>&6
2724
10033
# Check for libraries that X11R6 Xt/Xaw programs need.
2725
ac_save_LDFLAGS="$LDFLAGS"
10034
ac_save_LDFLAGS=$LDFLAGS
2726
10035
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2727
10036
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2728
10037
# check for ICE first), but we must link in the order -lSM -lICE or
2729
10038
# we get undefined symbols. So assume we have SM if we have ICE.
2730
10039
# These have to be linked with before -lX11, unlike the other
2731
10040
# libraries we check for below, so use a different variable.
2732
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2733
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2734
echo "configure:2735: checking for IceConnectionNumber in -lICE" >&5
2735
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2736
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2737
echo $ac_n "(cached) $ac_c" 1>&6
10041
# John Interrante, Karl Berry
10042
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10043
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
10044
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10045
echo $ECHO_N "(cached) $ECHO_C" >&6
2739
ac_save_LIBS="$LIBS"
10047
ac_check_lib_save_LIBS=$LIBS
2740
10048
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2741
cat > conftest.$ac_ext <<EOF
2742
#line 2743 "configure"
2743
#include "confdefs.h"
2744
/* Override any gcc2 internal prototype to avoid an error. */
2745
/* We use char because int might match the return type of a gcc2
2746
builtin and then its argument prototype would still apply. */
2747
char IceConnectionNumber();
10049
cat >conftest.$ac_ext <<_ACEOF
10052
cat confdefs.h >>conftest.$ac_ext
10053
cat >>conftest.$ac_ext <<_ACEOF
10054
/* end confdefs.h. */
2750
IceConnectionNumber()
2753
if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2755
eval "ac_cv_lib_$ac_lib_var=yes"
10056
/* Override any GCC internal prototype to avoid an error.
10057
Use char because int might match the return type of a GCC
10058
builtin and then its argument prototype would still apply. */
10062
char IceConnectionNumber ();
10066
return IceConnectionNumber ();
10071
rm -f conftest.$ac_objext conftest$ac_exeext
10072
if { (ac_try="$ac_link"
10073
case "(($ac_try" in
10074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075
*) ac_try_echo=$ac_try;;
10077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078
(eval "$ac_link") 2>conftest.er1
10080
grep -v '^ *+' conftest.er1 >conftest.err
10082
cat conftest.err >&5
10083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084
(exit $ac_status); } && {
10085
test -z "$ac_c_werror_flag" ||
10086
test ! -s conftest.err
10087
} && test -s conftest$ac_exeext &&
10088
$as_test_x conftest$ac_exeext; then
10089
ac_cv_lib_ICE_IceConnectionNumber=yes
2757
echo "configure: failed program was:" >&5
2758
cat conftest.$ac_ext >&5
2760
eval "ac_cv_lib_$ac_lib_var=no"
2763
LIBS="$ac_save_LIBS"
2766
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2767
echo "$ac_t""yes" 1>&6
10091
echo "$as_me: failed program was:" >&5
10092
sed 's/^/| /' conftest.$ac_ext >&5
10094
ac_cv_lib_ICE_IceConnectionNumber=no
10097
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10098
conftest$ac_exeext conftest.$ac_ext
10099
LIBS=$ac_check_lib_save_LIBS
10101
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10102
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
10103
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
2768
10104
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2770
echo "$ac_t""no" 1>&6
2773
LDFLAGS="$ac_save_LDFLAGS"
2782
echo $ac_n "checking for OpenGL""... $ac_c" 1>&6
2783
echo "configure:2784: checking for OpenGL" >&5
2784
if eval "test \"`echo '$''{'mdl_cv_have_OpenGL'+set}'`\" = set"; then
2785
echo $ac_n "(cached) $ac_c" 1>&6
2788
# Check whether --with---with-Mesa or --without---with-Mesa was given.
10107
LDFLAGS=$ac_save_LDFLAGS
10116
{ echo "$as_me:$LINENO: checking for OpenGL" >&5
10117
echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6; }
10118
if test "${mdl_cv_have_OpenGL+set}" = set; then
10119
echo $ECHO_N "(cached) $ECHO_C" >&6
10123
# Check whether --with---with-Mesa was given.
2789
10124
if test "${with___with_Mesa+set}" = set; then
2790
withval="$with___with_Mesa"
2791
with_Mesa_help_string
10125
withval=$with___with_Mesa; with_Mesa_help_string
2794
# Check whether --enable-Mesa or --disable-Mesa was given.
10128
# Check whether --enable-Mesa was given.
2795
10129
if test "${enable_Mesa+set}" = set; then
2796
enableval="$enable_Mesa"
10130
enableval=$enable_Mesa; use_Mesa=$enableval
4006
11408
if test x"${QT_LIBS}" = x; then
4008
{ echo "configure: error: Qt is required. If you have Qt installed see --help for more options" 1>&2; exit 1; }
11410
{ { echo "$as_me:$LINENO: error: Qt is required. If you have Qt installed see --help for more options" >&5
11411
echo "$as_me: error: Qt is required. If you have Qt installed see --help for more options" >&2;}
11412
{ (exit 1); exit 1; }; }
4012
11416
if test x"$have_GLU" != xyes; then
4014
{ echo "configure: error: OpenGL (with GLU) is required." 1>&2; exit 1; }
11418
{ { echo "$as_me:$LINENO: error: OpenGL (with GLU) is required." >&5
11419
echo "$as_me: error: OpenGL (with GLU) is required." >&2;}
11420
{ (exit 1); exit 1; }; }
4018
11424
if test x"${ksw_cv_qgl_test_result}" = xfailure; then
4020
{ echo "configure: error: Qt with OpenGL is required." 1>&2; exit 1; }
11426
{ { echo "$as_me:$LINENO: error: Qt with OpenGL is required." >&5
11427
echo "$as_me: error: Qt with OpenGL is required." >&2;}
11428
{ (exit 1); exit 1; }; }
4025
cat > confcache <<\EOF
11432
ac_config_files="$ac_config_files Makefile src/Makefile src/libmm3d/Makefile src/mm3dcore/Makefile src/depui/Makefile src/qtui/Makefile src/implui/Makefile src/tools/Makefile src/commands/Makefile src/pixmap/Makefile plugins/Makefile man/Makefile i18n/Makefile desktop/Makefile doc/Makefile doc/html/Makefile doc/html/olh_images/Makefile doc/html/olh_images/tools/Makefile"
11434
cat >confcache <<\_ACEOF
4026
11435
# This file is a shell script that caches the results of configure
4027
11436
# tests run on this system so they can be shared between configure
4028
# scripts and configure runs. It is not useful on other systems.
4029
# If it contains results you don't want to keep, you may remove or edit it.
4031
# By default, configure uses ./config.cache as the cache file,
4032
# creating it if it does not exist already. You can give configure
4033
# the --cache-file=FILE option to use a different cache file; that is
4034
# what configure does when it calls configure scripts in
4035
# subdirectories, so they share the cache.
4036
# Giving --cache-file=/dev/null disables caching, for debugging configure.
4037
# config.status only pays attention to the cache file if you give it the
4038
# --recheck option to rerun configure.
11437
# scripts and configure runs, see configure's option --config-cache.
11438
# It is not useful on other systems. If it contains results you don't
11439
# want to keep, you may remove or edit it.
11441
# config.status only pays attention to the cache file if you give it
11442
# the --recheck option to rerun configure.
11444
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11445
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11446
# following values.
4041
11450
# The following way of writing the cache mishandles newlines in values,
4042
11451
# but we know of no workaround that is simple, portable, and efficient.
4043
# So, don't put newlines in cache variables' values.
11452
# So, we kill variables containing newlines.
4044
11453
# Ultrix sh set writes to stderr and can't be redirected directly,
4045
11454
# and sets the high bit in the cache file unless we assign to the vars.
4047
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4049
# `set' does not quote correctly, so add quotes (double-quote substitution
4050
# turns \\\\ into \\, and sed turns \\ into \).
4052
-e "s/'/'\\\\''/g" \
4053
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4056
# `set' quotes correctly as required by POSIX, so do not add quotes.
4057
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4060
if cmp -s $cache_file confcache; then
4063
if test -w $cache_file; then
4064
echo "updating cache $cache_file"
4065
cat confcache > $cache_file
11456
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11457
eval ac_val=\$$ac_var
11461
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11462
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11465
_ | IFS | as_nl) ;; #(
11466
*) $as_unset $ac_var ;;
11472
case $as_nl`(ac_space=' '; set) 2>&1` in #(
11473
*${as_nl}ac_space=\ *)
11474
# `set' does not quote correctly, so add quotes (double-quote
11475
# substitution turns \\\\ into \\, and sed turns \\ into \).
11478
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11481
# `set' quotes correctly as required by POSIX, so do not add quotes.
11482
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11491
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11493
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11495
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11496
if test -w "$cache_file"; then
11497
test "x$cache_file" != "x/dev/null" &&
11498
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
11499
echo "$as_me: updating cache $cache_file" >&6;}
11500
cat confcache >$cache_file
4067
echo "not updating unwritable cache $cache_file"
11502
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11503
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4070
11506
rm -f confcache
4072
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4074
11508
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4075
11509
# Let make expand exec_prefix.
4076
11510
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4078
# Any assignment to VPATH causes Sun make to only execute
4079
# the first set of double-colon rules, so remove it if not needed.
4080
# If there is a colon in the path, we need to keep it.
4081
if test "x$srcdir" = x.; then
4082
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4085
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4087
11512
DEFS=-DHAVE_CONFIG_H
4089
# Without the "./", some shells look in PATH for config.status.
11516
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11517
# 1. Remove the extension, and $U if already installed.
11518
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11519
ac_i=`echo "$ac_i" | sed "$ac_script"`
11520
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11521
# will be set to the directory where LIBOBJS objects are built.
11522
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11523
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11525
LIBOBJS=$ac_libobjs
11527
LTLIBOBJS=$ac_ltlibobjs
11530
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11531
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11532
Usually this means the macro was only invoked conditionally." >&5
11533
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11534
Usually this means the macro was only invoked conditionally." >&2;}
11535
{ (exit 1); exit 1; }; }
11537
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11538
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11539
Usually this means the macro was only invoked conditionally." >&5
11540
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11541
Usually this means the macro was only invoked conditionally." >&2;}
11542
{ (exit 1); exit 1; }; }
11544
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11545
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11546
Usually this means the macro was only invoked conditionally." >&5
11547
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11548
Usually this means the macro was only invoked conditionally." >&2;}
11549
{ (exit 1); exit 1; }; }
4090
11552
: ${CONFIG_STATUS=./config.status}
4092
echo creating $CONFIG_STATUS
4093
rm -f $CONFIG_STATUS
4094
cat > $CONFIG_STATUS <<EOF
4096
# Generated automatically by configure.
11553
ac_clean_files_save=$ac_clean_files
11554
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11555
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11556
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11557
cat >$CONFIG_STATUS <<_ACEOF
11559
# Generated by $as_me.
4097
11560
# Run this file to recreate the current configuration.
4098
# This directory was configured as follows,
4099
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4101
# $0 $ac_configure_args
4103
11561
# Compiler output produced by configure, useful for debugging
4104
# configure, is in ./config.log if it exists.
4106
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4109
case "\$ac_option" in
11562
# configure, is in config.log if it exists.
11565
ac_cs_recheck=false
11567
SHELL=\${CONFIG_SHELL-$SHELL}
11570
cat >>$CONFIG_STATUS <<\_ACEOF
11571
## --------------------- ##
11572
## M4sh Initialization. ##
11573
## --------------------- ##
11575
# Be more Bourne compatible
11576
DUALCASE=1; export DUALCASE # for MKS sh
11577
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11580
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11581
# is contrary to our usage. Disable this feature.
11582
alias -g '${1+"$@"}'='"$@"'
11583
setopt NO_GLOB_SUBST
11585
case `(set -o) 2>/dev/null` in
11586
*posix*) set -o posix ;;
11595
# Avoid depending upon Character Ranges.
11596
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11597
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11598
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11599
as_cr_digits='0123456789'
11600
as_cr_alnum=$as_cr_Letters$as_cr_digits
11602
# The user is always right.
11603
if test "${PATH_SEPARATOR+set}" != set; then
11604
echo "#! /bin/sh" >conf$$.sh
11605
echo "exit 0" >>conf$$.sh
11607
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11615
# Support unset when possible.
11616
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11624
# We need space, tab and new line, in precisely that order. Quoting is
11625
# there to prevent editors from complaining about space-tab.
11626
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11627
# splitting by setting IFS to empty value.)
11632
# Find who we are. Look in the path if we contain no directory separator.
11634
*[\\/]* ) as_myself=$0 ;;
11635
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636
for as_dir in $PATH
11639
test -z "$as_dir" && as_dir=.
11640
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11646
# We did not find ourselves, most probably we were run as `sh COMMAND'
11647
# in which case we are not to be found in the path.
11648
if test "x$as_myself" = x; then
11651
if test ! -f "$as_myself"; then
11652
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11653
{ (exit 1); exit 1; }
11656
# Work around bugs in pre-3.0 UWIN ksh.
11657
for as_var in ENV MAIL MAILPATH
11658
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11666
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11667
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11668
LC_TELEPHONE LC_TIME
11670
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11671
eval $as_var=C; export $as_var
11673
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11677
# Required to use basename.
11678
if expr a : '\(a\)' >/dev/null 2>&1 &&
11679
test "X`expr 00001 : '.*\(...\)'`" = X001; then
11685
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11686
as_basename=basename
11692
# Name of the executable.
11693
as_me=`$as_basename -- "$0" ||
11694
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11695
X"$0" : 'X\(//\)$' \| \
11696
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11698
sed '/^.*\/\([^/][^/]*\)\/*$/{
11717
as_lineno_1=$LINENO
11718
as_lineno_2=$LINENO
11719
test "x$as_lineno_1" != "x$as_lineno_2" &&
11720
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11722
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11723
# uniformly replaced by the line number. The first 'sed' inserts a
11724
# line-number line after each line using $LINENO; the second 'sed'
11725
# does the real work. The second script uses 'N' to pair each
11726
# line-number line with the line containing $LINENO, and appends
11727
# trailing '-' during substitution so that $LINENO is not a special
11728
# case at line end.
11729
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11730
# scripts with optimization help from Paolo Bonzini. Blame Lee
11731
# E. McMahon (1931-1989) for sed's syntax. :-)
11743
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11746
' >$as_me.lineno &&
11747
chmod +x "$as_me.lineno" ||
11748
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11749
{ (exit 1); exit 1; }; }
11751
# Don't try to exec as it changes $[0], causing all sort of problems
11752
# (the dirname of $[0] is not the place where we might find the
11753
# original and so on. Autoconf is especially sensitive to this).
11754
. "./$as_me.lineno"
11755
# Exit status is that of the last command.
11760
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11766
ECHO_C= ECHO_N= ECHO_T=
11767
case `echo -n x` in
11769
case `echo 'x\c'` in
11770
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
11777
if expr a : '\(a\)' >/dev/null 2>&1 &&
11778
test "X`expr 00001 : '.*\(...\)'`" = X001; then
11784
rm -f conf$$ conf$$.exe conf$$.file
11785
if test -d conf$$.dir; then
11786
rm -f conf$$.dir/conf$$.file
11792
if ln -s conf$$.file conf$$ 2>/dev/null; then
11794
# ... but there are two gotchas:
11795
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11796
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11797
# In both cases, we have to default to `cp -p'.
11798
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11800
elif ln conf$$.file conf$$ 2>/dev/null; then
11805
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11806
rmdir conf$$.dir 2>/dev/null
11808
if mkdir -p . 2>/dev/null; then
11811
test -d ./-p && rmdir ./-p
11815
if test -x / >/dev/null 2>&1; then
11816
as_test_x='test -x'
11818
if ls -dL / >/dev/null 2>&1; then
11825
if test -d "$1"; then
11831
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11832
???[sx]*):;;*)false;;esac;fi
11836
as_executable_p=$as_test_x
11838
# Sed expression to map a string onto a valid CPP name.
11839
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11841
# Sed expression to map a string onto a valid variable name.
11842
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11847
# Save the log message, to keep $[0] and so on meaningful, and to
11848
# report actual input values of CONFIG_FILES etc. instead of their
11849
# values after options handling.
11851
This file was extended by mm3d $as_me 1.3.6, which was
11852
generated by GNU Autoconf 2.61. Invocation command line was
11854
CONFIG_FILES = $CONFIG_FILES
11855
CONFIG_HEADERS = $CONFIG_HEADERS
11856
CONFIG_LINKS = $CONFIG_LINKS
11857
CONFIG_COMMANDS = $CONFIG_COMMANDS
11860
on `(hostname || uname -n) 2>/dev/null | sed 1q`
11865
cat >>$CONFIG_STATUS <<_ACEOF
11866
# Files that config.status was made for.
11867
config_files="$ac_config_files"
11868
config_headers="$ac_config_headers"
11869
config_commands="$ac_config_commands"
11873
cat >>$CONFIG_STATUS <<\_ACEOF
11875
\`$as_me' instantiates files from templates according to the
11876
current configuration.
11878
Usage: $0 [OPTIONS] [FILE]...
11880
-h, --help print this help, then exit
11881
-V, --version print version number and configuration settings, then exit
11882
-q, --quiet do not print progress messages
11883
-d, --debug don't remove temporary files
11884
--recheck update $as_me by reconfiguring in the same conditions
11885
--file=FILE[:TEMPLATE]
11886
instantiate the configuration file FILE
11887
--header=FILE[:TEMPLATE]
11888
instantiate the configuration header FILE
11890
Configuration files:
11893
Configuration headers:
11896
Configuration commands:
11899
Report bugs to <bug-autoconf@gnu.org>."
11902
cat >>$CONFIG_STATUS <<_ACEOF
11904
mm3d config.status 1.3.6
11905
configured by $0, generated by GNU Autoconf 2.61,
11906
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11908
Copyright (C) 2006 Free Software Foundation, Inc.
11909
This config.status script is free software; the Free Software Foundation
11910
gives unlimited permission to copy, distribute and modify it."
11917
cat >>$CONFIG_STATUS <<\_ACEOF
11918
# If no file are specified by the user, then we need to provide default
11919
# value. By we need to know if files were specified by the user.
11925
ac_option=`expr "X$1" : 'X\([^=]*\)='`
11926
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11937
# Handling of the options.
4110
11938
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4111
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4112
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4113
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4114
echo "$CONFIG_STATUS generated by autoconf version 2.13"
4116
-help | --help | --hel | --he | --h)
4117
echo "\$ac_cs_usage"; exit 0 ;;
4118
*) echo "\$ac_cs_usage"; exit 1 ;;
4122
ac_given_srcdir=$srcdir
4123
ac_given_INSTALL="$INSTALL"
4125
trap 'rm -fr `echo " Makefile
4127
src/libmm3d/Makefile
4128
src/mm3dcore/Makefile
4133
src/commands/Makefile
4139
doc/html/olh_images/Makefile
4140
doc/html/olh_images/tools/Makefile
4141
config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4143
cat >> $CONFIG_STATUS <<EOF
4145
# Protect against being on the right side of a sed subst in config.status.
4146
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4147
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11940
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11941
echo "$ac_cs_version"; exit ;;
11942
--debug | --debu | --deb | --de | --d | -d )
11944
--file | --fil | --fi | --f )
11946
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11947
ac_need_defaults=false;;
11948
--header | --heade | --head | --hea )
11950
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11951
ac_need_defaults=false;;
11953
# Conflict between --help and --header
11954
{ echo "$as_me: error: ambiguous option: $1
11955
Try \`$0 --help' for more information." >&2
11956
{ (exit 1); exit 1; }; };;
11957
--help | --hel | -h )
11958
echo "$ac_cs_usage"; exit ;;
11959
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
11960
| -silent | --silent | --silen | --sile | --sil | --si | --s)
11963
# This is an error.
11964
-*) { echo "$as_me: error: unrecognized option: $1
11965
Try \`$0 --help' for more information." >&2
11966
{ (exit 1); exit 1; }; } ;;
11968
*) ac_config_targets="$ac_config_targets $1"
11969
ac_need_defaults=false ;;
11975
ac_configure_extra_args=
11977
if $ac_cs_silent; then
11979
ac_configure_extra_args="$ac_configure_extra_args --silent"
11983
cat >>$CONFIG_STATUS <<_ACEOF
11984
if \$ac_cs_recheck; then
11985
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11986
CONFIG_SHELL=$SHELL
11987
export CONFIG_SHELL
11988
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11992
cat >>$CONFIG_STATUS <<\_ACEOF
11996
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11997
## Running $as_me. ##
12003
cat >>$CONFIG_STATUS <<_ACEOF
12007
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12011
cat >>$CONFIG_STATUS <<\_ACEOF
12013
# Handling of arguments.
12014
for ac_config_target in $ac_config_targets
12016
case $ac_config_target in
12017
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12018
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12019
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12020
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12021
"src/libmm3d/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmm3d/Makefile" ;;
12022
"src/mm3dcore/Makefile") CONFIG_FILES="$CONFIG_FILES src/mm3dcore/Makefile" ;;
12023
"src/depui/Makefile") CONFIG_FILES="$CONFIG_FILES src/depui/Makefile" ;;
12024
"src/qtui/Makefile") CONFIG_FILES="$CONFIG_FILES src/qtui/Makefile" ;;
12025
"src/implui/Makefile") CONFIG_FILES="$CONFIG_FILES src/implui/Makefile" ;;
12026
"src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
12027
"src/commands/Makefile") CONFIG_FILES="$CONFIG_FILES src/commands/Makefile" ;;
12028
"src/pixmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmap/Makefile" ;;
12029
"plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
12030
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12031
"i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
12032
"desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
12033
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12034
"doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
12035
"doc/html/olh_images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/olh_images/Makefile" ;;
12036
"doc/html/olh_images/tools/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/olh_images/tools/Makefile" ;;
12038
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12039
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12040
{ (exit 1); exit 1; }; };;
12045
# If the user did not use the arguments to specify the items to instantiate,
12046
# then the envvar interface is used. Set only those that are not.
12047
# We use the long form for the default assignment because of an extremely
12048
# bizarre bug on SunOS 4.1.3.
12049
if $ac_need_defaults; then
12050
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12051
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12052
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12055
# Have a temporary directory for convenience. Make it in the build tree
12056
# simply because there is no reason against having it here, and in addition,
12057
# creating and moving files from /tmp can sometimes cause problems.
12058
# Hook for its removal unless debugging.
12059
# Note that there is a small window in which the directory will not be cleaned:
12060
# after its creation but before its name has been assigned to `$tmp'.
12064
trap 'exit_status=$?
12065
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12067
trap '{ (exit 1); exit 1; }' 1 2 13 15
12069
# Create a (secure) tmp directory for tmp files.
12072
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12073
test -n "$tmp" && test -d "$tmp"
12076
tmp=./conf$$-$RANDOM
12077
(umask 077 && mkdir "$tmp")
12080
echo "$me: cannot create a temporary directory in ." >&2
12081
{ (exit 1); exit 1; }
12085
# Set up the sed scripts for CONFIG_FILES section.
12088
# No need to generate the scripts if there are no CONFIG_FILES.
12089
# This happens for instance when ./config.status config.h
12090
if test -n "$CONFIG_FILES"; then
12097
for ac_last_try in false false false false false :; do
12098
cat >conf$$subs.sed <<_ACEOF
12099
SHELL!$SHELL$ac_delim
12100
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12101
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12102
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12103
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12104
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12105
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12106
exec_prefix!$exec_prefix$ac_delim
12107
prefix!$prefix$ac_delim
12108
program_transform_name!$program_transform_name$ac_delim
12109
bindir!$bindir$ac_delim
12110
sbindir!$sbindir$ac_delim
12111
libexecdir!$libexecdir$ac_delim
12112
datarootdir!$datarootdir$ac_delim
12113
datadir!$datadir$ac_delim
12114
sysconfdir!$sysconfdir$ac_delim
12115
sharedstatedir!$sharedstatedir$ac_delim
12116
localstatedir!$localstatedir$ac_delim
12117
includedir!$includedir$ac_delim
12118
oldincludedir!$oldincludedir$ac_delim
12119
docdir!$docdir$ac_delim
12120
infodir!$infodir$ac_delim
12121
htmldir!$htmldir$ac_delim
12122
dvidir!$dvidir$ac_delim
12123
pdfdir!$pdfdir$ac_delim
12124
psdir!$psdir$ac_delim
12125
libdir!$libdir$ac_delim
12126
localedir!$localedir$ac_delim
12127
mandir!$mandir$ac_delim
12128
DEFS!$DEFS$ac_delim
12129
ECHO_C!$ECHO_C$ac_delim
12130
ECHO_N!$ECHO_N$ac_delim
12131
ECHO_T!$ECHO_T$ac_delim
12132
LIBS!$LIBS$ac_delim
12133
build_alias!$build_alias$ac_delim
12134
host_alias!$host_alias$ac_delim
12135
target_alias!$target_alias$ac_delim
12136
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12137
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12138
INSTALL_DATA!$INSTALL_DATA$ac_delim
12139
CYGPATH_W!$CYGPATH_W$ac_delim
12140
PACKAGE!$PACKAGE$ac_delim
12141
VERSION!$VERSION$ac_delim
12142
ACLOCAL!$ACLOCAL$ac_delim
12143
AUTOCONF!$AUTOCONF$ac_delim
12144
AUTOMAKE!$AUTOMAKE$ac_delim
12145
AUTOHEADER!$AUTOHEADER$ac_delim
12146
MAKEINFO!$MAKEINFO$ac_delim
12147
install_sh!$install_sh$ac_delim
12148
STRIP!$STRIP$ac_delim
12149
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12150
mkdir_p!$mkdir_p$ac_delim
12152
SET_MAKE!$SET_MAKE$ac_delim
12153
am__leading_dot!$am__leading_dot$ac_delim
12154
AMTAR!$AMTAR$ac_delim
12155
am__tar!$am__tar$ac_delim
12156
am__untar!$am__untar$ac_delim
12158
CXXFLAGS!$CXXFLAGS$ac_delim
12159
LDFLAGS!$LDFLAGS$ac_delim
12160
CPPFLAGS!$CPPFLAGS$ac_delim
12161
ac_ct_CXX!$ac_ct_CXX$ac_delim
12162
EXEEXT!$EXEEXT$ac_delim
12163
OBJEXT!$OBJEXT$ac_delim
12164
DEPDIR!$DEPDIR$ac_delim
12165
am__include!$am__include$ac_delim
12166
am__quote!$am__quote$ac_delim
12167
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12168
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12169
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12170
CXXDEPMODE!$CXXDEPMODE$ac_delim
12171
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
12172
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
12174
CFLAGS!$CFLAGS$ac_delim
12175
ac_ct_CC!$ac_ct_CC$ac_delim
12176
CCDEPMODE!$CCDEPMODE$ac_delim
12177
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12178
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12179
RANLIB!$RANLIB$ac_delim
12181
GREP!$GREP$ac_delim
12182
EGREP!$EGREP$ac_delim
12183
LIBOBJS!$LIBOBJS$ac_delim
12184
LUA_CCFLAGS!$LUA_CCFLAGS$ac_delim
12185
LUA_DIR!$LUA_DIR$ac_delim
12186
LUA_LIBS!$LUA_LIBS$ac_delim
12187
LUALIB_CCFLAGS!$LUALIB_CCFLAGS$ac_delim
12188
LUALIB_DIR!$LUALIB_DIR$ac_delim
12189
LUALIB_LIBS!$LUALIB_LIBS$ac_delim
12190
DLOPEN_LIBS!$DLOPEN_LIBS$ac_delim
12191
XMKMF!$XMKMF$ac_delim
12192
X_CFLAGS!$X_CFLAGS$ac_delim
12193
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12194
X_LIBS!$X_LIBS$ac_delim
12195
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12198
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12200
elif $ac_last_try; then
12201
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12202
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12203
{ (exit 1); exit 1; }; }
12205
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12209
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12210
if test -n "$ac_eof"; then
12211
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12212
ac_eof=`expr $ac_eof + 1`
12215
cat >>$CONFIG_STATUS <<_ACEOF
12216
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12217
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12220
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12221
s/^/s,@/; s/!/@,|#_!!_#|/
12224
s/'"$ac_delim"'$/,g/; t
12226
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12227
' >>$CONFIG_STATUS <conf$$subs.sed
12228
rm -f conf$$subs.sed
12229
cat >>$CONFIG_STATUS <<_ACEOF
12235
for ac_last_try in false false false false false :; do
12236
cat >conf$$subs.sed <<_ACEOF
12237
GL_CFLAGS!$GL_CFLAGS$ac_delim
12238
GL_LIBS!$GL_LIBS$ac_delim
12239
HAVE_QT4!$HAVE_QT4$ac_delim
12240
QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
12241
QT_DIR!$QT_DIR$ac_delim
12242
QT_LIBS!$QT_LIBS$ac_delim
12243
QT_UIC!$QT_UIC$ac_delim
12244
QT_MOC!$QT_MOC$ac_delim
12245
QGL_LIBS!$QGL_LIBS$ac_delim
12246
DLOPEN_LIBS!$DLOPEN_LIBS$ac_delim
12247
BYTEORDER!$BYTEORDER$ac_delim
12248
LTLIBOBJS!$LTLIBOBJS$ac_delim
12251
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
12253
elif $ac_last_try; then
12254
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12255
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12256
{ (exit 1); exit 1; }; }
12258
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12262
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12263
if test -n "$ac_eof"; then
12264
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12265
ac_eof=`expr $ac_eof + 1`
12268
cat >>$CONFIG_STATUS <<_ACEOF
12269
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12270
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12273
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12274
s/^/s,@/; s/!/@,|#_!!_#|/
12277
s/'"$ac_delim"'$/,g/; t
12279
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12280
' >>$CONFIG_STATUS <conf$$subs.sed
12281
rm -f conf$$subs.sed
12282
cat >>$CONFIG_STATUS <<_ACEOF
12289
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12290
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12291
# trailing colons and then remove the whole line if VPATH becomes empty
12292
# (actually we leave an empty line to preserve line numbers).
12293
if test "x$srcdir" = x.; then
12294
ac_vpsub='/^[ ]*VPATH[ ]*=/{
12295
s/:*\$(srcdir):*/:/
12296
s/:*\${srcdir}:*/:/
12298
s/^\([^=]*=[ ]*\):*/\1/
12304
cat >>$CONFIG_STATUS <<\_ACEOF
12305
fi # test -n "$CONFIG_FILES"
12308
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12311
:[FHLC]) ac_mode=$ac_tag; continue;;
12313
case $ac_mode$ac_tag in
12315
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12316
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12317
{ (exit 1); exit 1; }; };;
12318
:[FH]-) ac_tag=-:-;;
12319
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12336
-) ac_f="$tmp/stdin";;
12337
*) # Look for the file first in the build tree, then in the source tree
12338
# (if the path is not absolute). The absolute path cannot be DOS-style,
12339
# because $ac_f cannot contain `:'.
12343
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12345
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12346
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12347
{ (exit 1); exit 1; }; };;
12349
ac_file_inputs="$ac_file_inputs $ac_f"
12352
# Let's still pretend it is `configure' which instantiates (i.e., don't
12353
# use $as_me), people would be surprised to read:
12354
# /* config.h. Generated by config.status. */
12355
configure_input="Generated from "`IFS=:
12356
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12357
if test x"$ac_file" != x-; then
12358
configure_input="$ac_file. $configure_input"
12359
{ echo "$as_me:$LINENO: creating $ac_file" >&5
12360
echo "$as_me: creating $ac_file" >&6;}
12364
*:-:* | *:-) cat >"$tmp/stdin";;
12369
ac_dir=`$as_dirname -- "$ac_file" ||
12370
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12371
X"$ac_file" : 'X\(//\)[^/]' \| \
12372
X"$ac_file" : 'X\(//\)$' \| \
12373
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12375
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12379
/^X\(\/\/\)[^/].*/{
12394
-*) as_dir=./$as_dir;;
12396
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12400
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12401
*) as_qdir=$as_dir;;
12403
as_dirs="'$as_qdir' $as_dirs"
12404
as_dir=`$as_dirname -- "$as_dir" ||
12405
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406
X"$as_dir" : 'X\(//\)[^/]' \| \
12407
X"$as_dir" : 'X\(//\)$' \| \
12408
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12410
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12414
/^X\(\/\/\)[^/].*/{
12427
test -d "$as_dir" && break
12429
test -z "$as_dirs" || eval "mkdir $as_dirs"
12430
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12431
echo "$as_me: error: cannot create directory $as_dir" >&2;}
12432
{ (exit 1); exit 1; }; }; }
12436
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12438
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12439
# A ".." for each directory in $ac_dir_suffix.
12440
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12441
case $ac_top_builddir_sub in
12442
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12443
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12446
ac_abs_top_builddir=$ac_pwd
12447
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12448
# for backward compatibility:
12449
ac_top_builddir=$ac_top_build_prefix
12452
.) # We are building in place.
12454
ac_top_srcdir=$ac_top_builddir_sub
12455
ac_abs_top_srcdir=$ac_pwd ;;
12456
[\\/]* | ?:[\\/]* ) # Absolute name.
12457
ac_srcdir=$srcdir$ac_dir_suffix;
12458
ac_top_srcdir=$srcdir
12459
ac_abs_top_srcdir=$srcdir ;;
12460
*) # Relative name.
12461
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12462
ac_top_srcdir=$ac_top_build_prefix$srcdir
12463
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12465
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12475
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12476
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12480
cat >>$CONFIG_STATUS <<\_ACEOF
12481
# If the template does not know about datarootdir, expand it.
12482
# FIXME: This hack should be removed a few years after 2.60.
12483
ac_datarootdir_hack=; ac_datarootdir_seen=
12485
case `sed -n '/datarootdir/ {
12494
' $ac_file_inputs` in
12495
*datarootdir*) ac_datarootdir_seen=yes;;
12496
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12497
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12498
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12500
cat >>$CONFIG_STATUS <<_ACEOF
12501
ac_datarootdir_hack='
12502
s&@datadir@&$datadir&g
12503
s&@docdir@&$docdir&g
12504
s&@infodir@&$infodir&g
12505
s&@localedir@&$localedir&g
12506
s&@mandir@&$mandir&g
12507
s&\\\${datarootdir}&$datarootdir&g' ;;
12511
# Neutralize VPATH when `$srcdir' = `.'.
12512
# Shell code in configure.ac might set extrasub.
12513
# FIXME: do we really want to maintain this feature?
12514
cat >>$CONFIG_STATUS <<_ACEOF
4151
s%@CFLAGS@%$CFLAGS%g
4152
s%@CPPFLAGS@%$CPPFLAGS%g
4153
s%@CXXFLAGS@%$CXXFLAGS%g
4154
s%@FFLAGS@%$FFLAGS%g
4156
s%@LDFLAGS@%$LDFLAGS%g
4158
s%@exec_prefix@%$exec_prefix%g
4159
s%@prefix@%$prefix%g
4160
s%@program_transform_name@%$program_transform_name%g
4161
s%@bindir@%$bindir%g
4162
s%@sbindir@%$sbindir%g
4163
s%@libexecdir@%$libexecdir%g
4164
s%@datadir@%$datadir%g
4165
s%@sysconfdir@%$sysconfdir%g
4166
s%@sharedstatedir@%$sharedstatedir%g
4167
s%@localstatedir@%$localstatedir%g
4168
s%@libdir@%$libdir%g
4169
s%@includedir@%$includedir%g
4170
s%@oldincludedir@%$oldincludedir%g
4171
s%@infodir@%$infodir%g
4172
s%@mandir@%$mandir%g
4173
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4174
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4175
s%@INSTALL_DATA@%$INSTALL_DATA%g
4176
s%@PACKAGE@%$PACKAGE%g
4177
s%@VERSION@%$VERSION%g
4178
s%@ACLOCAL@%$ACLOCAL%g
4179
s%@AUTOCONF@%$AUTOCONF%g
4180
s%@AUTOMAKE@%$AUTOMAKE%g
4181
s%@AUTOHEADER@%$AUTOHEADER%g
4182
s%@MAKEINFO@%$MAKEINFO%g
4183
s%@SET_MAKE@%$SET_MAKE%g
4186
s%@RANLIB@%$RANLIB%g
4187
s%@LUA_CCFLAGS@%$LUA_CCFLAGS%g
4188
s%@LUA_DIR@%$LUA_DIR%g
4189
s%@LUA_LIBS@%$LUA_LIBS%g
4190
s%@LUALIB_CCFLAGS@%$LUALIB_CCFLAGS%g
4191
s%@LUALIB_DIR@%$LUALIB_DIR%g
4192
s%@LUALIB_LIBS@%$LUALIB_LIBS%g
4193
s%@DLOPEN_LIBS @%$DLOPEN_LIBS %g
4195
s%@X_CFLAGS@%$X_CFLAGS%g
4196
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4197
s%@X_LIBS@%$X_LIBS%g
4198
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4199
s%@GL_CFLAGS@%$GL_CFLAGS%g
4200
s%@GL_LIBS@%$GL_LIBS%g
4201
s%@HAVE_QT4@%$HAVE_QT4%g
4202
s%@QT_CXXFLAGS@%$QT_CXXFLAGS%g
4203
s%@QT_DIR@%$QT_DIR%g
4204
s%@QT_LIBS@%$QT_LIBS%g
4205
s%@QT_UIC@%$QT_UIC%g
4206
s%@QT_MOC@%$QT_MOC%g
4207
s%@QGL_LIBS@%$QGL_LIBS%g
4208
s%@DLOPEN_LIBS@%$DLOPEN_LIBS%g
4209
s%@BYTEORDER@%$BYTEORDER%g
4214
cat >> $CONFIG_STATUS <<\EOF
4216
# Split the substitutions into bite-sized pieces for seds with
4217
# small command number limits, like on Digital OSF/1 and HP-UX.
4218
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4219
ac_file=1 # Number of current file.
4220
ac_beg=1 # First line for current file.
4221
ac_end=$ac_max_sed_cmds # Line after last line for current file.
4224
while $ac_more_lines; do
4225
if test $ac_beg -gt 1; then
4226
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4228
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4230
if test ! -s conftest.s$ac_file; then
4232
rm -f conftest.s$ac_file
4234
if test -z "$ac_sed_cmds"; then
4235
ac_sed_cmds="sed -f conftest.s$ac_file"
4237
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4239
ac_file=`expr $ac_file + 1`
4241
ac_end=`expr $ac_end + $ac_max_sed_cmds`
4244
if test -z "$ac_sed_cmds"; then
4249
cat >> $CONFIG_STATUS <<EOF
4251
CONFIG_FILES=\${CONFIG_FILES-"Makefile
4253
src/libmm3d/Makefile
4254
src/mm3dcore/Makefile
4259
src/commands/Makefile
4265
doc/html/olh_images/Makefile
4266
doc/html/olh_images/tools/Makefile
4269
cat >> $CONFIG_STATUS <<\EOF
4270
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4271
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4273
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4274
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4275
*) ac_file_in="${ac_file}.in" ;;
4278
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4280
# Remove last slash and all that follows it. Not all systems have dirname.
4281
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4282
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4283
# The file is in a subdirectory.
4284
test ! -d "$ac_dir" && mkdir "$ac_dir"
4285
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4286
# A "../" for each directory in $ac_dir_suffix.
4287
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4289
ac_dir_suffix= ac_dots=
4292
case "$ac_given_srcdir" in
4294
if test -z "$ac_dots"; then top_srcdir=.
4295
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4296
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4298
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4299
top_srcdir="$ac_dots$ac_given_srcdir" ;;
4302
case "$ac_given_INSTALL" in
4303
[/$]*) INSTALL="$ac_given_INSTALL" ;;
4304
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4307
echo creating "$ac_file"
4309
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4311
*Makefile*) ac_comsub="1i\\
4312
# $configure_input" ;;
4316
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4318
s%@configure_input@%$configure_input%g
4319
s%@srcdir@%$srcdir%g
4320
s%@top_srcdir@%$top_srcdir%g
4321
s%@INSTALL@%$INSTALL%g
4322
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4326
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4327
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4329
# ac_d sets the value in "#define NAME VALUE" lines.
4330
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4331
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4334
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4335
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4336
ac_uB='\([ ]\)%\1#\2define\3'
4339
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4340
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4341
ac_eB='$%\1#\2define\3'
4345
if test "${CONFIG_HEADERS+set}" != set; then
4347
cat >> $CONFIG_STATUS <<EOF
4348
CONFIG_HEADERS="config.h:config.h.in"
4350
cat >> $CONFIG_STATUS <<\EOF
4352
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4353
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4355
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4356
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4357
*) ac_file_in="${ac_file}.in" ;;
4360
echo creating $ac_file
4362
rm -f conftest.frag conftest.in conftest.out
4363
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4364
cat $ac_file_inputs > conftest.in
4368
# Transform confdefs.h into a sed script conftest.vals that substitutes
4369
# the proper values into config.h.in to produce config.h. And first:
4370
# Protect against being on the right side of a sed subst in config.status.
4371
# Protect against being in an unquoted here document in config.status.
4373
cat > conftest.hdr <<\EOF
4376
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4380
sed -n -f conftest.hdr confdefs.h > conftest.vals
4383
# This sed command replaces #undef with comments. This is necessary, for
12518
cat >>$CONFIG_STATUS <<\_ACEOF
12520
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12521
s&@configure_input@&$configure_input&;t t
12522
s&@top_builddir@&$ac_top_builddir_sub&;t t
12523
s&@srcdir@&$ac_srcdir&;t t
12524
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12525
s&@top_srcdir@&$ac_top_srcdir&;t t
12526
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12527
s&@builddir@&$ac_builddir&;t t
12528
s&@abs_builddir@&$ac_abs_builddir&;t t
12529
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12530
s&@INSTALL@&$ac_INSTALL&;t t
12531
$ac_datarootdir_hack
12532
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12534
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12535
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12536
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12537
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12538
which seems to be undefined. Please make sure it is defined." >&5
12539
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12540
which seems to be undefined. Please make sure it is defined." >&2;}
12544
-) cat "$tmp/out"; rm -f "$tmp/out";;
12545
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12554
# Transform confdefs.h into a sed script `conftest.defines', that
12555
# substitutes the proper values into config.h.in to produce config.h.
12556
rm -f conftest.defines conftest.tail
12557
# First, append a space to every undef/define line, to ease matching.
12558
echo 's/$/ /' >conftest.defines
12559
# Then, protect against being on the right side of a sed subst, or in
12560
# an unquoted here document, in config.status. If some macros were
12561
# called several times there might be several #defines for the same
12562
# symbol, which is useless. But do not sort them, since the last
12563
# AC_DEFINE must be honored.
12564
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12565
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12566
# NAME is the cpp macro being defined, VALUE is the value it is being given.
12567
# PARAMS is the parameter list in the macro definition--in most cases, it's
12568
# just an empty string.
12569
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12570
ac_dB='\\)[ (].*,\\1define\\2'
12578
s/^[ ]*#[ ]*define[ ][ ]*//
12583
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12584
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12585
' >>conftest.defines
12587
# Remove the space that was appended to ease matching.
12588
# Then replace #undef with comments. This is necessary, for
4384
12589
# example, in the case of _POSIX_SOURCE, which is predefined and required
4385
12590
# on some systems where configure will not decide to define it.
4386
cat >> conftest.vals <<\EOF
4387
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4390
# Break up conftest.vals because some shells have a limit on
4391
# the size of here documents, and old seds have small limits too.
12591
# (The regexp can be short, since the line contains either #define or #undef.)
12593
s,^[ #]*u.*,/* & */,' >>conftest.defines
12595
# Break up conftest.defines:
12596
ac_max_sed_lines=50
12598
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12599
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12600
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12602
ac_in='$ac_file_inputs'
12603
ac_out='"$tmp/out1"'
12604
ac_nxt='"$tmp/out2"'
4396
ac_lines=`grep -c . conftest.vals`
4397
# grep -c gives empty output for an empty file on some AIX systems.
4398
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4399
# Write a limited-size here document to conftest.frag.
4400
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4401
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12608
# Write a here document:
12609
cat >>$CONFIG_STATUS <<_ACEOF
12610
# First, check the format of the line:
12611
cat >"\$tmp/defines.sed" <<\\CEOF
12612
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12613
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12617
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4403
sed -f conftest.frag conftest.in > conftest.out
4405
mv conftest.out conftest.in
4407
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4409
mv conftest.tail conftest.vals
12619
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12620
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12621
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12622
grep . conftest.tail >/dev/null || break
12623
rm -f conftest.defines
12624
mv conftest.tail conftest.defines
12626
rm -f conftest.defines conftest.tail
4413
cat >> $CONFIG_STATUS <<\EOF
4414
rm -f conftest.frag conftest.h
4415
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4416
cat conftest.in >> conftest.h
4418
if cmp -s $ac_file conftest.h 2>/dev/null; then
4419
echo "$ac_file is unchanged"
4422
# Remove last slash and all that follows it. Not all systems have dirname.
4423
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4424
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4425
# The file is in a subdirectory.
4426
test ! -d "$ac_dir" && mkdir "$ac_dir"
12628
echo "ac_result=$ac_in" >>$CONFIG_STATUS
12629
cat >>$CONFIG_STATUS <<\_ACEOF
12630
if test x"$ac_file" != x-; then
12631
echo "/* $configure_input */" >"$tmp/config.h"
12632
cat "$ac_result" >>"$tmp/config.h"
12633
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12634
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12635
echo "$as_me: $ac_file is unchanged" >&6;}
12638
mv "$tmp/config.h" $ac_file
4429
mv conftest.h $ac_file
4434
cat >> $CONFIG_STATUS <<EOF
4438
cat >> $CONFIG_STATUS <<\EOF
4439
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
12641
echo "/* $configure_input */"
12645
# Compute $ac_file's index in $config_headers.
12647
for _am_header in $config_headers :; do
12648
case $_am_header in
12649
$ac_file | $ac_file:* )
12652
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
12655
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12656
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12657
X$ac_file : 'X\(//\)[^/]' \| \
12658
X$ac_file : 'X\(//\)$' \| \
12659
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12661
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12665
/^X\(\/\/\)[^/].*/{
12677
s/.*/./; q'`/stamp-h$_am_stamp_count
12680
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12681
echo "$as_me: executing $ac_file commands" >&6;}
12686
case $ac_file$ac_mode in
12687
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12688
# Strip MF so we end up with the name of the file.
12689
mf=`echo "$mf" | sed -e 's/:.*$//'`
12690
# Check whether this is an Automake generated Makefile or not.
12691
# We used to match only the files named `Makefile.in', but
12692
# some people rename them; so instead we look at the file content.
12693
# Grep'ing the first line is not enough: some people post-process
12694
# each Makefile.in and add a new line on top of each file to say so.
12695
# So let's grep whole file.
12696
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12697
dirpart=`$as_dirname -- "$mf" ||
12698
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12699
X"$mf" : 'X\(//\)[^/]' \| \
12700
X"$mf" : 'X\(//\)$' \| \
12701
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12703
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12707
/^X\(\/\/\)[^/].*/{
12723
# Extract the definition of DEPDIR, am__include, and am__quote
12724
# from the Makefile without running `make'.
12725
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12726
test -z "$DEPDIR" && continue
12727
am__include=`sed -n 's/^am__include = //p' < "$mf"`
12728
test -z "am__include" && continue
12729
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12730
# When using ansi2knr, U may be empty or an underscore; expand it
12731
U=`sed -n 's/^U = //p' < "$mf"`
12732
# Find all dependency output files, they are included files with
12733
# $(DEPDIR) in their names. We invoke sed twice because it is the
12734
# simplest approach to changing $(DEPDIR) to its actual value in the
12736
for file in `sed -n "
12737
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12738
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12739
# Make sure the directory exists.
12740
test -f "$dirpart/$file" && continue
12741
fdir=`$as_dirname -- "$file" ||
12742
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12743
X"$file" : 'X\(//\)[^/]' \| \
12744
X"$file" : 'X\(//\)$' \| \
12745
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12747
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12751
/^X\(\/\/\)[^/].*/{
12764
{ as_dir=$dirpart/$fdir
12766
-*) as_dir=./$as_dir;;
12768
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12772
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12773
*) as_qdir=$as_dir;;
12775
as_dirs="'$as_qdir' $as_dirs"
12776
as_dir=`$as_dirname -- "$as_dir" ||
12777
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12778
X"$as_dir" : 'X\(//\)[^/]' \| \
12779
X"$as_dir" : 'X\(//\)$' \| \
12780
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12782
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12786
/^X\(\/\/\)[^/].*/{
12799
test -d "$as_dir" && break
12801
test -z "$as_dirs" || eval "mkdir $as_dirs"
12802
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12803
echo "$as_me: error: cannot create directory $as_dir" >&2;}
12804
{ (exit 1); exit 1; }; }; }
12805
# echo "creating $dirpart/$file"
12806
echo '# dummy' > "$dirpart/$file"
12815
{ (exit 0); exit 0; }
4443
12817
chmod +x $CONFIG_STATUS
4444
rm -fr confdefs* $ac_clean_files
4445
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12818
ac_clean_files=$ac_clean_files_save
12821
# configure is writing to config.log, and then calls config.status.
12822
# config.status does its own redirection, appending to config.log.
12823
# Unfortunately, on DOS this fails, as config.log is still kept open
12824
# by configure, so config.status won't be able to write to it; its
12825
# output is simply discarded. So we exec the FD to /dev/null,
12826
# effectively closing config.log, so it can be properly (re)opened and
12827
# appended to by config.status. When coming back to configure, we
12828
# need to make the FD available again.
12829
if test "$no_create" != yes; then
12831
ac_config_status_args=
12832
test "$silent" = yes &&
12833
ac_config_status_args="$ac_config_status_args --quiet"
12835
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12837
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
12838
# would make configure fail if this is the last instruction.
12839
$ac_cs_success || { (exit 1); exit 1; }
4448
12843
if test x"${have_dlopen}" != xyes; then