diff options
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 58 |
1 files changed, 38 insertions, 20 deletions
diff --git a/unix/configure b/unix/configure index 14f88f3..c7b377d 100755 --- a/unix/configure +++ b/unix/configure @@ -4985,7 +4985,7 @@ fi if test "$GCC" = yes; then : CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall -Wsign-compare -Wdeclaration-after-statement" + CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement" else @@ -8439,18 +8439,18 @@ $as_echo "#define NO_FD_SET 1" >>confdefs.h fi -#----------------------------------------------------------------------------- -# Options for the notifier. Checks for epoll(7) on Linux, and kqueue(2) -# on FreeBSD. -#----------------------------------------------------------------------------- +#------------------------------------------------------------------------ +# Options for the notifier. Checks for epoll(7) on Linux, and +# kqueue(2) on {DragonFly,Free,Net,Open}BSD +#------------------------------------------------------------------------ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for advanced notifier support" >&5 $as_echo_n "checking for advanced notifier support... " >&6; } case x`uname -s` in xLinux) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: epoll(7)" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: epoll(7)" >&5 $as_echo "epoll(7)" >&6; } - for ac_header in sys/epoll.h + for ac_header in sys/epoll.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" if test "x$ac_cv_header_sys_epoll_h" = xyes; then : @@ -8458,19 +8458,33 @@ if test "x$ac_cv_header_sys_epoll_h" = xyes; then : #define HAVE_SYS_EPOLL_H 1 _ACEOF -$as_echo "#define HAVE_EPOLL 1" >>confdefs.h +$as_echo "#define NOTIFIER_EPOLL 1" >>confdefs.h + +fi + +done + + for ac_header in sys/eventfd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_eventfd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_EVENTFD_H 1 +_ACEOF + +$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h fi done ;; - xFreeBSD) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: kqueue(2)" >&5 + xDragonFlyBSD|xFreeBSD|xNetBSD|xOpenBSD) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: kqueue(2)" >&5 $as_echo "kqueue(2)" >&6; } - # Messy because we want to check if *all* the headers are present, and not - # just *any* - tcl_kqueue_headers=x - for ac_header in sys/types.h sys/event.h sys/time.h + # Messy because we want to check if *all* the headers are present, and not + # just *any* + tcl_kqueue_headers=x + for ac_header in sys/types.h sys/event.h sys/time.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -8483,19 +8497,23 @@ fi done - if test $tcl_kqueue_headers = xyyy; then : + if test $tcl_kqueue_headers = xyyy; then : -$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h +$as_echo "#define NOTIFIER_KQUEUE 1" >>confdefs.h fi;; xDarwin) - # Assume that we've got CoreFoundation present (checked elsewhere because - # of wider impact). - { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSX" >&5 + # Assume that we've got CoreFoundation present (checked elsewhere because + # of wider impact). + { $as_echo "$as_me:${as_lineno-$LINENO}: result: OSX" >&5 $as_echo "OSX" >&6; };; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 + cat >>confdefs.h <<_ACEOF +#define NOTIFIER_SELECT 1 +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; };; esac |