ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.9 by root, Wed Dec 1 07:30:38 2010 UTC vs.
Revision 1.31 by root, Wed Apr 3 03:03:53 2019 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67. 3# Generated by GNU Autoconf 2.69.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9# 7#
10# 8#
11# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 11## -------------------- ##
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.) 86# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl" 87IFS=" "" $as_nl"
90 88
91# Find who we are. Look in the path if we contain no directory separator. 89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
92case $0 in #(( 91case $0 in #((
93 *[\\/]* ) as_myself=$0 ;; 92 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 94for as_dir in $PATH
96do 95do
131export LANGUAGE 130export LANGUAGE
132 131
133# CDPATH. 132# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
136if test "x$CONFIG_SHELL" = x; then 160if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh 162 emulate sh
139 NULLCMD=: 163 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 189
166else 190else
167 exitcode=1; echo positional parameters were not saved. 191 exitcode=1; echo positional parameters were not saved.
168fi 192fi
169test x\$exitcode = x0 || exit 1" 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then : 200 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes 201 as_have_required=yes
176else 202else
177 as_have_required=no 203 as_have_required=no
178fi 204fi
208fi; } 234fi; }
209IFS=$as_save_IFS 235IFS=$as_save_IFS
210 236
211 237
212 if test "x$CONFIG_SHELL" != x; then : 238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
213 # We cannot yet assume a decent shell, so we have to provide a 240 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables. 242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
216 BASH_ENV=/dev/null 244BASH_ENV=/dev/null
217 ENV=/dev/null 245ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL 247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
221fi 258fi
222 259
223 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all" 261 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system." 262 $as_echo "$0: the shells that I found on your system."
317 test -z "$as_dirs" || eval "mkdir $as_dirs" 354 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
319 356
320 357
321} # as_fn_mkdir_p 358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
322# as_fn_append VAR VALUE 367# as_fn_append VAR VALUE
323# ---------------------- 368# ----------------------
324# Append the text in VALUE to the end of the definition contained in VAR. Take 369# Append the text in VALUE to the end of the definition contained in VAR. Take
325# advantage of any shell optimizations that allow amortized linear growth over 370# advantage of any shell optimizations that allow amortized linear growth over
326# repeated appends, instead of the typical quadratic growth present in naive 371# repeated appends, instead of the typical quadratic growth present in naive
438 s/-\n.*// 483 s/-\n.*//
439 ' >$as_me.lineno && 484 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" || 485 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
443 # Don't try to exec as it changes $[0], causing all sort of problems 492 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the 493 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this). 494 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno" 495 . "./$as_me.lineno"
447 # Exit status is that of the last command. 496 # Exit status is that of the last command.
472 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s' 522 as_ln_s='ln -s'
474 # ... but there are two gotchas: 523 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'. 526 # In both cases, we have to default to `cp -pR'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p' 528 as_ln_s='cp -pR'
480 elif ln conf$$.file conf$$ 2>/dev/null; then 529 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln 530 as_ln_s=ln
482 else 531 else
483 as_ln_s='cp -p' 532 as_ln_s='cp -pR'
484 fi 533 fi
485else 534else
486 as_ln_s='cp -p' 535 as_ln_s='cp -pR'
487fi 536fi
488rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489rmdir conf$$.dir 2>/dev/null 538rmdir conf$$.dir 2>/dev/null
490 539
491if mkdir -p . 2>/dev/null; then 540if mkdir -p . 2>/dev/null; then
493else 542else
494 test -d ./-p && rmdir ./-p 543 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false 544 as_mkdir_p=false
496fi 545fi
497 546
498if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x' 547as_test_x='test -x'
500else 548as_executable_p=as_fn_executable_p
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518fi
519as_executable_p=$as_test_x
520 549
521# Sed expression to map a string onto a valid CPP name. 550# Sed expression to map a string onto a valid CPP name.
522as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 552
524# Sed expression to map a string onto a valid variable name. 553# Sed expression to map a string onto a valid variable name.
552PACKAGE_STRING= 581PACKAGE_STRING=
553PACKAGE_BUGREPORT= 582PACKAGE_BUGREPORT=
554PACKAGE_URL= 583PACKAGE_URL=
555 584
556ac_unique_file="libeio/eio.h" 585ac_unique_file="libeio/eio.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
557ac_subst_vars='LTLIBOBJS 622ac_subst_vars='LTLIBOBJS
558LIBOBJS 623LIBOBJS
624EGREP
625GREP
626CPP
559OBJEXT 627OBJEXT
560EXEEXT 628EXEEXT
561ac_ct_CC 629ac_ct_CC
562CPPFLAGS 630CPPFLAGS
563LDFLAGS 631LDFLAGS
580htmldir 648htmldir
581infodir 649infodir
582docdir 650docdir
583oldincludedir 651oldincludedir
584includedir 652includedir
653runstatedir
585localstatedir 654localstatedir
586sharedstatedir 655sharedstatedir
587sysconfdir 656sysconfdir
588datadir 657datadir
589datarootdir 658datarootdir
610target_alias 679target_alias
611CC 680CC
612CFLAGS 681CFLAGS
613LDFLAGS 682LDFLAGS
614LIBS 683LIBS
615CPPFLAGS' 684CPPFLAGS
685CPP'
616 686
617 687
618# Initialize some variables set by options. 688# Initialize some variables set by options.
619ac_init_help= 689ac_init_help=
620ac_init_version=false 690ac_init_version=false
649datarootdir='${prefix}/share' 719datarootdir='${prefix}/share'
650datadir='${datarootdir}' 720datadir='${datarootdir}'
651sysconfdir='${prefix}/etc' 721sysconfdir='${prefix}/etc'
652sharedstatedir='${prefix}/com' 722sharedstatedir='${prefix}/com'
653localstatedir='${prefix}/var' 723localstatedir='${prefix}/var'
724runstatedir='${localstatedir}/run'
654includedir='${prefix}/include' 725includedir='${prefix}/include'
655oldincludedir='/usr/include' 726oldincludedir='/usr/include'
656docdir='${datarootdir}/doc/${PACKAGE}' 727docdir='${datarootdir}/doc/${PACKAGE}'
657infodir='${datarootdir}/info' 728infodir='${datarootdir}/info'
658htmldir='${docdir}' 729htmldir='${docdir}'
901 972
902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
903 | -silent | --silent | --silen | --sile | --sil) 974 | -silent | --silent | --silen | --sile | --sil)
904 silent=yes ;; 975 silent=yes ;;
905 976
977 -runstatedir | --runstatedir | --runstatedi | --runstated \
978 | --runstate | --runstat | --runsta | --runst | --runs \
979 | --run | --ru | --r)
980 ac_prev=runstatedir ;;
981 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
982 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
983 | --run=* | --ru=* | --r=*)
984 runstatedir=$ac_optarg ;;
985
906 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
907 ac_prev=sbindir ;; 987 ac_prev=sbindir ;;
908 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
909 | --sbi=* | --sb=*) 989 | --sbi=* | --sb=*)
910 sbindir=$ac_optarg ;; 990 sbindir=$ac_optarg ;;
1015 *) 1095 *)
1016 # FIXME: should be removed in autoconf 3.0. 1096 # FIXME: should be removed in autoconf 3.0.
1017 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1018 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1020 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1100 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1021 ;; 1101 ;;
1022 1102
1023 esac 1103 esac
1024done 1104done
1025 1105
1038 1118
1039# Check all directory arguments for consistency. 1119# Check all directory arguments for consistency.
1040for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1041 datadir sysconfdir sharedstatedir localstatedir includedir \ 1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1043 libdir localedir mandir 1123 libdir localedir mandir runstatedir
1044do 1124do
1045 eval ac_val=\$$ac_var 1125 eval ac_val=\$$ac_var
1046 # Remove trailing slashes. 1126 # Remove trailing slashes.
1047 case $ac_val in 1127 case $ac_val in
1048 */ ) 1128 */ )
1066 1146
1067# FIXME: To remove some day. 1147# FIXME: To remove some day.
1068if test "x$host_alias" != x; then 1148if test "x$host_alias" != x; then
1069 if test "x$build_alias" = x; then 1149 if test "x$build_alias" = x; then
1070 cross_compiling=maybe 1150 cross_compiling=maybe
1071 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1072 If a cross compiler is detected then cross compile mode will be used" >&2
1073 elif test "x$build_alias" != "x$host_alias"; then 1151 elif test "x$build_alias" != "x$host_alias"; then
1074 cross_compiling=yes 1152 cross_compiling=yes
1075 fi 1153 fi
1076fi 1154fi
1077 1155
1193 --sbindir=DIR system admin executables [EPREFIX/sbin] 1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1194 --libexecdir=DIR program executables [EPREFIX/libexec] 1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1195 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1196 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1197 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1198 --libdir=DIR object code libraries [EPREFIX/lib] 1277 --libdir=DIR object code libraries [EPREFIX/lib]
1199 --includedir=DIR C header files [PREFIX/include] 1278 --includedir=DIR C header files [PREFIX/include]
1200 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1201 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1202 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1224 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1225 nonstandard directory <lib dir> 1304 nonstandard directory <lib dir>
1226 LIBS libraries to pass to the linker, e.g. -l<library> 1305 LIBS libraries to pass to the linker, e.g. -l<library>
1227 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1306 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1228 you have headers in a nonstandard directory <include dir> 1307 you have headers in a nonstandard directory <include dir>
1308 CPP C preprocessor
1229 1309
1230Use these variables to override the choices made by `configure' or to help 1310Use these variables to override the choices made by `configure' or to help
1231it to find libraries and programs with nonstandard names/locations. 1311it to find libraries and programs with nonstandard names/locations.
1232 1312
1233Report bugs to the package provider. 1313Report bugs to the package provider.
1292 1372
1293test -n "$ac_init_help" && exit $ac_status 1373test -n "$ac_init_help" && exit $ac_status
1294if $ac_init_version; then 1374if $ac_init_version; then
1295 cat <<\_ACEOF 1375 cat <<\_ACEOF
1296configure 1376configure
1297generated by GNU Autoconf 2.67 1377generated by GNU Autoconf 2.69
1298 1378
1299Copyright (C) 2010 Free Software Foundation, Inc. 1379Copyright (C) 2012 Free Software Foundation, Inc.
1300This configure script is free software; the Free Software Foundation 1380This configure script is free software; the Free Software Foundation
1301gives unlimited permission to copy, distribute and modify it. 1381gives unlimited permission to copy, distribute and modify it.
1302_ACEOF 1382_ACEOF
1303 exit 1383 exit
1304fi 1384fi
1338 $as_echo "$as_me: failed program was:" >&5 1418 $as_echo "$as_me: failed program was:" >&5
1339sed 's/^/| /' conftest.$ac_ext >&5 1419sed 's/^/| /' conftest.$ac_ext >&5
1340 1420
1341 ac_retval=1 1421 ac_retval=1
1342fi 1422fi
1343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1344 as_fn_set_status $ac_retval 1424 as_fn_set_status $ac_retval
1345 1425
1346} # ac_fn_c_try_compile 1426} # ac_fn_c_try_compile
1427
1428# ac_fn_c_try_cpp LINENO
1429# ----------------------
1430# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1431ac_fn_c_try_cpp ()
1432{
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 if { { ac_try="$ac_cpp conftest.$ac_ext"
1435case "(($ac_try" in
1436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1437 *) ac_try_echo=$ac_try;;
1438esac
1439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1440$as_echo "$ac_try_echo"; } >&5
1441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1442 ac_status=$?
1443 if test -s conftest.err; then
1444 grep -v '^ *+' conftest.err >conftest.er1
1445 cat conftest.er1 >&5
1446 mv -f conftest.er1 conftest.err
1447 fi
1448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1449 test $ac_status = 0; } > conftest.i && {
1450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1451 test ! -s conftest.err
1452 }; then :
1453 ac_retval=0
1454else
1455 $as_echo "$as_me: failed program was:" >&5
1456sed 's/^/| /' conftest.$ac_ext >&5
1457
1458 ac_retval=1
1459fi
1460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1461 as_fn_set_status $ac_retval
1462
1463} # ac_fn_c_try_cpp
1464
1465# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1466# -------------------------------------------------------
1467# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1468# the include files in INCLUDES and setting the cache variable VAR
1469# accordingly.
1470ac_fn_c_check_header_mongrel ()
1471{
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 if eval \${$3+:} false; then :
1474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1475$as_echo_n "checking for $2... " >&6; }
1476if eval \${$3+:} false; then :
1477 $as_echo_n "(cached) " >&6
1478fi
1479eval ac_res=\$$3
1480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1481$as_echo "$ac_res" >&6; }
1482else
1483 # Is the header compilable?
1484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1485$as_echo_n "checking $2 usability... " >&6; }
1486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1487/* end confdefs.h. */
1488$4
1489#include <$2>
1490_ACEOF
1491if ac_fn_c_try_compile "$LINENO"; then :
1492 ac_header_compiler=yes
1493else
1494 ac_header_compiler=no
1495fi
1496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1498$as_echo "$ac_header_compiler" >&6; }
1499
1500# Is the header present?
1501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1502$as_echo_n "checking $2 presence... " >&6; }
1503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504/* end confdefs.h. */
1505#include <$2>
1506_ACEOF
1507if ac_fn_c_try_cpp "$LINENO"; then :
1508 ac_header_preproc=yes
1509else
1510 ac_header_preproc=no
1511fi
1512rm -f conftest.err conftest.i conftest.$ac_ext
1513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1514$as_echo "$ac_header_preproc" >&6; }
1515
1516# So? What about this header?
1517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1518 yes:no: )
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1520$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1522$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1523 ;;
1524 no:yes:* )
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1526$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1528$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1530$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1532$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1534$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1535 ;;
1536esac
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1538$as_echo_n "checking for $2... " >&6; }
1539if eval \${$3+:} false; then :
1540 $as_echo_n "(cached) " >&6
1541else
1542 eval "$3=\$ac_header_compiler"
1543fi
1544eval ac_res=\$$3
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546$as_echo "$ac_res" >&6; }
1547fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549
1550} # ac_fn_c_check_header_mongrel
1551
1552# ac_fn_c_try_run LINENO
1553# ----------------------
1554# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1555# that executables *can* be run.
1556ac_fn_c_try_run ()
1557{
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_link"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>&5
1567 ac_status=$?
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1570 { { case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_try") 2>&5
1577 ac_status=$?
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; }; }; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: program exited with status $ac_status" >&5
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=$ac_status
1587fi
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_run
1593
1594# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595# -------------------------------------------------------
1596# Tests whether HEADER exists and can be compiled using the include files in
1597# INCLUDES, setting the cache variable VAR accordingly.
1598ac_fn_c_check_header_compile ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
1603if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605else
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608$4
1609#include <$2>
1610_ACEOF
1611if ac_fn_c_try_compile "$LINENO"; then :
1612 eval "$3=yes"
1613else
1614 eval "$3=no"
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617fi
1618eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_c_check_header_compile
1347 1624
1348# ac_fn_c_try_link LINENO 1625# ac_fn_c_try_link LINENO
1349# ----------------------- 1626# -----------------------
1350# Try to link conftest.$ac_ext, and return whether this succeeded. 1627# Try to link conftest.$ac_ext, and return whether this succeeded.
1351ac_fn_c_try_link () 1628ac_fn_c_try_link ()
1370 test $ac_status = 0; } && { 1647 test $ac_status = 0; } && {
1371 test -z "$ac_c_werror_flag" || 1648 test -z "$ac_c_werror_flag" ||
1372 test ! -s conftest.err 1649 test ! -s conftest.err
1373 } && test -s conftest$ac_exeext && { 1650 } && test -s conftest$ac_exeext && {
1374 test "$cross_compiling" = yes || 1651 test "$cross_compiling" = yes ||
1375 $as_test_x conftest$ac_exeext 1652 test -x conftest$ac_exeext
1376 }; then : 1653 }; then :
1377 ac_retval=0 1654 ac_retval=0
1378else 1655else
1379 $as_echo "$as_me: failed program was:" >&5 1656 $as_echo "$as_me: failed program was:" >&5
1380sed 's/^/| /' conftest.$ac_ext >&5 1657sed 's/^/| /' conftest.$ac_ext >&5
1384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1386 # interfere with the next link command; also delete a directory that is 1663 # interfere with the next link command; also delete a directory that is
1387 # left behind by Apple's compiler. We do this before executing the actions. 1664 # left behind by Apple's compiler. We do this before executing the actions.
1388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1390 as_fn_set_status $ac_retval 1667 as_fn_set_status $ac_retval
1391 1668
1392} # ac_fn_c_try_link 1669} # ac_fn_c_try_link
1393cat >config.log <<_ACEOF 1670cat >config.log <<_ACEOF
1394This file contains any messages produced by compilers while 1671This file contains any messages produced by compilers while
1395running configure, to aid debugging if configure makes a mistake. 1672running configure, to aid debugging if configure makes a mistake.
1396 1673
1397It was created by $as_me, which was 1674It was created by $as_me, which was
1398generated by GNU Autoconf 2.67. Invocation command line was 1675generated by GNU Autoconf 2.69. Invocation command line was
1399 1676
1400 $ $0 $@ 1677 $ $0 $@
1401 1678
1402_ACEOF 1679_ACEOF
1403exec 5>>config.log 1680exec 5>>config.log
1651 sed 's/^/| /' "$ac_site_file" >&5 1928 sed 's/^/| /' "$ac_site_file" >&5
1652 . "$ac_site_file" \ 1929 . "$ac_site_file" \
1653 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1930 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1655as_fn_error $? "failed to load site script $ac_site_file 1932as_fn_error $? "failed to load site script $ac_site_file
1656See \`config.log' for more details" "$LINENO" 5 ; } 1933See \`config.log' for more details" "$LINENO" 5; }
1657 fi 1934 fi
1658done 1935done
1659 1936
1660if test -r "$cache_file"; then 1937if test -r "$cache_file"; then
1661 # Some versions of bash will fail to source /dev/null (special files 1938 # Some versions of bash will fail to source /dev/null (special files
1741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742ac_compiler_gnu=$ac_cv_c_compiler_gnu 2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743 2020
1744 2021
1745 2022
1746ac_config_headers="$ac_config_headers libeio/config.h" 2023ac_config_headers="$ac_config_headers config.h"
2024
1747 2025
1748 2026
1749ac_ext=c 2027ac_ext=c
1750ac_cpp='$CPP $CPPFLAGS' 2028ac_cpp='$CPP $CPPFLAGS'
1751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754if test -n "$ac_tool_prefix"; then 2032if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1756set dummy ${ac_tool_prefix}gcc; ac_word=$2 2034set dummy ${ac_tool_prefix}gcc; ac_word=$2
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1758$as_echo_n "checking for $ac_word... " >&6; } 2036$as_echo_n "checking for $ac_word... " >&6; }
1759if test "${ac_cv_prog_CC+set}" = set; then : 2037if ${ac_cv_prog_CC+:} false; then :
1760 $as_echo_n "(cached) " >&6 2038 $as_echo_n "(cached) " >&6
1761else 2039else
1762 if test -n "$CC"; then 2040 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test. 2041 ac_cv_prog_CC="$CC" # Let the user override the test.
1764else 2042else
1766for as_dir in $PATH 2044for as_dir in $PATH
1767do 2045do
1768 IFS=$as_save_IFS 2046 IFS=$as_save_IFS
1769 test -z "$as_dir" && as_dir=. 2047 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do 2048 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1774 break 2 2052 break 2
1775 fi 2053 fi
1776done 2054done
1794 ac_ct_CC=$CC 2072 ac_ct_CC=$CC
1795 # Extract the first word of "gcc", so it can be a program name with args. 2073 # Extract the first word of "gcc", so it can be a program name with args.
1796set dummy gcc; ac_word=$2 2074set dummy gcc; ac_word=$2
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1798$as_echo_n "checking for $ac_word... " >&6; } 2076$as_echo_n "checking for $ac_word... " >&6; }
1799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2077if ${ac_cv_prog_ac_ct_CC+:} false; then :
1800 $as_echo_n "(cached) " >&6 2078 $as_echo_n "(cached) " >&6
1801else 2079else
1802 if test -n "$ac_ct_CC"; then 2080 if test -n "$ac_ct_CC"; then
1803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804else 2082else
1806for as_dir in $PATH 2084for as_dir in $PATH
1807do 2085do
1808 IFS=$as_save_IFS 2086 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=. 2087 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do 2088 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_ac_ct_CC="gcc" 2090 ac_cv_prog_ac_ct_CC="gcc"
1813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 break 2 2092 break 2
1815 fi 2093 fi
1816done 2094done
1847 if test -n "$ac_tool_prefix"; then 2125 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849set dummy ${ac_tool_prefix}cc; ac_word=$2 2127set dummy ${ac_tool_prefix}cc; ac_word=$2
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1851$as_echo_n "checking for $ac_word... " >&6; } 2129$as_echo_n "checking for $ac_word... " >&6; }
1852if test "${ac_cv_prog_CC+set}" = set; then : 2130if ${ac_cv_prog_CC+:} false; then :
1853 $as_echo_n "(cached) " >&6 2131 $as_echo_n "(cached) " >&6
1854else 2132else
1855 if test -n "$CC"; then 2133 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test. 2134 ac_cv_prog_CC="$CC" # Let the user override the test.
1857else 2135else
1859for as_dir in $PATH 2137for as_dir in $PATH
1860do 2138do
1861 IFS=$as_save_IFS 2139 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=. 2140 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do 2141 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC="${ac_tool_prefix}cc" 2143 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2 2145 break 2
1868 fi 2146 fi
1869done 2147done
1887if test -z "$CC"; then 2165if test -z "$CC"; then
1888 # Extract the first word of "cc", so it can be a program name with args. 2166 # Extract the first word of "cc", so it can be a program name with args.
1889set dummy cc; ac_word=$2 2167set dummy cc; ac_word=$2
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1891$as_echo_n "checking for $ac_word... " >&6; } 2169$as_echo_n "checking for $ac_word... " >&6; }
1892if test "${ac_cv_prog_CC+set}" = set; then : 2170if ${ac_cv_prog_CC+:} false; then :
1893 $as_echo_n "(cached) " >&6 2171 $as_echo_n "(cached) " >&6
1894else 2172else
1895 if test -n "$CC"; then 2173 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test. 2174 ac_cv_prog_CC="$CC" # Let the user override the test.
1897else 2175else
1900for as_dir in $PATH 2178for as_dir in $PATH
1901do 2179do
1902 IFS=$as_save_IFS 2180 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=. 2181 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do 2182 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1907 ac_prog_rejected=yes 2185 ac_prog_rejected=yes
1908 continue 2186 continue
1909 fi 2187 fi
1910 ac_cv_prog_CC="cc" 2188 ac_cv_prog_CC="cc"
1946 do 2224 do
1947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1948set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1950$as_echo_n "checking for $ac_word... " >&6; } 2228$as_echo_n "checking for $ac_word... " >&6; }
1951if test "${ac_cv_prog_CC+set}" = set; then : 2229if ${ac_cv_prog_CC+:} false; then :
1952 $as_echo_n "(cached) " >&6 2230 $as_echo_n "(cached) " >&6
1953else 2231else
1954 if test -n "$CC"; then 2232 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test. 2233 ac_cv_prog_CC="$CC" # Let the user override the test.
1956else 2234else
1958for as_dir in $PATH 2236for as_dir in $PATH
1959do 2237do
1960 IFS=$as_save_IFS 2238 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=. 2239 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do 2240 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1966 break 2 2244 break 2
1967 fi 2245 fi
1968done 2246done
1990do 2268do
1991 # Extract the first word of "$ac_prog", so it can be a program name with args. 2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
1992set dummy $ac_prog; ac_word=$2 2270set dummy $ac_prog; ac_word=$2
1993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1994$as_echo_n "checking for $ac_word... " >&6; } 2272$as_echo_n "checking for $ac_word... " >&6; }
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2273if ${ac_cv_prog_ac_ct_CC+:} false; then :
1996 $as_echo_n "(cached) " >&6 2274 $as_echo_n "(cached) " >&6
1997else 2275else
1998 if test -n "$ac_ct_CC"; then 2276 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000else 2278else
2002for as_dir in $PATH 2280for as_dir in $PATH
2003do 2281do
2004 IFS=$as_save_IFS 2282 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=. 2283 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do 2284 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC="$ac_prog" 2286 ac_cv_prog_ac_ct_CC="$ac_prog"
2009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2 2288 break 2
2011 fi 2289 fi
2012done 2290done
2045 2323
2046 2324
2047test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2325test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2049as_fn_error $? "no acceptable C compiler found in \$PATH 2327as_fn_error $? "no acceptable C compiler found in \$PATH
2050See \`config.log' for more details" "$LINENO" 5 ; } 2328See \`config.log' for more details" "$LINENO" 5; }
2051 2329
2052# Provide some information about the compiler. 2330# Provide some information about the compiler.
2053$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2331$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2054set X $ac_compile 2332set X $ac_compile
2055ac_compiler=$2 2333ac_compiler=$2
2160sed 's/^/| /' conftest.$ac_ext >&5 2438sed 's/^/| /' conftest.$ac_ext >&5
2161 2439
2162{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2440{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164as_fn_error 77 "C compiler cannot create executables 2442as_fn_error 77 "C compiler cannot create executables
2165See \`config.log' for more details" "$LINENO" 5 ; } 2443See \`config.log' for more details" "$LINENO" 5; }
2166else 2444else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2168$as_echo "yes" >&6; } 2446$as_echo "yes" >&6; }
2169fi 2447fi
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2203done 2481done
2204else 2482else
2205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2485as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2208See \`config.log' for more details" "$LINENO" 5 ; } 2486See \`config.log' for more details" "$LINENO" 5; }
2209fi 2487fi
2210rm -f conftest conftest$ac_cv_exeext 2488rm -f conftest conftest$ac_cv_exeext
2211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2212$as_echo "$ac_cv_exeext" >&6; } 2490$as_echo "$ac_cv_exeext" >&6; }
2213 2491
2262 else 2540 else
2263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265as_fn_error $? "cannot run C compiled programs. 2543as_fn_error $? "cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'. 2544If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details" "$LINENO" 5 ; } 2545See \`config.log' for more details" "$LINENO" 5; }
2268 fi 2546 fi
2269 fi 2547 fi
2270fi 2548fi
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2272$as_echo "$cross_compiling" >&6; } 2550$as_echo "$cross_compiling" >&6; }
2273 2551
2274rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2552rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2275ac_clean_files=$ac_clean_files_save 2553ac_clean_files=$ac_clean_files_save
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2277$as_echo_n "checking for suffix of object files... " >&6; } 2555$as_echo_n "checking for suffix of object files... " >&6; }
2278if test "${ac_cv_objext+set}" = set; then : 2556if ${ac_cv_objext+:} false; then :
2279 $as_echo_n "(cached) " >&6 2557 $as_echo_n "(cached) " >&6
2280else 2558else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h. */ 2560/* end confdefs.h. */
2283 2561
2314sed 's/^/| /' conftest.$ac_ext >&5 2592sed 's/^/| /' conftest.$ac_ext >&5
2315 2593
2316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318as_fn_error $? "cannot compute suffix of object files: cannot compile 2596as_fn_error $? "cannot compute suffix of object files: cannot compile
2319See \`config.log' for more details" "$LINENO" 5 ; } 2597See \`config.log' for more details" "$LINENO" 5; }
2320fi 2598fi
2321rm -f conftest.$ac_cv_objext conftest.$ac_ext 2599rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322fi 2600fi
2323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2324$as_echo "$ac_cv_objext" >&6; } 2602$as_echo "$ac_cv_objext" >&6; }
2325OBJEXT=$ac_cv_objext 2603OBJEXT=$ac_cv_objext
2326ac_objext=$OBJEXT 2604ac_objext=$OBJEXT
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2328$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2606$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2329if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2607if ${ac_cv_c_compiler_gnu+:} false; then :
2330 $as_echo_n "(cached) " >&6 2608 $as_echo_n "(cached) " >&6
2331else 2609else
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333/* end confdefs.h. */ 2611/* end confdefs.h. */
2334 2612
2361fi 2639fi
2362ac_test_CFLAGS=${CFLAGS+set} 2640ac_test_CFLAGS=${CFLAGS+set}
2363ac_save_CFLAGS=$CFLAGS 2641ac_save_CFLAGS=$CFLAGS
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2365$as_echo_n "checking whether $CC accepts -g... " >&6; } 2643$as_echo_n "checking whether $CC accepts -g... " >&6; }
2366if test "${ac_cv_prog_cc_g+set}" = set; then : 2644if ${ac_cv_prog_cc_g+:} false; then :
2367 $as_echo_n "(cached) " >&6 2645 $as_echo_n "(cached) " >&6
2368else 2646else
2369 ac_save_c_werror_flag=$ac_c_werror_flag 2647 ac_save_c_werror_flag=$ac_c_werror_flag
2370 ac_c_werror_flag=yes 2648 ac_c_werror_flag=yes
2371 ac_cv_prog_cc_g=no 2649 ac_cv_prog_cc_g=no
2439 CFLAGS= 2717 CFLAGS=
2440 fi 2718 fi
2441fi 2719fi
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2443$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2721$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2444if test "${ac_cv_prog_cc_c89+set}" = set; then : 2722if ${ac_cv_prog_cc_c89+:} false; then :
2445 $as_echo_n "(cached) " >&6 2723 $as_echo_n "(cached) " >&6
2446else 2724else
2447 ac_cv_prog_cc_c89=no 2725 ac_cv_prog_cc_c89=no
2448ac_save_CC=$CC 2726ac_save_CC=$CC
2449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h. */ 2728/* end confdefs.h. */
2451#include <stdarg.h> 2729#include <stdarg.h>
2452#include <stdio.h> 2730#include <stdio.h>
2453#include <sys/types.h> 2731struct stat;
2454#include <sys/stat.h>
2455/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2456struct buf { int x; }; 2733struct buf { int x; };
2457FILE * (*rcsopen) (struct buf *, struct stat *, int); 2734FILE * (*rcsopen) (struct buf *, struct stat *, int);
2458static char *e (p, i) 2735static char *e (p, i)
2459 char **p; 2736 char **p;
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu 2814ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 2815
2539 2816
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2823$as_echo_n "checking how to run the C preprocessor... " >&6; }
2824# On Suns, sometimes $CPP names a directory.
2825if test -n "$CPP" && test -d "$CPP"; then
2826 CPP=
2827fi
2828if test -z "$CPP"; then
2829 if ${ac_cv_prog_CPP+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831else
2832 # Double quotes because CPP needs to be expanded
2833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2834 do
2835 ac_preproc_ok=false
2836for ac_c_preproc_warn_flag in '' yes
2837do
2838 # Use a header file that comes with gcc, so configuring glibc
2839 # with a fresh cross-compiler works.
2840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2841 # <limits.h> exists even on freestanding compilers.
2842 # On the NeXT, cc -E runs the code through the compiler's parser,
2843 # not just through cpp. "Syntax error" is here to catch this case.
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846#ifdef __STDC__
2847# include <limits.h>
2848#else
2849# include <assert.h>
2850#endif
2851 Syntax error
2852_ACEOF
2853if ac_fn_c_try_cpp "$LINENO"; then :
2854
2855else
2856 # Broken: fails on valid input.
2857continue
2858fi
2859rm -f conftest.err conftest.i conftest.$ac_ext
2860
2861 # OK, works on sane cases. Now check whether nonexistent headers
2862 # can be detected and how.
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h. */
2865#include <ac_nonexistent.h>
2866_ACEOF
2867if ac_fn_c_try_cpp "$LINENO"; then :
2868 # Broken: success on invalid input.
2869continue
2870else
2871 # Passes both tests.
2872ac_preproc_ok=:
2873break
2874fi
2875rm -f conftest.err conftest.i conftest.$ac_ext
2876
2877done
2878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2879rm -f conftest.i conftest.err conftest.$ac_ext
2880if $ac_preproc_ok; then :
2881 break
2882fi
2883
2884 done
2885 ac_cv_prog_CPP=$CPP
2886
2887fi
2888 CPP=$ac_cv_prog_CPP
2889else
2890 ac_cv_prog_CPP=$CPP
2891fi
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2893$as_echo "$CPP" >&6; }
2894ac_preproc_ok=false
2895for ac_c_preproc_warn_flag in '' yes
2896do
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905#ifdef __STDC__
2906# include <limits.h>
2907#else
2908# include <assert.h>
2909#endif
2910 Syntax error
2911_ACEOF
2912if ac_fn_c_try_cpp "$LINENO"; then :
2913
2914else
2915 # Broken: fails on valid input.
2916continue
2917fi
2918rm -f conftest.err conftest.i conftest.$ac_ext
2919
2920 # OK, works on sane cases. Now check whether nonexistent headers
2921 # can be detected and how.
2922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2923/* end confdefs.h. */
2924#include <ac_nonexistent.h>
2925_ACEOF
2926if ac_fn_c_try_cpp "$LINENO"; then :
2927 # Broken: success on invalid input.
2928continue
2929else
2930 # Passes both tests.
2931ac_preproc_ok=:
2932break
2933fi
2934rm -f conftest.err conftest.i conftest.$ac_ext
2935
2936done
2937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2938rm -f conftest.i conftest.err conftest.$ac_ext
2939if $ac_preproc_ok; then :
2940
2941else
2942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2945See \`config.log' for more details" "$LINENO" 5; }
2946fi
2947
2948ac_ext=c
2949ac_cpp='$CPP $CPPFLAGS'
2950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2956$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2957if ${ac_cv_path_GREP+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test -z "$GREP"; then
2961 ac_path_GREP_found=false
2962 # Loop through the user's path and test for each of PROGNAME-LIST
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_prog in grep ggrep; do
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2971 as_fn_executable_p "$ac_path_GREP" || continue
2972# Check for GNU ac_path_GREP and select it if it is found.
2973 # Check for GNU $ac_path_GREP
2974case `"$ac_path_GREP" --version 2>&1` in
2975*GNU*)
2976 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2977*)
2978 ac_count=0
2979 $as_echo_n 0123456789 >"conftest.in"
2980 while :
2981 do
2982 cat "conftest.in" "conftest.in" >"conftest.tmp"
2983 mv "conftest.tmp" "conftest.in"
2984 cp "conftest.in" "conftest.nl"
2985 $as_echo 'GREP' >> "conftest.nl"
2986 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2988 as_fn_arith $ac_count + 1 && ac_count=$as_val
2989 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2990 # Best one so far, save it but keep looking for a better one
2991 ac_cv_path_GREP="$ac_path_GREP"
2992 ac_path_GREP_max=$ac_count
2993 fi
2994 # 10*(2^10) chars as input seems more than enough
2995 test $ac_count -gt 10 && break
2996 done
2997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2998esac
2999
3000 $ac_path_GREP_found && break 3
3001 done
3002 done
3003 done
3004IFS=$as_save_IFS
3005 if test -z "$ac_cv_path_GREP"; then
3006 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3007 fi
3008else
3009 ac_cv_path_GREP=$GREP
3010fi
3011
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3014$as_echo "$ac_cv_path_GREP" >&6; }
3015 GREP="$ac_cv_path_GREP"
3016
3017
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3019$as_echo_n "checking for egrep... " >&6; }
3020if ${ac_cv_path_EGREP+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022else
3023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3024 then ac_cv_path_EGREP="$GREP -E"
3025 else
3026 if test -z "$EGREP"; then
3027 ac_path_EGREP_found=false
3028 # Loop through the user's path and test for each of PROGNAME-LIST
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_prog in egrep; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3037 as_fn_executable_p "$ac_path_EGREP" || continue
3038# Check for GNU ac_path_EGREP and select it if it is found.
3039 # Check for GNU $ac_path_EGREP
3040case `"$ac_path_EGREP" --version 2>&1` in
3041*GNU*)
3042 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3043*)
3044 ac_count=0
3045 $as_echo_n 0123456789 >"conftest.in"
3046 while :
3047 do
3048 cat "conftest.in" "conftest.in" >"conftest.tmp"
3049 mv "conftest.tmp" "conftest.in"
3050 cp "conftest.in" "conftest.nl"
3051 $as_echo 'EGREP' >> "conftest.nl"
3052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3054 as_fn_arith $ac_count + 1 && ac_count=$as_val
3055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3056 # Best one so far, save it but keep looking for a better one
3057 ac_cv_path_EGREP="$ac_path_EGREP"
3058 ac_path_EGREP_max=$ac_count
3059 fi
3060 # 10*(2^10) chars as input seems more than enough
3061 test $ac_count -gt 10 && break
3062 done
3063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3064esac
3065
3066 $ac_path_EGREP_found && break 3
3067 done
3068 done
3069 done
3070IFS=$as_save_IFS
3071 if test -z "$ac_cv_path_EGREP"; then
3072 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3073 fi
3074else
3075 ac_cv_path_EGREP=$EGREP
3076fi
3077
3078 fi
3079fi
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3081$as_echo "$ac_cv_path_EGREP" >&6; }
3082 EGREP="$ac_cv_path_EGREP"
3083
3084
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3086$as_echo_n "checking for ANSI C header files... " >&6; }
3087if ${ac_cv_header_stdc+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089else
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091/* end confdefs.h. */
3092#include <stdlib.h>
3093#include <stdarg.h>
3094#include <string.h>
3095#include <float.h>
3096
3097int
3098main ()
3099{
3100
3101 ;
3102 return 0;
3103}
3104_ACEOF
3105if ac_fn_c_try_compile "$LINENO"; then :
3106 ac_cv_header_stdc=yes
3107else
3108 ac_cv_header_stdc=no
3109fi
3110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111
3112if test $ac_cv_header_stdc = yes; then
3113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115/* end confdefs.h. */
3116#include <string.h>
3117
3118_ACEOF
3119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3120 $EGREP "memchr" >/dev/null 2>&1; then :
3121
3122else
3123 ac_cv_header_stdc=no
3124fi
3125rm -f conftest*
3126
3127fi
3128
3129if test $ac_cv_header_stdc = yes; then
3130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132/* end confdefs.h. */
3133#include <stdlib.h>
3134
3135_ACEOF
3136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3137 $EGREP "free" >/dev/null 2>&1; then :
3138
3139else
3140 ac_cv_header_stdc=no
3141fi
3142rm -f conftest*
3143
3144fi
3145
3146if test $ac_cv_header_stdc = yes; then
3147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3148 if test "$cross_compiling" = yes; then :
3149 :
3150else
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h. */
3153#include <ctype.h>
3154#include <stdlib.h>
3155#if ((' ' & 0x0FF) == 0x020)
3156# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3157# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3158#else
3159# define ISLOWER(c) \
3160 (('a' <= (c) && (c) <= 'i') \
3161 || ('j' <= (c) && (c) <= 'r') \
3162 || ('s' <= (c) && (c) <= 'z'))
3163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3164#endif
3165
3166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3167int
3168main ()
3169{
3170 int i;
3171 for (i = 0; i < 256; i++)
3172 if (XOR (islower (i), ISLOWER (i))
3173 || toupper (i) != TOUPPER (i))
3174 return 2;
3175 return 0;
3176}
3177_ACEOF
3178if ac_fn_c_try_run "$LINENO"; then :
3179
3180else
3181 ac_cv_header_stdc=no
3182fi
3183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3184 conftest.$ac_objext conftest.beam conftest.$ac_ext
3185fi
3186
3187fi
3188fi
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3190$as_echo "$ac_cv_header_stdc" >&6; }
3191if test $ac_cv_header_stdc = yes; then
3192
3193$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3194
3195fi
3196
3197# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3198for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3199 inttypes.h stdint.h unistd.h
3200do :
3201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3202ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3203"
3204if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3205 cat >>confdefs.h <<_ACEOF
3206#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3207_ACEOF
3208
3209fi
3210
3211done
3212
3213
3214
3215 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3216if test "x$ac_cv_header_minix_config_h" = xyes; then :
3217 MINIX=yes
3218else
3219 MINIX=
3220fi
3221
3222
3223 if test "$MINIX" = yes; then
3224
3225$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3226
3227
3228$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3229
3230
3231$as_echo "#define _MINIX 1" >>confdefs.h
3232
3233 fi
3234
3235
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3237$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3238if ${ac_cv_safe_to_define___extensions__+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240else
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243
3244# define __EXTENSIONS__ 1
3245 $ac_includes_default
3246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254if ac_fn_c_try_compile "$LINENO"; then :
3255 ac_cv_safe_to_define___extensions__=yes
3256else
3257 ac_cv_safe_to_define___extensions__=no
3258fi
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260fi
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3262$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3263 test $ac_cv_safe_to_define___extensions__ = yes &&
3264 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3265
3266 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3267
3268 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3269
3270 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3271
3272 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3273
3274
3275
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3283set dummy ${ac_tool_prefix}gcc; ac_word=$2
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285$as_echo_n "checking for $ac_word... " >&6; }
3286if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303done
3304 done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309CC=$ac_cv_prog_CC
3310if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312$as_echo "$CC" >&6; }
3313else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316fi
3317
3318
3319fi
3320if test -z "$ac_cv_prog_CC"; then
3321 ac_ct_CC=$CC
3322 # Extract the first word of "gcc", so it can be a program name with args.
3323set dummy gcc; ac_word=$2
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325$as_echo_n "checking for $ac_word... " >&6; }
3326if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328else
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_CC="gcc"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343done
3344 done
3345IFS=$as_save_IFS
3346
3347fi
3348fi
3349ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350if test -n "$ac_ct_CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352$as_echo "$ac_ct_CC" >&6; }
3353else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356fi
3357
3358 if test "x$ac_ct_CC" = x; then
3359 CC=""
3360 else
3361 case $cross_compiling:$ac_tool_warned in
3362yes:)
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365ac_tool_warned=yes ;;
3366esac
3367 CC=$ac_ct_CC
3368 fi
3369else
3370 CC="$ac_cv_prog_CC"
3371fi
3372
3373if test -z "$CC"; then
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3376set dummy ${ac_tool_prefix}cc; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}cc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397 done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402CC=$ac_cv_prog_CC
3403if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405$as_echo "$CC" >&6; }
3406else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412 fi
3413fi
3414if test -z "$CC"; then
3415 # Extract the first word of "cc", so it can be a program name with args.
3416set dummy cc; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425 ac_prog_rejected=no
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3434 ac_prog_rejected=yes
3435 continue
3436 fi
3437 ac_cv_prog_CC="cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441done
3442 done
3443IFS=$as_save_IFS
3444
3445if test $ac_prog_rejected = yes; then
3446 # We found a bogon in the path, so make sure we never use it.
3447 set dummy $ac_cv_prog_CC
3448 shift
3449 if test $# != 0; then
3450 # We chose a different compiler from the bogus one.
3451 # However, it has the same basename, so the bogon will be chosen
3452 # first if we set CC to just the basename; use the full file name.
3453 shift
3454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3455 fi
3456fi
3457fi
3458fi
3459CC=$ac_cv_prog_CC
3460if test -n "$CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462$as_echo "$CC" >&6; }
3463else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466fi
3467
3468
3469fi
3470if test -z "$CC"; then
3471 if test -n "$ac_tool_prefix"; then
3472 for ac_prog in cl.exe
3473 do
3474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477$as_echo_n "checking for $ac_word... " >&6; }
3478if ${ac_cv_prog_CC+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495done
3496 done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501CC=$ac_cv_prog_CC
3502if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504$as_echo "$CC" >&6; }
3505else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508fi
3509
3510
3511 test -n "$CC" && break
3512 done
3513fi
3514if test -z "$CC"; then
3515 ac_ct_CC=$CC
3516 for ac_prog in cl.exe
3517do
3518 # Extract the first word of "$ac_prog", so it can be a program name with args.
3519set dummy $ac_prog; ac_word=$2
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
3522if ${ac_cv_prog_ac_ct_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524else
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_ac_ct_CC="$ac_prog"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539done
3540 done
3541IFS=$as_save_IFS
3542
3543fi
3544fi
3545ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546if test -n "$ac_ct_CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548$as_echo "$ac_ct_CC" >&6; }
3549else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551$as_echo "no" >&6; }
3552fi
3553
3554
3555 test -n "$ac_ct_CC" && break
3556done
3557
3558 if test "x$ac_ct_CC" = x; then
3559 CC=""
3560 else
3561 case $cross_compiling:$ac_tool_warned in
3562yes:)
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565ac_tool_warned=yes ;;
3566esac
3567 CC=$ac_ct_CC
3568 fi
3569fi
3570
3571fi
3572
3573
3574test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576as_fn_error $? "no acceptable C compiler found in \$PATH
3577See \`config.log' for more details" "$LINENO" 5; }
3578
3579# Provide some information about the compiler.
3580$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3581set X $ac_compile
3582ac_compiler=$2
3583for ac_option in --version -v -V -qversion; do
3584 { { ac_try="$ac_compiler $ac_option >&5"
3585case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588esac
3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590$as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3592 ac_status=$?
3593 if test -s conftest.err; then
3594 sed '10a\
3595... rest of stderr output deleted ...
3596 10q' conftest.err >conftest.er1
3597 cat conftest.er1 >&5
3598 fi
3599 rm -f conftest.er1 conftest.err
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }
3602done
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3605$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3606if ${ac_cv_c_compiler_gnu+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608else
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h. */
3611
3612int
3613main ()
3614{
3615#ifndef __GNUC__
3616 choke me
3617#endif
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624 ac_compiler_gnu=yes
3625else
3626 ac_compiler_gnu=no
3627fi
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629ac_cv_c_compiler_gnu=$ac_compiler_gnu
3630
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3633$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3634if test $ac_compiler_gnu = yes; then
3635 GCC=yes
3636else
3637 GCC=
3638fi
3639ac_test_CFLAGS=${CFLAGS+set}
3640ac_save_CFLAGS=$CFLAGS
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3642$as_echo_n "checking whether $CC accepts -g... " >&6; }
3643if ${ac_cv_prog_cc_g+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 ac_save_c_werror_flag=$ac_c_werror_flag
3647 ac_c_werror_flag=yes
3648 ac_cv_prog_cc_g=no
3649 CFLAGS="-g"
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651/* end confdefs.h. */
3652
3653int
3654main ()
3655{
3656
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_g=yes
3663else
3664 CFLAGS=""
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h. */
3667
3668int
3669main ()
3670{
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676if ac_fn_c_try_compile "$LINENO"; then :
3677
3678else
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3680 CFLAGS="-g"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_g=yes
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3703$as_echo "$ac_cv_prog_cc_g" >&6; }
3704if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3708 CFLAGS="-g -O2"
3709 else
3710 CFLAGS="-g"
3711 fi
3712else
3713 if test "$GCC" = yes; then
3714 CFLAGS="-O2"
3715 else
3716 CFLAGS=
3717 fi
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3721if ${ac_cv_prog_cc_c89+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723else
3724 ac_cv_prog_cc_c89=no
3725ac_save_CC=$CC
3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h. */
3728#include <stdarg.h>
3729#include <stdio.h>
3730struct stat;
3731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732struct buf { int x; };
3733FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734static char *e (p, i)
3735 char **p;
3736 int i;
3737{
3738 return p[i];
3739}
3740static char *f (char * (*g) (char **, int), char **p, ...)
3741{
3742 char *s;
3743 va_list v;
3744 va_start (v,p);
3745 s = g (p, va_arg (v,int));
3746 va_end (v);
3747 return s;
3748}
3749
3750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
3753 as 'x'. The following induces an error, until -std is added to get
3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
3756 that's true only with -std. */
3757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3758
3759/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3760 inside strings and character constants. */
3761#define FOO(x) 'x'
3762int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3763
3764int test (int i, double x);
3765struct s1 {int (*f) (int a);};
3766struct s2 {int (*f) (double a);};
3767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3768int argc;
3769char **argv;
3770int
3771main ()
3772{
3773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3780do
3781 CC="$ac_save_CC $ac_arg"
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_prog_cc_c89=$ac_arg
3784fi
3785rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
3787done
3788rm -f conftest.$ac_ext
3789CC=$ac_save_CC
3790
3791fi
3792# AC_CACHE_VAL
3793case "x$ac_cv_prog_cc_c89" in
3794 x)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3796$as_echo "none needed" >&6; } ;;
3797 xno)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3799$as_echo "unsupported" >&6; } ;;
3800 *)
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3803$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3804esac
3805if test "x$ac_cv_prog_cc_c89" != xno; then :
3806
3807fi
3808
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815
3816for ac_header in stdint.h sys/syscall.h sys/prctl.h
3817do :
3818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3821 cat >>confdefs.h <<_ACEOF
3822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823_ACEOF
3824
3825fi
3826
3827done
3828
2540 3829
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
2542$as_echo_n "checking for library containing pthread_create... " >&6; } 3831$as_echo_n "checking for library containing pthread_create... " >&6; }
2543if test "${ac_cv_search_pthread_create+set}" = set; then : 3832if ${ac_cv_search_pthread_create+:} false; then :
2544 $as_echo_n "(cached) " >&6 3833 $as_echo_n "(cached) " >&6
2545else 3834else
2546 ac_func_search_save_LIBS=$LIBS 3835 ac_func_search_save_LIBS=$LIBS
2547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548/* end confdefs.h. */ 3837/* end confdefs.h. */
2572 if ac_fn_c_try_link "$LINENO"; then : 3861 if ac_fn_c_try_link "$LINENO"; then :
2573 ac_cv_search_pthread_create=$ac_res 3862 ac_cv_search_pthread_create=$ac_res
2574fi 3863fi
2575rm -f core conftest.err conftest.$ac_objext \ 3864rm -f core conftest.err conftest.$ac_objext \
2576 conftest$ac_exeext 3865 conftest$ac_exeext
2577 if test "${ac_cv_search_pthread_create+set}" = set; then : 3866 if ${ac_cv_search_pthread_create+:} false; then :
2578 break 3867 break
2579fi 3868fi
2580done 3869done
2581if test "${ac_cv_search_pthread_create+set}" = set; then : 3870if ${ac_cv_search_pthread_create+:} false; then :
2582 3871
2583else 3872else
2584 ac_cv_search_pthread_create=no 3873 ac_cv_search_pthread_create=no
2585fi 3874fi
2586rm conftest.$ac_ext 3875rm conftest.$ac_ext
2598fi 3887fi
2599 3888
2600 3889
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5
2602$as_echo_n "checking for utimes... " >&6; } 3891$as_echo_n "checking for utimes... " >&6; }
2603if test "${ac_cv_utimes+set}" = set; then : 3892if ${ac_cv_utimes+:} false; then :
2604 $as_echo_n "(cached) " >&6 3893 $as_echo_n "(cached) " >&6
2605else 3894else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */ 3896/* end confdefs.h. */
2608 3897
2632$as_echo "#define HAVE_UTIMES 1" >>confdefs.h 3921$as_echo "#define HAVE_UTIMES 1" >>confdefs.h
2633 3922
2634 3923
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5
2636$as_echo_n "checking for futimes... " >&6; } 3925$as_echo_n "checking for futimes... " >&6; }
2637if test "${ac_cv_futimes+set}" = set; then : 3926if ${ac_cv_futimes+:} false; then :
2638 $as_echo_n "(cached) " >&6 3927 $as_echo_n "(cached) " >&6
2639else 3928else
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641/* end confdefs.h. */ 3930/* end confdefs.h. */
2642 3931
2667$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h 3956$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h
2668 3957
2669 3958
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5
2671$as_echo_n "checking for readahead... " >&6; } 3960$as_echo_n "checking for readahead... " >&6; }
2672if test "${ac_cv_readahead+set}" = set; then : 3961if ${ac_cv_readahead+:} false; then :
2673 $as_echo_n "(cached) " >&6 3962 $as_echo_n "(cached) " >&6
2674else 3963else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h. */ 3965/* end confdefs.h. */
2677 3966
3967#include <sys/types.h>
2678#include <fcntl.h> 3968#include <fcntl.h>
2679int main (void) 3969int main (void)
2680{ 3970{
2681 int fd = 0; 3971 int fd = 0;
2682 size_t count = 2; 3972 size_t count = 2;
2700$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h 3990$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h
2701 3991
2702 3992
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
2704$as_echo_n "checking for fdatasync... " >&6; } 3994$as_echo_n "checking for fdatasync... " >&6; }
2705if test "${ac_cv_fdatasync+set}" = set; then : 3995if ${ac_cv_fdatasync+:} false; then :
2706 $as_echo_n "(cached) " >&6 3996 $as_echo_n "(cached) " >&6
2707else 3997else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */ 3999/* end confdefs.h. */
2710 4000
2729$as_echo "$ac_cv_fdatasync" >&6; } 4019$as_echo "$ac_cv_fdatasync" >&6; }
2730test $ac_cv_fdatasync = yes && 4020test $ac_cv_fdatasync = yes &&
2731$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 4021$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
2732 4022
2733 4023
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread and pwrite" >&5
2735$as_echo_n "checking for pread and pwrite... " >&6; }
2736if test "${ac_cv_preadwrite+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738else
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741
2742#include <unistd.h>
2743int main (void)
2744{
2745 int fd = 0;
2746 size_t count = 1;
2747 char buf;
2748 off_t offset = 1;
2749 ssize_t res;
2750 res = pread (fd, &buf, count, offset);
2751 res = pwrite (fd, &buf, count, offset);
2752 return 0;
2753}
2754
2755_ACEOF
2756if ac_fn_c_try_link "$LINENO"; then :
2757 ac_cv_preadwrite=yes
2758else
2759 ac_cv_preadwrite=no
2760fi
2761rm -f core conftest.err conftest.$ac_objext \
2762 conftest$ac_exeext conftest.$ac_ext
2763fi
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_preadwrite" >&5
2765$as_echo "$ac_cv_preadwrite" >&6; }
2766test $ac_cv_preadwrite = yes &&
2767$as_echo "#define HAVE_PREADWRITE 1" >>confdefs.h
2768
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
2771$as_echo_n "checking for sendfile... " >&6; } 4025$as_echo_n "checking for sendfile... " >&6; }
2772if test "${ac_cv_sendfile+set}" = set; then : 4026if ${ac_cv_sendfile+:} false; then :
2773 $as_echo_n "(cached) " >&6 4027 $as_echo_n "(cached) " >&6
2774else 4028else
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776/* end confdefs.h. */ 4030/* end confdefs.h. */
2777 4031
2791 int fd = 0; 4045 int fd = 0;
2792 off_t offset = 1; 4046 off_t offset = 1;
2793 size_t count = 2; 4047 size_t count = 2;
2794 ssize_t res; 4048 ssize_t res;
2795#if __linux 4049#if __linux
2796 res = sendfile (fd, fd, offset, count); 4050 res = sendfile (fd, fd, &offset, count);
2797#elif __FreeBSD__ 4051#elif __FreeBSD__
2798 res = sendfile (fd, fd, offset, count, 0, &offset, 0); 4052 res = sendfile (fd, fd, offset, count, 0, &offset, 0);
2799#elif __hpux 4053#elif __hpux
2800 res = sendfile (fd, fd, offset, count, 0, 0); 4054 res = sendfile (fd, fd, offset, count, 0, 0);
2801#endif 4055#endif
2817$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h 4071$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
2818 4072
2819 4073
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5
2821$as_echo_n "checking for sync_file_range... " >&6; } 4075$as_echo_n "checking for sync_file_range... " >&6; }
2822if test "${ac_cv_sync_file_range+set}" = set; then : 4076if ${ac_cv_sync_file_range+:} false; then :
2823 $as_echo_n "(cached) " >&6 4077 $as_echo_n "(cached) " >&6
2824else 4078else
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826/* end confdefs.h. */ 4080/* end confdefs.h. */
2827 4081
4082#include <sys/types.h>
2828#include <fcntl.h> 4083#include <fcntl.h>
2829int main (void) 4084int main (void)
2830{ 4085{
2831 int fd = 0; 4086 int fd = 0;
2832 off64_t offset = 1; 4087 off64_t offset = 1;
2850$as_echo "$ac_cv_sync_file_range" >&6; } 4105$as_echo "$ac_cv_sync_file_range" >&6; }
2851test $ac_cv_sync_file_range = yes && 4106test $ac_cv_sync_file_range = yes &&
2852$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 4107$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
2853 4108
2854 4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4111$as_echo_n "checking for fallocate... " >&6; }
4112if ${ac_cv_linux_fallocate+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114else
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h. */
4117
4118#include <fcntl.h>
4119int main (void)
4120{
4121 int fd = 0;
4122 int mode = 0;
4123 off_t offset = 1;
4124 off_t len = 1;
4125 int res;
4126 res = fallocate (fd, mode, offset, len);
4127 return 0;
4128}
4129
4130_ACEOF
4131if ac_fn_c_try_link "$LINENO"; then :
4132 ac_cv_linux_fallocate=yes
4133else
4134 ac_cv_linux_fallocate=no
4135fi
4136rm -f core conftest.err conftest.$ac_objext \
4137 conftest$ac_exeext conftest.$ac_ext
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5
4140$as_echo "$ac_cv_linux_fallocate" >&6; }
4141test $ac_cv_linux_fallocate = yes &&
4142$as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
4143
4144
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
4146$as_echo_n "checking for sys_syncfs... " >&6; }
4147if ${ac_cv_sys_syncfs+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149else
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h. */
4152
4153#include <unistd.h>
4154#include <sys/syscall.h>
4155int main (void)
4156{
4157 int res = syscall (__NR_syncfs, (int)0);
4158}
4159
4160_ACEOF
4161if ac_fn_c_try_link "$LINENO"; then :
4162 ac_cv_sys_syncfs=yes
4163else
4164 ac_cv_sys_syncfs=no
4165fi
4166rm -f core conftest.err conftest.$ac_objext \
4167 conftest$ac_exeext conftest.$ac_ext
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5
4170$as_echo "$ac_cv_sys_syncfs" >&6; }
4171test $ac_cv_sys_syncfs = yes &&
4172$as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h
4173
4174
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5
4176$as_echo_n "checking for prctl_set_name... " >&6; }
4177if ${ac_cv_prctl_set_name+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179else
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h. */
4182
4183#include <sys/prctl.h>
4184int main (void)
4185{
4186 char *name = "test123";
4187 int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0);
4188}
4189
4190_ACEOF
4191if ac_fn_c_try_link "$LINENO"; then :
4192 ac_cv_prctl_set_name=yes
4193else
4194 ac_cv_prctl_set_name=no
4195fi
4196rm -f core conftest.err conftest.$ac_objext \
4197 conftest$ac_exeext conftest.$ac_ext
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5
4200$as_echo "$ac_cv_prctl_set_name" >&6; }
4201test $ac_cv_prctl_set_name = yes &&
4202$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4203
4204
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5
4206$as_echo_n "checking for posix_close... " >&6; }
4207if ${ac_cv_posix_close+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209else
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h. */
4212
4213#include <unistd.h>
4214int res;
4215int main (void)
4216{
4217 res = posix_close (0, 0); /* we do not need any flags */
4218 return 0;
4219}
4220
4221_ACEOF
4222if ac_fn_c_try_link "$LINENO"; then :
4223 ac_cv_posix_close=yes
4224else
4225 ac_cv_posix_close=no
4226fi
4227rm -f core conftest.err conftest.$ac_objext \
4228 conftest$ac_exeext conftest.$ac_ext
4229fi
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5
4231$as_echo "$ac_cv_posix_close" >&6; }
4232test $ac_cv_posix_close = yes &&
4233$as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h
4234
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5
4237$as_echo_n "checking for renameat2... " >&6; }
4238if ${ac_cv_renameat2+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243
4244#include <unistd.h>
4245#include <sys/syscall.h>
4246#include <linux/fs.h>
4247int res;
4248int main (void)
4249{
4250 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE);
4251 return 0;
4252}
4253
4254_ACEOF
4255if ac_fn_c_try_link "$LINENO"; then :
4256 ac_cv_renameat2=yes
4257else
4258 ac_cv_renameat2=no
4259fi
4260rm -f core conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5
4264$as_echo "$ac_cv_renameat2" >&6; }
4265test $ac_cv_renameat2 = yes &&
4266$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h
4267
4268
4269
4270
4271# for these to work, you need to run autoheader in IO::AIO, not libeio :(
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5
4274$as_echo_n "checking for set/getrlimit... " >&6; }
4275if ${ac_cv_rlimits+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h. */
4280
4281#include <sys/time.h>
4282#include <sys/resource.h>
4283int main (void)
4284{
4285 struct rlimit srl;
4286 int res;
4287 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
4288 res = getrlimit (RLIMIT_NOFILE, &srl);
4289 res = setrlimit (RLIMIT_NOFILE, &srl);
4290 return 0;
4291}
4292
4293_ACEOF
4294if ac_fn_c_try_link "$LINENO"; then :
4295 ac_cv_rlimits=yes
4296else
4297 ac_cv_rlimits=no
4298fi
4299rm -f core conftest.err conftest.$ac_objext \
4300 conftest$ac_exeext conftest.$ac_ext
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5
4303$as_echo "$ac_cv_rlimits" >&6; }
4304test $ac_cv_rlimits = yes &&
4305$as_echo "#define HAVE_RLIMITS 1" >>confdefs.h
2855 4306
2856 4307
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
2858$as_echo_n "checking for posix_madvise... " >&6; } 4309$as_echo_n "checking for posix_madvise... " >&6; }
2859if test "${ac_cv_posix_madvise+set}" = set; then : 4310if ${ac_cv_posix_madvise+:} false; then :
2860 $as_echo_n "(cached) " >&6 4311 $as_echo_n "(cached) " >&6
2861else 4312else
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */ 4314/* end confdefs.h. */
2864 4315
2888$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h 4339$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h
2889 4340
2890 4341
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
2892$as_echo_n "checking for posix_fadvise... " >&6; } 4343$as_echo_n "checking for posix_fadvise... " >&6; }
2893if test "${ac_cv_posix_fadvise+set}" = set; then : 4344if ${ac_cv_posix_fadvise+:} false; then :
2894 $as_echo_n "(cached) " >&6 4345 $as_echo_n "(cached) " >&6
2895else 4346else
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h. */ 4348/* end confdefs.h. */
2898 4349
2920fi 4371fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5
2922$as_echo "$ac_cv_posix_fadvise" >&6; } 4373$as_echo "$ac_cv_posix_fadvise" >&6; }
2923test $ac_cv_posix_fadvise = yes && 4374test $ac_cv_posix_fadvise = yes &&
2924$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 4375$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
4376
4377
4378for ac_header in linux/fs.h linux/fiemap.h
4379do :
4380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4382if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4383 cat >>confdefs.h <<_ACEOF
4384#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385_ACEOF
4386
4387fi
4388
4389done
4390
4391
4392for ac_header in sys/sysmacros.h
4393do :
4394 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4395if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
4396 cat >>confdefs.h <<_ACEOF
4397#define HAVE_SYS_SYSMACROS_H 1
4398_ACEOF
4399
4400fi
4401
4402done
4403
4404
4405for ac_header in sys/mkdev.h
4406do :
4407 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4408if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
4409 cat >>confdefs.h <<_ACEOF
4410#define HAVE_SYS_MKDEV_H 1
4411_ACEOF
4412
4413fi
4414
4415done
4416
4417
4418for ac_header in sys/uio.h
4419do :
4420 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4421if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4422 cat >>confdefs.h <<_ACEOF
4423#define HAVE_SYS_UIO_H 1
4424_ACEOF
4425
4426fi
4427
4428done
4429
4430
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4433$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4434if ${ac_cv_linux_splice+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436else
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438/* end confdefs.h. */
4439
4440#include <sys/types.h>
4441#include <fcntl.h>
4442#include <sys/uio.h>
4443int main (void)
4444{
4445 ssize_t res;
4446 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
4447 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
4448 res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT);
4449 return 0;
4450}
4451
4452_ACEOF
4453if ac_fn_c_try_link "$LINENO"; then :
4454 ac_cv_linux_splice=yes
4455else
4456 ac_cv_linux_splice=no
4457fi
4458rm -f core conftest.err conftest.$ac_objext \
4459 conftest$ac_exeext conftest.$ac_ext
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5
4462$as_echo "$ac_cv_linux_splice" >&6; }
4463test $ac_cv_linux_splice = yes &&
4464$as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h
4465
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5
4468$as_echo_n "checking for pipe2... " >&6; }
4469if ${ac_cv_pipe2+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471else
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h. */
4474
4475#include <fcntl.h>
4476#include <unistd.h>
4477int main (void)
4478{
4479 int res;
4480 res = pipe2 (0, 0);
4481 return 0;
4482}
4483
4484_ACEOF
4485if ac_fn_c_try_link "$LINENO"; then :
4486 ac_cv_pipe2=yes
4487else
4488 ac_cv_pipe2=no
4489fi
4490rm -f core conftest.err conftest.$ac_objext \
4491 conftest$ac_exeext conftest.$ac_ext
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5
4494$as_echo "$ac_cv_pipe2" >&6; }
4495test $ac_cv_pipe2 = yes &&
4496$as_echo "#define HAVE_PIPE2 1" >>confdefs.h
4497
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
4500$as_echo_n "checking for eventfd... " >&6; }
4501if ${ac_cv_eventfd+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503else
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */
4506
4507#include <sys/eventfd.h>
4508int main (void)
4509{
4510 int res;
4511 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4512 return 0;
4513}
4514
4515_ACEOF
4516if ac_fn_c_try_link "$LINENO"; then :
4517 ac_cv_eventfd=yes
4518else
4519 ac_cv_eventfd=no
4520fi
4521rm -f core conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5
4525$as_echo "$ac_cv_eventfd" >&6; }
4526test $ac_cv_eventfd = yes &&
4527$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
4528
4529
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5
4531$as_echo_n "checking for timerfd_*... " >&6; }
4532if ${ac_cv_timerfd+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h. */
4537
4538#include <sys/timerfd.h>
4539int main (void)
4540{
4541 struct itimerspec its;
4542 int res;
4543 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4544 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
4545 res = timerfd_gettime (res, &its);
4546 return 0;
4547}
4548
4549_ACEOF
4550if ac_fn_c_try_link "$LINENO"; then :
4551 ac_cv_timerfd=yes
4552else
4553 ac_cv_timerfd=no
4554fi
4555rm -f core conftest.err conftest.$ac_objext \
4556 conftest$ac_exeext conftest.$ac_ext
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5
4559$as_echo "$ac_cv_timerfd" >&6; }
4560test $ac_cv_timerfd = yes &&
4561$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4562
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
4565$as_echo_n "checking for memfd_create... " >&6; }
4566if ${ac_cv_memfd_create+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h. */
4571
4572#include <sys/mman.h>
4573int main (void)
4574{
4575 int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING);
4576 return 0;
4577}
4578
4579_ACEOF
4580if ac_fn_c_try_link "$LINENO"; then :
4581 ac_cv_memfd_create=yes
4582else
4583 ac_cv_memfd_create=no
4584fi
4585rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext conftest.$ac_ext
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5
4589$as_echo "$ac_cv_memfd_create" >&6; }
4590test $ac_cv_memfd_create = yes &&
4591$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
4592
4593
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4595$as_echo_n "checking for copy_file_range... " >&6; }
4596if ${ac_cv_copy_file_range+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598else
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
4601
4602#include <unistd.h>
4603#include <sys/syscall.h>
4604/*#include <linux/copy.h>*/
4605int main (void)
4606{
4607 int res;
4608 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
4609 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
4610 return 0;
4611}
4612
4613_ACEOF
4614if ac_fn_c_try_link "$LINENO"; then :
4615 ac_cv_copy_file_range=yes
4616else
4617 ac_cv_copy_file_range=no
4618fi
4619rm -f core conftest.err conftest.$ac_objext \
4620 conftest$ac_exeext conftest.$ac_ext
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5
4623$as_echo "$ac_cv_copy_file_range" >&6; }
4624test $ac_cv_copy_file_range = yes &&
4625$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4626
4627
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
4629$as_echo_n "checking for st_xtimensec... " >&6; }
4630if ${ac_cv_xtimensec+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632else
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634/* end confdefs.h. */
4635
4636#include "EXTERN.h"
4637#include "perl.h"
4638#include "XSUB.h"
4639
4640int main (void)
4641{
4642 return PL_statcache.st_atimensec
4643 + PL_statcache.st_mtimensec
4644 + PL_statcache.st_ctimensec;
4645}
4646
4647_ACEOF
4648if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_cv_xtimensec=yes
4650else
4651 ac_cv_xtimensec=no
4652fi
4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5
4656$as_echo "$ac_cv_xtimensec" >&6; }
4657test $ac_cv_xtimensec = yes &&
4658$as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h
4659
4660
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5
4662$as_echo_n "checking for st_xtimespec... " >&6; }
4663if ${ac_cv_xtimespec+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h. */
4668
4669#include "EXTERN.h"
4670#include "perl.h"
4671#include "XSUB.h"
4672
4673int main (void)
4674{
4675 return PL_statcache.st_atim.tv_nsec
4676 + PL_statcache.st_mtim.tv_nsec
4677 + PL_statcache.st_ctim.tv_nsec;
4678}
4679
4680_ACEOF
4681if ac_fn_c_try_compile "$LINENO"; then :
4682 ac_cv_xtimespec=yes
4683else
4684 ac_cv_xtimespec=no
4685fi
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
4689$as_echo "$ac_cv_xtimespec" >&6; }
4690test $ac_cv_xtimespec = yes &&
4691$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4692
4693
4694# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
4695
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5
4697$as_echo_n "checking for st_birthtimensec... " >&6; }
4698if ${ac_cv_birthtimensec+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700else
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h. */
4703
4704#include "EXTERN.h"
4705#include "perl.h"
4706#include "XSUB.h"
4707
4708int main (void)
4709{
4710 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
4711}
4712
4713_ACEOF
4714if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_birthtimensec=yes
4716else
4717 ac_cv_birthtimensec=no
4718fi
4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
4722$as_echo "$ac_cv_birthtimensec" >&6; }
4723test $ac_cv_birthtimensec = yes &&
4724$as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h
4725
4726
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5
4728$as_echo_n "checking for st_birthtimespec... " >&6; }
4729if ${ac_cv_birthtimespec+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h. */
4734
4735#include "EXTERN.h"
4736#include "perl.h"
4737#include "XSUB.h"
4738
4739int main (void)
4740{
4741 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
4742}
4743
4744_ACEOF
4745if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_birthtimespec=yes
4747else
4748 ac_cv_birthtimespec=no
4749fi
4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
4753$as_echo "$ac_cv_birthtimespec" >&6; }
4754test $ac_cv_birthtimespec = yes &&
4755$as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5
4759$as_echo_n "checking for st_gen... " >&6; }
4760if ${ac_cv_st_gen+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
4765
4766#include "EXTERN.h"
4767#include "perl.h"
4768#include "XSUB.h"
4769
4770int main (void)
4771{
4772 return PL_statcache.st_gen;
4773}
4774
4775_ACEOF
4776if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_st_gen=yes
4778else
4779 ac_cv_st_gen=no
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4784$as_echo "$ac_cv_st_gen" >&6; }
4785test $ac_cv_st_gen = yes &&
4786$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4787
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for statx" >&5
4790$as_echo_n "checking for statx... " >&6; }
4791if ${ac_cv_statx+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793else
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h. */
4796
4797#include <sys/types.h>
4798#include <sys/stat.h>
4799#include <unistd.h>
4800#include <fcntl.h>
4801int res;
4802int main (void)
4803{
4804 struct statx sx;
4805 int res;
4806 res = statx (AT_FDCWD, ".",
4807 AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
4808 STATX_ALL, &sx);
4809 STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
4810 STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
4811 STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
4812 return 0;
4813}
4814
4815_ACEOF
4816if ac_fn_c_try_link "$LINENO"; then :
4817 ac_cv_statx=yes
4818else
4819 ac_cv_statx=no
4820fi
4821rm -f core conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5
4825$as_echo "$ac_cv_statx" >&6; }
4826test $ac_cv_statx = yes &&
4827$as_echo "#define HAVE_STATX 1" >>confdefs.h
2925 4828
2926 4829
2927cat >confcache <<\_ACEOF 4830cat >confcache <<\_ACEOF
2928# This file is a shell script that caches the results of configure 4831# This file is a shell script that caches the results of configure
2929# tests run on this system so they can be shared between configure 4832# tests run on this system so they can be shared between configure
2986 t end 4889 t end
2987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2988 :end' >>confcache 4891 :end' >>confcache
2989if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4892if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2990 if test -w "$cache_file"; then 4893 if test -w "$cache_file"; then
2991 test "x$cache_file" != "x/dev/null" && 4894 if test "x$cache_file" != "x/dev/null"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2993$as_echo "$as_me: updating cache $cache_file" >&6;} 4896$as_echo "$as_me: updating cache $cache_file" >&6;}
4897 if test ! -f "$cache_file" || test -h "$cache_file"; then
2994 cat confcache >$cache_file 4898 cat confcache >"$cache_file"
4899 else
4900 case $cache_file in #(
4901 */* | ?:*)
4902 mv -f confcache "$cache_file"$$ &&
4903 mv -f "$cache_file"$$ "$cache_file" ;; #(
4904 *)
4905 mv -f confcache "$cache_file" ;;
4906 esac
4907 fi
4908 fi
2995 else 4909 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4911$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2998 fi 4912 fi
2999fi 4913fi
3021 4935
3022LTLIBOBJS=$ac_ltlibobjs 4936LTLIBOBJS=$ac_ltlibobjs
3023 4937
3024 4938
3025 4939
3026: ${CONFIG_STATUS=./config.status} 4940: "${CONFIG_STATUS=./config.status}"
3027ac_write_fail=0 4941ac_write_fail=0
3028ac_clean_files_save=$ac_clean_files 4942ac_clean_files_save=$ac_clean_files
3029ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4943ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3031$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4945$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3122# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5036# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3123# splitting by setting IFS to empty value.) 5037# splitting by setting IFS to empty value.)
3124IFS=" "" $as_nl" 5038IFS=" "" $as_nl"
3125 5039
3126# Find who we are. Look in the path if we contain no directory separator. 5040# Find who we are. Look in the path if we contain no directory separator.
5041as_myself=
3127case $0 in #(( 5042case $0 in #((
3128 *[\\/]* ) as_myself=$0 ;; 5043 *[\\/]* ) as_myself=$0 ;;
3129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5044 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH 5045for as_dir in $PATH
3131do 5046do
3317 if ln -s conf$$.file conf$$ 2>/dev/null; then 5232 if ln -s conf$$.file conf$$ 2>/dev/null; then
3318 as_ln_s='ln -s' 5233 as_ln_s='ln -s'
3319 # ... but there are two gotchas: 5234 # ... but there are two gotchas:
3320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3322 # In both cases, we have to default to `cp -p'. 5237 # In both cases, we have to default to `cp -pR'.
3323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3324 as_ln_s='cp -p' 5239 as_ln_s='cp -pR'
3325 elif ln conf$$.file conf$$ 2>/dev/null; then 5240 elif ln conf$$.file conf$$ 2>/dev/null; then
3326 as_ln_s=ln 5241 as_ln_s=ln
3327 else 5242 else
3328 as_ln_s='cp -p' 5243 as_ln_s='cp -pR'
3329 fi 5244 fi
3330else 5245else
3331 as_ln_s='cp -p' 5246 as_ln_s='cp -pR'
3332fi 5247fi
3333rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5248rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3334rmdir conf$$.dir 2>/dev/null 5249rmdir conf$$.dir 2>/dev/null
3335 5250
3336 5251
3386else 5301else
3387 test -d ./-p && rmdir ./-p 5302 test -d ./-p && rmdir ./-p
3388 as_mkdir_p=false 5303 as_mkdir_p=false
3389fi 5304fi
3390 5305
3391if test -x / >/dev/null 2>&1; then 5306
5307# as_fn_executable_p FILE
5308# -----------------------
5309# Test if FILE is an executable regular file.
5310as_fn_executable_p ()
5311{
5312 test -f "$1" && test -x "$1"
5313} # as_fn_executable_p
3392 as_test_x='test -x' 5314as_test_x='test -x'
3393else 5315as_executable_p=as_fn_executable_p
3394 if ls -dL / >/dev/null 2>&1; then
3395 as_ls_L_option=L
3396 else
3397 as_ls_L_option=
3398 fi
3399 as_test_x='
3400 eval sh -c '\''
3401 if test -d "$1"; then
3402 test -d "$1/.";
3403 else
3404 case $1 in #(
3405 -*)set "./$1";;
3406 esac;
3407 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3408 ???[sx]*):;;*)false;;esac;fi
3409 '\'' sh
3410 '
3411fi
3412as_executable_p=$as_test_x
3413 5316
3414# Sed expression to map a string onto a valid CPP name. 5317# Sed expression to map a string onto a valid CPP name.
3415as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5318as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3416 5319
3417# Sed expression to map a string onto a valid variable name. 5320# Sed expression to map a string onto a valid variable name.
3429# Save the log message, to keep $0 and so on meaningful, and to 5332# Save the log message, to keep $0 and so on meaningful, and to
3430# report actual input values of CONFIG_FILES etc. instead of their 5333# report actual input values of CONFIG_FILES etc. instead of their
3431# values after options handling. 5334# values after options handling.
3432ac_log=" 5335ac_log="
3433This file was extended by $as_me, which was 5336This file was extended by $as_me, which was
3434generated by GNU Autoconf 2.67. Invocation command line was 5337generated by GNU Autoconf 2.69. Invocation command line was
3435 5338
3436 CONFIG_FILES = $CONFIG_FILES 5339 CONFIG_FILES = $CONFIG_FILES
3437 CONFIG_HEADERS = $CONFIG_HEADERS 5340 CONFIG_HEADERS = $CONFIG_HEADERS
3438 CONFIG_LINKS = $CONFIG_LINKS 5341 CONFIG_LINKS = $CONFIG_LINKS
3439 CONFIG_COMMANDS = $CONFIG_COMMANDS 5342 CONFIG_COMMANDS = $CONFIG_COMMANDS
3482_ACEOF 5385_ACEOF
3483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3484ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5387ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3485ac_cs_version="\\ 5388ac_cs_version="\\
3486config.status 5389config.status
3487configured by $0, generated by GNU Autoconf 2.67, 5390configured by $0, generated by GNU Autoconf 2.69,
3488 with options \\"\$ac_cs_config\\" 5391 with options \\"\$ac_cs_config\\"
3489 5392
3490Copyright (C) 2010 Free Software Foundation, Inc. 5393Copyright (C) 2012 Free Software Foundation, Inc.
3491This config.status script is free software; the Free Software Foundation 5394This config.status script is free software; the Free Software Foundation
3492gives unlimited permission to copy, distribute and modify it." 5395gives unlimited permission to copy, distribute and modify it."
3493 5396
3494ac_pwd='$ac_pwd' 5397ac_pwd='$ac_pwd'
3495srcdir='$srcdir' 5398srcdir='$srcdir'
3565fi 5468fi
3566 5469
3567_ACEOF 5470_ACEOF
3568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3569if \$ac_cs_recheck; then 5472if \$ac_cs_recheck; then
3570 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5473 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3571 shift 5474 shift
3572 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5475 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3573 CONFIG_SHELL='$SHELL' 5476 CONFIG_SHELL='$SHELL'
3574 export CONFIG_SHELL 5477 export CONFIG_SHELL
3575 exec "\$@" 5478 exec "\$@"
3594 5497
3595# Handling of arguments. 5498# Handling of arguments.
3596for ac_config_target in $ac_config_targets 5499for ac_config_target in $ac_config_targets
3597do 5500do
3598 case $ac_config_target in 5501 case $ac_config_target in
3599 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; 5502 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3600 5503
3601 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 5504 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3602 esac 5505 esac
3603done 5506done
3604 5507
3605 5508
3606# If the user did not use the arguments to specify the items to instantiate, 5509# If the user did not use the arguments to specify the items to instantiate,
3617# Hook for its removal unless debugging. 5520# Hook for its removal unless debugging.
3618# Note that there is a small window in which the directory will not be cleaned: 5521# Note that there is a small window in which the directory will not be cleaned:
3619# after its creation but before its name has been assigned to `$tmp'. 5522# after its creation but before its name has been assigned to `$tmp'.
3620$debug || 5523$debug ||
3621{ 5524{
3622 tmp= 5525 tmp= ac_tmp=
3623 trap 'exit_status=$? 5526 trap 'exit_status=$?
5527 : "${ac_tmp:=$tmp}"
3624 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5528 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3625' 0 5529' 0
3626 trap 'as_fn_exit 1' 1 2 13 15 5530 trap 'as_fn_exit 1' 1 2 13 15
3627} 5531}
3628# Create a (secure) tmp directory for tmp files. 5532# Create a (secure) tmp directory for tmp files.
3629 5533
3630{ 5534{
3631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5535 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3632 test -n "$tmp" && test -d "$tmp" 5536 test -d "$tmp"
3633} || 5537} ||
3634{ 5538{
3635 tmp=./conf$$-$RANDOM 5539 tmp=./conf$$-$RANDOM
3636 (umask 077 && mkdir "$tmp") 5540 (umask 077 && mkdir "$tmp")
3637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5541} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5542ac_tmp=$tmp
3638 5543
3639# Set up the scripts for CONFIG_HEADERS section. 5544# Set up the scripts for CONFIG_HEADERS section.
3640# No need to generate them if there are no CONFIG_HEADERS. 5545# No need to generate them if there are no CONFIG_HEADERS.
3641# This happens for instance with `./config.status Makefile'. 5546# This happens for instance with `./config.status Makefile'.
3642if test -n "$CONFIG_HEADERS"; then 5547if test -n "$CONFIG_HEADERS"; then
3643cat >"$tmp/defines.awk" <<\_ACAWK || 5548cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3644BEGIN { 5549BEGIN {
3645_ACEOF 5550_ACEOF
3646 5551
3647# Transform confdefs.h into an awk script `defines.awk', embedded as 5552# Transform confdefs.h into an awk script `defines.awk', embedded as
3648# here-document in config.status, that substitutes the proper values into 5553# here-document in config.status, that substitutes the proper values into
3650 5555
3651# Create a delimiter string that does not exist in confdefs.h, to ease 5556# Create a delimiter string that does not exist in confdefs.h, to ease
3652# handling of long lines. 5557# handling of long lines.
3653ac_delim='%!_!# ' 5558ac_delim='%!_!# '
3654for ac_last_try in false false :; do 5559for ac_last_try in false false :; do
3655 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 5560 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3656 if test -z "$ac_t"; then 5561 if test -z "$ac_tt"; then
3657 break 5562 break
3658 elif $ac_last_try; then 5563 elif $ac_last_try; then
3659 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5564 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3660 else 5565 else
3661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3752 case $ac_tag in 5657 case $ac_tag in
3753 :[FHLC]) ac_mode=$ac_tag; continue;; 5658 :[FHLC]) ac_mode=$ac_tag; continue;;
3754 esac 5659 esac
3755 case $ac_mode$ac_tag in 5660 case $ac_mode$ac_tag in
3756 :[FHL]*:*);; 5661 :[FHL]*:*);;
3757 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 5662 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3758 :[FH]-) ac_tag=-:-;; 5663 :[FH]-) ac_tag=-:-;;
3759 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5664 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3760 esac 5665 esac
3761 ac_save_IFS=$IFS 5666 ac_save_IFS=$IFS
3762 IFS=: 5667 IFS=:
3771 :[FH]) 5676 :[FH])
3772 ac_file_inputs= 5677 ac_file_inputs=
3773 for ac_f 5678 for ac_f
3774 do 5679 do
3775 case $ac_f in 5680 case $ac_f in
3776 -) ac_f="$tmp/stdin";; 5681 -) ac_f="$ac_tmp/stdin";;
3777 *) # Look for the file first in the build tree, then in the source tree 5682 *) # Look for the file first in the build tree, then in the source tree
3778 # (if the path is not absolute). The absolute path cannot be DOS-style, 5683 # (if the path is not absolute). The absolute path cannot be DOS-style,
3779 # because $ac_f cannot contain `:'. 5684 # because $ac_f cannot contain `:'.
3780 test -f "$ac_f" || 5685 test -f "$ac_f" ||
3781 case $ac_f in 5686 case $ac_f in
3782 [\\/$]*) false;; 5687 [\\/$]*) false;;
3783 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5688 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3784 esac || 5689 esac ||
3785 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 5690 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3786 esac 5691 esac
3787 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5692 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3788 as_fn_append ac_file_inputs " '$ac_f'" 5693 as_fn_append ac_file_inputs " '$ac_f'"
3789 done 5694 done
3790 5695
3806 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5711 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3807 *) ac_sed_conf_input=$configure_input;; 5712 *) ac_sed_conf_input=$configure_input;;
3808 esac 5713 esac
3809 5714
3810 case $ac_tag in 5715 case $ac_tag in
3811 *:-:* | *:-) cat >"$tmp/stdin" \ 5716 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3813 esac 5718 esac
3814 ;; 5719 ;;
3815 esac 5720 esac
3816 5721
3817 ac_dir=`$as_dirname -- "$ac_file" || 5722 ac_dir=`$as_dirname -- "$ac_file" ||
3880 # CONFIG_HEADER 5785 # CONFIG_HEADER
3881 # 5786 #
3882 if test x"$ac_file" != x-; then 5787 if test x"$ac_file" != x-; then
3883 { 5788 {
3884 $as_echo "/* $configure_input */" \ 5789 $as_echo "/* $configure_input */" \
3885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 5790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
3886 } >"$tmp/config.h" \ 5791 } >"$ac_tmp/config.h" \
3887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3888 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 5793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3890$as_echo "$as_me: $ac_file is unchanged" >&6;} 5795$as_echo "$as_me: $ac_file is unchanged" >&6;}
3891 else 5796 else
3892 rm -f "$ac_file" 5797 rm -f "$ac_file"
3893 mv "$tmp/config.h" "$ac_file" \ 5798 mv "$ac_tmp/config.h" "$ac_file" \
3894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3895 fi 5800 fi
3896 else 5801 else
3897 $as_echo "/* $configure_input */" \ 5802 $as_echo "/* $configure_input */" \
3898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 5803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
3899 || as_fn_error $? "could not create -" "$LINENO" 5 5804 || as_fn_error $? "could not create -" "$LINENO" 5
3900 fi 5805 fi
3901 ;; 5806 ;;
3902 5807
3903 5808
3937if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5842if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3939$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5844$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3940fi 5845fi
3941 5846
5847

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines