| 812 |
|
enable_epoll |
| 813 |
|
enable_devpoll |
| 814 |
|
enable_poll |
| 815 |
– |
enable_select |
| 815 |
|
enable_debugging |
| 816 |
|
enable_warnings |
| 817 |
|
' |
| 1467 |
|
--enable-epoll Force epoll usage. |
| 1468 |
|
--enable-devpoll Force devpoll usage. |
| 1469 |
|
--enable-poll Force poll usage. |
| 1471 |
– |
--enable-select Force select usage. |
| 1470 |
|
--enable-debugging Enable debugging. |
| 1471 |
|
--enable-warnings Enable compiler warnings. |
| 1472 |
|
|
| 13213 |
|
fi |
| 13214 |
|
|
| 13215 |
|
|
| 13218 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5 |
| 13219 |
– |
$as_echo_n "checking whether C compiler accepts ... " >&6; } |
| 13220 |
– |
if ${ax_cv_check_cflags__+:} false; then : |
| 13221 |
– |
$as_echo_n "(cached) " >&6 |
| 13222 |
– |
else |
| 13223 |
– |
|
| 13224 |
– |
ax_check_save_flags=$CFLAGS |
| 13225 |
– |
CFLAGS="$CFLAGS " |
| 13226 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13227 |
– |
/* end confdefs.h. */ |
| 13216 |
|
|
| 13229 |
– |
int |
| 13230 |
– |
main () |
| 13231 |
– |
{ |
| 13232 |
– |
|
| 13233 |
– |
; |
| 13234 |
– |
return 0; |
| 13235 |
– |
} |
| 13236 |
– |
_ACEOF |
| 13237 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13238 |
– |
ax_cv_check_cflags__=yes |
| 13239 |
– |
else |
| 13240 |
– |
ax_cv_check_cflags__=no |
| 13241 |
– |
fi |
| 13242 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13243 |
– |
CFLAGS=$ax_check_save_flags |
| 13244 |
– |
fi |
| 13245 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5 |
| 13246 |
– |
$as_echo "$ax_cv_check_cflags__" >&6; } |
| 13247 |
– |
if test x"$ax_cv_check_cflags__" = xyes; then : |
| 13248 |
– |
: |
| 13249 |
– |
else |
| 13250 |
– |
: |
| 13251 |
– |
fi |
| 13252 |
– |
|
| 13253 |
– |
if ${CFLAGS+:} false; then : |
| 13254 |
– |
case " $CFLAGS " in |
| 13255 |
– |
*" "*) |
| 13256 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5 |
| 13257 |
– |
(: CFLAGS already contains ) 2>&5 |
| 13258 |
– |
ac_status=$? |
| 13259 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13260 |
– |
test $ac_status = 0; } |
| 13261 |
– |
;; |
| 13262 |
– |
*) |
| 13263 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5 |
| 13264 |
– |
(: CFLAGS="$CFLAGS ") 2>&5 |
| 13265 |
– |
ac_status=$? |
| 13266 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13267 |
– |
test $ac_status = 0; } |
| 13268 |
– |
CFLAGS="$CFLAGS " |
| 13269 |
– |
;; |
| 13270 |
– |
esac |
| 13271 |
– |
else |
| 13272 |
– |
CFLAGS="" |
| 13273 |
– |
fi |
| 13217 |
|
|
| 13218 |
|
|
| 13219 |
|
|
| 13994 |
|
fi |
| 13995 |
|
|
| 13996 |
|
if test "$cf_enable_openssl" != "no"; then : |
| 13997 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5 |
| 13998 |
< |
$as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; } |
| 13997 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8o or above" >&5 |
| 13998 |
> |
$as_echo_n "checking for OpenSSL 0.9.8o or above... " >&6; } |
| 13999 |
|
if test "$cross_compiling" = yes; then : |
| 14000 |
|
cf_openssl_version_ok=no |
| 14001 |
|
else |
| 14008 |
|
int |
| 14009 |
|
main () |
| 14010 |
|
{ |
| 14011 |
< |
exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000)); |
| 14011 |
> |
exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL)); |
| 14012 |
|
; |
| 14013 |
|
return 0; |
| 14014 |
|
} |
| 14217 |
|
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 14218 |
|
fi |
| 14219 |
|
|
| 14277 |
– |
# Check whether --enable-select was given. |
| 14278 |
– |
if test "${enable_select+set}" = set; then : |
| 14279 |
– |
enableval=$enable_select; desired_iopoll_mechanism="select" |
| 14280 |
– |
fi |
| 14281 |
– |
|
| 14220 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 14221 |
|
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 14222 |
|
iopoll_mechanism_none=0 |
| 14444 |
|
fi |
| 14445 |
|
rm -f core conftest.err conftest.$ac_objext \ |
| 14446 |
|
conftest$ac_exeext conftest.$ac_ext |
| 14509 |
– |
iopoll_mechanism_select=5 |
| 14510 |
– |
|
| 14511 |
– |
cat >>confdefs.h <<_ACEOF |
| 14512 |
– |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 14513 |
– |
_ACEOF |
| 14514 |
– |
|
| 14515 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14516 |
– |
/* end confdefs.h. */ |
| 14517 |
– |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
| 14518 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14519 |
– |
#define select innocuous_select |
| 14520 |
– |
|
| 14521 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
| 14522 |
– |
which can conflict with char select (); below. |
| 14523 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14524 |
– |
<limits.h> exists even on freestanding compilers. */ |
| 14525 |
– |
|
| 14526 |
– |
#ifdef __STDC__ |
| 14527 |
– |
# include <limits.h> |
| 14528 |
– |
#else |
| 14529 |
– |
# include <assert.h> |
| 14530 |
– |
#endif |
| 14531 |
– |
|
| 14532 |
– |
#undef select |
| 14533 |
– |
|
| 14534 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 14535 |
– |
Use char because int might match the return type of a GCC |
| 14536 |
– |
builtin and then its argument prototype would still apply. */ |
| 14537 |
– |
#ifdef __cplusplus |
| 14538 |
– |
extern "C" |
| 14539 |
– |
#endif |
| 14540 |
– |
char select (); |
| 14541 |
– |
/* The GNU C library defines this for functions which it implements |
| 14542 |
– |
to always fail with ENOSYS. Some functions are actually named |
| 14543 |
– |
something starting with __ and the normal name is an alias. */ |
| 14544 |
– |
#if defined __stub_select || defined __stub___select |
| 14545 |
– |
choke me |
| 14546 |
– |
#endif |
| 14547 |
– |
|
| 14548 |
– |
int |
| 14549 |
– |
main () |
| 14550 |
– |
{ |
| 14551 |
– |
return select (); |
| 14552 |
– |
; |
| 14553 |
– |
return 0; |
| 14554 |
– |
} |
| 14555 |
– |
_ACEOF |
| 14556 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 14557 |
– |
is_select_mechanism_available="yes" |
| 14558 |
– |
else |
| 14559 |
– |
is_select_mechanism_available="no" |
| 14560 |
– |
fi |
| 14561 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 14562 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 14447 |
|
optimal_iopoll_mechanism="none" |
| 14448 |
< |
for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important |
| 14448 |
> |
for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important |
| 14449 |
|
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14450 |
|
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14451 |
|
optimal_iopoll_mechanism="$mechanism" |
| 14504 |
|
if test "$warnings" = "yes" ; then |
| 14505 |
|
|
| 14506 |
|
|
| 14507 |
+ |
|
| 14508 |
+ |
|
| 14509 |
|
for flag in -Wall; do |
| 14510 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14511 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14569 |
|
|
| 14570 |
|
|
| 14571 |
|
|
| 14572 |
+ |
|
| 14573 |
+ |
|
| 14574 |
|
for flag in -Wextra; do |
| 14575 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14576 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14634 |
|
|
| 14635 |
|
|
| 14636 |
|
|
| 14637 |
+ |
|
| 14638 |
+ |
|
| 14639 |
|
for flag in -Wno-unused; do |
| 14640 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14641 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14699 |
|
|
| 14700 |
|
|
| 14701 |
|
|
| 14702 |
+ |
|
| 14703 |
+ |
|
| 14704 |
|
for flag in -Wcast-qual; do |
| 14705 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14706 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14764 |
|
|
| 14765 |
|
|
| 14766 |
|
|
| 14767 |
+ |
|
| 14768 |
+ |
|
| 14769 |
|
for flag in -Wcast-align; do |
| 14770 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14771 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14829 |
|
|
| 14830 |
|
|
| 14831 |
|
|
| 14832 |
+ |
|
| 14833 |
+ |
|
| 14834 |
|
for flag in -Wbad-function-cast; do |
| 14835 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14836 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14894 |
|
|
| 14895 |
|
|
| 14896 |
|
|
| 14897 |
+ |
|
| 14898 |
+ |
|
| 14899 |
|
for flag in -Wlogical-op; do |
| 14900 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14901 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 14959 |
|
|
| 14960 |
|
|
| 14961 |
|
|
| 14962 |
+ |
|
| 14963 |
+ |
|
| 14964 |
|
for flag in -Wmissing-declarations; do |
| 14965 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 14966 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15024 |
|
|
| 15025 |
|
|
| 15026 |
|
|
| 15027 |
+ |
|
| 15028 |
+ |
|
| 15029 |
|
for flag in -Wmissing-include-dirs; do |
| 15030 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15031 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15089 |
|
|
| 15090 |
|
|
| 15091 |
|
|
| 15092 |
+ |
|
| 15093 |
+ |
|
| 15094 |
|
for flag in -Wmissing-prototypes; do |
| 15095 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15096 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15154 |
|
|
| 15155 |
|
|
| 15156 |
|
|
| 15157 |
+ |
|
| 15158 |
+ |
|
| 15159 |
|
for flag in -Wnested-externs; do |
| 15160 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15161 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15219 |
|
|
| 15220 |
|
|
| 15221 |
|
|
| 15222 |
+ |
|
| 15223 |
+ |
|
| 15224 |
|
for flag in -Wpointer-arith; do |
| 15225 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15226 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15284 |
|
|
| 15285 |
|
|
| 15286 |
|
|
| 15287 |
+ |
|
| 15288 |
+ |
|
| 15289 |
|
for flag in -Wredundant-decls; do |
| 15290 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15291 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15349 |
|
|
| 15350 |
|
|
| 15351 |
|
|
| 15352 |
+ |
|
| 15353 |
+ |
|
| 15354 |
|
for flag in -Wshadow; do |
| 15355 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15356 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15414 |
|
|
| 15415 |
|
|
| 15416 |
|
|
| 15417 |
+ |
|
| 15418 |
+ |
|
| 15419 |
|
for flag in -Wwrite-strings; do |
| 15420 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15421 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 15479 |
|
|
| 15480 |
|
|
| 15481 |
|
|
| 15482 |
+ |
|
| 15483 |
+ |
|
| 15484 |
|
for flag in -Wundef; do |
| 15485 |
|
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 15486 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |