1933
1934
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936
} # ac_fn_cxx_check_func
1938
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1939
# ---------------------------------------------
1940
# Tests whether TYPE exists after having included INCLUDES, setting cache
1941
# variable VAR accordingly.
1942
ac_fn_cxx_check_type ()
1944
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946
$as_echo_n "checking for $2... " >&6; }
1947
if eval \${$3+:} false; then :
1948
$as_echo_n "(cached) " >&6
1951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952
/* end confdefs.h. */
1963
if ac_fn_cxx_try_compile "$LINENO"; then :
1964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965
/* end confdefs.h. */
1976
if ac_fn_cxx_try_compile "$LINENO"; then :
1981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987
$as_echo "$ac_res" >&6; }
1988
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
} # ac_fn_cxx_check_type
1992
# ac_fn_c_find_intX_t LINENO BITS VAR
1993
# -----------------------------------
1994
# Finds a signed integer type with width BITS, setting cache variable VAR
1996
ac_fn_c_find_intX_t ()
1998
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2000
$as_echo_n "checking for int$2_t... " >&6; }
2001
if eval \${$3+:} false; then :
2002
$as_echo_n "(cached) " >&6
2005
# Order is important - never check a type that is potentially smaller
2006
# than half of the expected target width.
2007
for ac_type in int$2_t 'int' 'long int' \
2008
'long long int' 'short int' 'signed char'; do
2009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010
/* end confdefs.h. */
2011
$ac_includes_default
2012
enum { N = $2 / 2 - 1 };
2016
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2018
return test_array [0];
2024
if ac_fn_cxx_try_compile "$LINENO"; then :
2025
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026
/* end confdefs.h. */
2027
$ac_includes_default
2028
enum { N = $2 / 2 - 1 };
2032
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2033
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2035
return test_array [0];
2041
if ac_fn_cxx_try_compile "$LINENO"; then :
2048
eval "$3=\$ac_type" ;;
2051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054
if eval test \"x\$"$3"\" = x"no"; then :
2062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063
$as_echo "$ac_res" >&6; }
2064
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
} # ac_fn_c_find_intX_t
2068
# ac_fn_c_find_uintX_t LINENO BITS VAR
2069
# ------------------------------------
2070
# Finds an unsigned integer type with width BITS, setting cache variable VAR
2072
ac_fn_c_find_uintX_t ()
2074
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2076
$as_echo_n "checking for uint$2_t... " >&6; }
2077
if eval \${$3+:} false; then :
2078
$as_echo_n "(cached) " >&6
2081
# Order is important - never check a type that is potentially smaller
2082
# than half of the expected target width.
2083
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2084
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2085
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086
/* end confdefs.h. */
2087
$ac_includes_default
2091
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2093
return test_array [0];
2099
if ac_fn_cxx_try_compile "$LINENO"; then :
2104
eval "$3=\$ac_type" ;;
2107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108
if eval test \"x\$"$3"\" = x"no"; then :
2116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117
$as_echo "$ac_res" >&6; }
2118
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
} # ac_fn_c_find_uintX_t
1936
2121
cat >config.log <<_ACEOF
1937
2122
This file contains any messages produced by compilers while
1938
2123
running configure, to aid debugging if configure makes a mistake.
1940
It was created by ManaPlus $as_me 1.3.9.1, which was
2125
It was created by ManaPlus $as_me 1.3.9.15, which was
1941
2126
generated by GNU Autoconf 2.69. Invocation command line was
4246
if test "x$CC" != xcc; then
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4248
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4251
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4253
set dummy $CC; ac_cc=`$as_echo "$2" |
4254
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4255
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4256
$as_echo_n "(cached) " >&6
4258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259
/* end confdefs.h. */
4269
# Make sure it works both with $CC and with simple cc.
4270
# We do the test twice because some compilers refuse to overwrite an
4271
# existing .o file with -o, though they will create one.
4272
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4274
if { { case "(($ac_try" in
4275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276
*) ac_try_echo=$ac_try;;
4278
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279
$as_echo "$ac_try_echo"; } >&5
4280
(eval "$ac_try") 2>&5
4282
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283
test $ac_status = 0; } &&
4284
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286
*) ac_try_echo=$ac_try;;
4288
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289
$as_echo "$ac_try_echo"; } >&5
4290
(eval "$ac_try") 2>&5
4292
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293
test $ac_status = 0; };
4295
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4296
if test "x$CC" != xcc; then
4297
# Test first that cc exists at all.
4298
if { ac_try='cc -c conftest.$ac_ext >&5'
4299
{ { case "(($ac_try" in
4300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301
*) ac_try_echo=$ac_try;;
4303
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304
$as_echo "$ac_try_echo"; } >&5
4305
(eval "$ac_try") 2>&5
4307
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308
test $ac_status = 0; }; }; then
4309
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4311
if { { case "(($ac_try" in
4312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313
*) ac_try_echo=$ac_try;;
4315
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316
$as_echo "$ac_try_echo"; } >&5
4317
(eval "$ac_try") 2>&5
4319
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320
test $ac_status = 0; } &&
4321
test -f conftest2.$ac_objext && { { case "(($ac_try" in
4322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323
*) ac_try_echo=$ac_try;;
4325
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326
$as_echo "$ac_try_echo"; } >&5
4327
(eval "$ac_try") 2>&5
4329
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330
test $ac_status = 0; };
4335
# cc exists but doesn't like -o.
4336
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4341
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4343
rm -f core conftest*
4346
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348
$as_echo "yes" >&6; }
4350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351
$as_echo "no" >&6; }
4353
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4357
# FIXME: we rely on the cache variable name because
4358
# there is no other way.
4360
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4361
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4362
if test "$am_t" != yes; then
4363
# Losing compiler, so override with the script.
4364
# FIXME: It is wrong to rewrite CC.
4365
# But if we don't then we get into trouble of one sort or another.
4366
# A longer-term fix would be to have automake use am__CC in this case,
4367
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4368
CC="$am_aux_dir/compile $CC"
5278
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5279
if test "x$ac_cv_type_pid_t" = xyes; then :
5283
cat >>confdefs.h <<_ACEOF
5289
for ac_header in vfork.h
5291
ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5292
if test "x$ac_cv_header_vfork_h" = xyes; then :
5293
cat >>confdefs.h <<_ACEOF
5294
#define HAVE_VFORK_H 1
5301
for ac_func in fork vfork
5303
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5304
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5305
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5306
cat >>confdefs.h <<_ACEOF
5307
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5313
if test "x$ac_cv_func_fork" = xyes; then
5314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5315
$as_echo_n "checking for working fork... " >&6; }
5316
if ${ac_cv_func_fork_works+:} false; then :
5317
$as_echo_n "(cached) " >&6
5319
if test "$cross_compiling" = yes; then :
5320
ac_cv_func_fork_works=cross
5322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323
/* end confdefs.h. */
5324
$ac_includes_default
5329
/* By Ruediger Kuhlmann. */
5336
if ac_fn_cxx_try_run "$LINENO"; then :
5337
ac_cv_func_fork_works=yes
5339
ac_cv_func_fork_works=no
5341
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5342
conftest.$ac_objext conftest.beam conftest.$ac_ext
5346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5347
$as_echo "$ac_cv_func_fork_works" >&6; }
5350
ac_cv_func_fork_works=$ac_cv_func_fork
5352
if test "x$ac_cv_func_fork_works" = xcross; then
5354
*-*-amigaos* | *-*-msdosdjgpp*)
5355
# Override, as these systems have only a dummy fork() stub
5356
ac_cv_func_fork_works=no
5359
ac_cv_func_fork_works=yes
5362
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5363
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5365
ac_cv_func_vfork_works=$ac_cv_func_vfork
5366
if test "x$ac_cv_func_vfork" = xyes; then
5367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5368
$as_echo_n "checking for working vfork... " >&6; }
5369
if ${ac_cv_func_vfork_works+:} false; then :
5370
$as_echo_n "(cached) " >&6
5372
if test "$cross_compiling" = yes; then :
5373
ac_cv_func_vfork_works=cross
5375
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376
/* end confdefs.h. */
5377
/* Thanks to Paul Eggert for this test. */
5378
$ac_includes_default
5379
#include <sys/wait.h>
5383
/* On some sparc systems, changes by the child to local and incoming
5384
argument registers are propagated back to the parent. The compiler
5385
is told about this with #include <vfork.h>, but some compilers
5386
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5387
static variable whose address is put into a register that is
5388
clobbered by the vfork. */
5391
sparc_address_test (int arg)
5393
sparc_address_test (arg) int arg;
5414
pid_t parent = getpid ();
5417
sparc_address_test (0);
5422
/* Here is another test for sparc vfork register problems. This
5423
test uses lots of local variables, at least as many local
5424
variables as main has allocated so far including compiler
5425
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5426
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5427
reuse the register of parent for one of the local variables,
5428
since it will think that parent can't possibly be used any more
5429
in this routine. Assigning to the local variable will thus
5430
munge parent in the parent process. */
5432
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5433
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5434
/* Convince the compiler that p..p7 are live; otherwise, it might
5435
use the same hardware register for all 8 local variables. */
5436
if (p != p1 || p != p2 || p != p3 || p != p4
5437
|| p != p5 || p != p6 || p != p7)
5440
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5441
from child file descriptors. If the child closes a descriptor
5442
before it execs or exits, this munges the parent's descriptor
5443
as well. Test for this by closing stdout in the child. */
5444
_exit(close(fileno(stdout)) != 0);
5449
while (wait(&status) != child)
5452
/* Was there some problem with vforking? */
5455
/* Did the child fail? (This shouldn't happen.) */
5458
/* Did the vfork/compiler bug occur? */
5459
|| parent != getpid()
5461
/* Did the file descriptor bug occur? */
5462
|| fstat(fileno(stdout), &st) != 0
5467
if ac_fn_cxx_try_run "$LINENO"; then :
5468
ac_cv_func_vfork_works=yes
5470
ac_cv_func_vfork_works=no
5472
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5473
conftest.$ac_objext conftest.beam conftest.$ac_ext
5477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5478
$as_echo "$ac_cv_func_vfork_works" >&6; }
5481
if test "x$ac_cv_func_fork_works" = xcross; then
5482
ac_cv_func_vfork_works=$ac_cv_func_vfork
5483
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5484
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5487
if test "x$ac_cv_func_vfork_works" = xyes; then
5489
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5493
$as_echo "#define vfork fork" >>confdefs.h
5496
if test "x$ac_cv_func_fork_works" = xyes; then
5498
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5505
for ac_header in $ac_header_list
5507
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5508
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5510
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5511
cat >>confdefs.h <<_ACEOF
5512
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526
for ac_func in getpagesize
5528
ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5529
if test "x$ac_cv_func_getpagesize" = xyes; then :
5530
cat >>confdefs.h <<_ACEOF
5531
#define HAVE_GETPAGESIZE 1
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5538
$as_echo_n "checking for working mmap... " >&6; }
5539
if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5540
$as_echo_n "(cached) " >&6
5542
if test "$cross_compiling" = yes; then :
5543
ac_cv_func_mmap_fixed_mapped=no
5545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546
/* end confdefs.h. */
5547
$ac_includes_default
5548
/* malloc might have been renamed as rpl_malloc. */
5551
/* Thanks to Mike Haertel and Jim Avera for this test.
5552
Here is a matrix of mmap possibilities:
5553
mmap private not fixed
5554
mmap private fixed at somewhere currently unmapped
5555
mmap private fixed at somewhere already mapped
5556
mmap shared not fixed
5557
mmap shared fixed at somewhere currently unmapped
5558
mmap shared fixed at somewhere already mapped
5559
For private mappings, we should verify that changes cannot be read()
5560
back from the file, nor mmap's back from the file at a different
5561
address. (There have been systems where private was not correctly
5562
implemented like the infamous i386 svr4.0, and systems where the
5563
VM page cache was not coherent with the file system buffer cache
5564
like early versions of FreeBSD and possibly contemporary NetBSD.)
5565
For shared mappings, we should conversely verify that changes get
5566
propagated back to all the places they're supposed to be.
5568
Grep wants private fixed already mapped.
5569
The main things grep needs to know about mmap are:
5570
* does it exist and is it safe to write into the mmap'd area
5571
* how to use it (BSD variants) */
5574
#include <sys/mman.h>
5576
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5580
/* This mess was copied from the GNU getpagesize.h. */
5581
#ifndef HAVE_GETPAGESIZE
5582
# ifdef _SC_PAGESIZE
5583
# define getpagesize() sysconf(_SC_PAGESIZE)
5584
# else /* no _SC_PAGESIZE */
5585
# ifdef HAVE_SYS_PARAM_H
5586
# include <sys/param.h>
5587
# ifdef EXEC_PAGESIZE
5588
# define getpagesize() EXEC_PAGESIZE
5589
# else /* no EXEC_PAGESIZE */
5591
# define getpagesize() NBPG * CLSIZE
5594
# endif /* no CLSIZE */
5595
# else /* no NBPG */
5597
# define getpagesize() NBPC
5598
# else /* no NBPC */
5600
# define getpagesize() PAGESIZE
5601
# endif /* PAGESIZE */
5602
# endif /* no NBPC */
5603
# endif /* no NBPG */
5604
# endif /* no EXEC_PAGESIZE */
5605
# else /* no HAVE_SYS_PARAM_H */
5606
# define getpagesize() 8192 /* punt totally */
5607
# endif /* no HAVE_SYS_PARAM_H */
5608
# endif /* no _SC_PAGESIZE */
5610
#endif /* no HAVE_GETPAGESIZE */
5615
char *data, *data2, *data3;
5620
pagesize = getpagesize ();
5622
/* First, make a file with some known garbage in it. */
5623
data = (char *) malloc (pagesize);
5626
for (i = 0; i < pagesize; ++i)
5627
*(data + i) = rand ();
5629
fd = creat ("conftest.mmap", 0600);
5632
if (write (fd, data, pagesize) != pagesize)
5636
/* Next, check that the tail of a page is zero-filled. File must have
5637
non-zero length, otherwise we risk SIGBUS for entire page. */
5638
fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5642
if (write (fd2, cdata2, 1) != 1)
5644
data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5645
if (data2 == MAP_FAILED)
5647
for (i = 0; i < pagesize; ++i)
5651
if (munmap (data2, pagesize))
5654
/* Next, try to mmap the file at a fixed address which already has
5655
something else allocated at it. If we can, also make sure that
5656
we see the same garbage. */
5657
fd = open ("conftest.mmap", O_RDWR);
5660
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5661
MAP_PRIVATE | MAP_FIXED, fd, 0L))
5663
for (i = 0; i < pagesize; ++i)
5664
if (*(data + i) != *(data2 + i))
5667
/* Finally, make sure that changes to the mapped area do not
5668
percolate back to the file as seen by read(). (This is a bug on
5669
some variants of i386 svr4.0.) */
5670
for (i = 0; i < pagesize; ++i)
5671
*(data2 + i) = *(data2 + i) + 1;
5672
data3 = (char *) malloc (pagesize);
5675
if (read (fd, data3, pagesize) != pagesize)
5677
for (i = 0; i < pagesize; ++i)
5678
if (*(data + i) != *(data3 + i))
5684
if ac_fn_cxx_try_run "$LINENO"; then :
5685
ac_cv_func_mmap_fixed_mapped=yes
5687
ac_cv_func_mmap_fixed_mapped=no
5689
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5690
conftest.$ac_objext conftest.beam conftest.$ac_ext
5694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5695
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5696
if test $ac_cv_func_mmap_fixed_mapped = yes; then
5698
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5701
rm -f conftest.mmap conftest.txt
5073
5703
for ac_func in atexit floor getcwd gethostbyname memset mkdir select socket
5075
5705
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5715
for ac_func in clock_gettime dup2 gettimeofday memchr memmove pow putenv
5717
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5718
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5719
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5720
cat >>confdefs.h <<_ACEOF
5721
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5727
for ac_func in realpath setenv setlocale sqrt strchr munmap
5729
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5730
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5731
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5732
cat >>confdefs.h <<_ACEOF
5733
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5739
#AC_CHECK_HEADER_STDBOOL
5740
for ac_header in libintl.h limits.h sys/param.h sys/time.h wchar.h
5742
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5743
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5744
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5745
cat >>confdefs.h <<_ACEOF
5746
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5754
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5755
case $ac_cv_c_int8_t in #(
5759
cat >>confdefs.h <<_ACEOF
5760
#define int8_t $ac_cv_c_int8_t
5765
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5766
case $ac_cv_c_uint8_t in #(
5770
$as_echo "#define _UINT8_T 1" >>confdefs.h
5773
cat >>confdefs.h <<_ACEOF
5774
#define uint8_t $ac_cv_c_uint8_t
5779
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5780
case $ac_cv_c_int16_t in #(
5784
cat >>confdefs.h <<_ACEOF
5785
#define int16_t $ac_cv_c_int16_t
5790
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5791
case $ac_cv_c_uint16_t in #(
5796
cat >>confdefs.h <<_ACEOF
5797
#define uint16_t $ac_cv_c_uint16_t
5802
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5803
case $ac_cv_c_int32_t in #(
5807
cat >>confdefs.h <<_ACEOF
5808
#define int32_t $ac_cv_c_int32_t
5813
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5814
case $ac_cv_c_uint32_t in #(
5818
$as_echo "#define _UINT32_T 1" >>confdefs.h
5821
cat >>confdefs.h <<_ACEOF
5822
#define uint32_t $ac_cv_c_uint32_t
5827
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5828
case $ac_cv_c_int64_t in #(
5832
cat >>confdefs.h <<_ACEOF
5833
#define int64_t $ac_cv_c_int64_t
5838
ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5839
if test "x$ac_cv_type_ssize_t" = xyes; then :
5843
cat >>confdefs.h <<_ACEOF
5086
5850
# Checks for internationalization support