diff options
| -rw-r--r-- | autogen/Makefile.in | 2 | ||||
| -rwxr-xr-x | autogen/configure | 106 |
2 files changed, 107 insertions, 1 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in index e3264ff0c3f..14cb3c9c9c1 100644 --- a/autogen/Makefile.in +++ b/autogen/Makefile.in | |||
| @@ -683,6 +683,7 @@ REPLACE_PREAD = @REPLACE_PREAD@ | |||
| 683 | REPLACE_PRINTF = @REPLACE_PRINTF@ | 683 | REPLACE_PRINTF = @REPLACE_PRINTF@ |
| 684 | REPLACE_PSELECT = @REPLACE_PSELECT@ | 684 | REPLACE_PSELECT = @REPLACE_PSELECT@ |
| 685 | REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ | 685 | REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ |
| 686 | REPLACE_PTSNAME = @REPLACE_PTSNAME@ | ||
| 686 | REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ | 687 | REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ |
| 687 | REPLACE_PUTENV = @REPLACE_PUTENV@ | 688 | REPLACE_PUTENV = @REPLACE_PUTENV@ |
| 688 | REPLACE_PWRITE = @REPLACE_PWRITE@ | 689 | REPLACE_PWRITE = @REPLACE_PWRITE@ |
| @@ -1633,6 +1634,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ | |||
| 1633 | -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \ | 1634 | -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \ |
| 1634 | -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ | 1635 | -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ |
| 1635 | -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ | 1636 | -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ |
| 1637 | -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \ | ||
| 1636 | -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ | 1638 | -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ |
| 1637 | -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ | 1639 | -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ |
| 1638 | -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ | 1640 | -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ |
diff --git a/autogen/configure b/autogen/configure index 11e046c551b..f08dd5503a2 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -909,6 +909,7 @@ REPLACE_REALLOC | |||
| 909 | REPLACE_RANDOM_R | 909 | REPLACE_RANDOM_R |
| 910 | REPLACE_PUTENV | 910 | REPLACE_PUTENV |
| 911 | REPLACE_PTSNAME_R | 911 | REPLACE_PTSNAME_R |
| 912 | REPLACE_PTSNAME | ||
| 912 | REPLACE_MKSTEMP | 913 | REPLACE_MKSTEMP |
| 913 | REPLACE_MBTOWC | 914 | REPLACE_MBTOWC |
| 914 | REPLACE_MALLOC | 915 | REPLACE_MALLOC |
| @@ -7295,8 +7296,41 @@ fi | |||
| 7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 | 7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 |
| 7296 | $as_echo "$gl_cv_cc_nomfi_needed" >&6; } | 7297 | $as_echo "$gl_cv_cc_nomfi_needed" >&6; } |
| 7297 | fi | 7298 | fi |
| 7299 | |||
| 7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 | ||
| 7301 | $as_echo_n "checking whether -Wuninitialized is supported... " >&6; } | ||
| 7302 | if test "${gl_cv_cc_uninitialized_supported+set}" = set; then : | ||
| 7303 | $as_echo_n "(cached) " >&6 | ||
| 7304 | else | ||
| 7305 | |||
| 7306 | gl_save_CFLAGS="$CFLAGS" | ||
| 7307 | CFLAGS="$CFLAGS -Werror -Wuninitialized" | ||
| 7308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 7309 | /* end confdefs.h. */ | ||
| 7310 | |||
| 7311 | int | ||
| 7312 | main () | ||
| 7313 | { | ||
| 7314 | |||
| 7315 | ; | ||
| 7316 | return 0; | ||
| 7317 | } | ||
| 7318 | _ACEOF | ||
| 7319 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 7320 | gl_cv_cc_uninitialized_supported=yes | ||
| 7321 | else | ||
| 7322 | gl_cv_cc_uninitialized_supported=no | ||
| 7323 | fi | ||
| 7324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 7325 | CFLAGS="$gl_save_CFLAGS" | ||
| 7326 | fi | ||
| 7327 | |||
| 7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 | ||
| 7329 | $as_echo "$gl_cv_cc_uninitialized_supported" >&6; } | ||
| 7330 | |||
| 7298 | fi | 7331 | fi |
| 7299 | 7332 | ||
| 7333 | # List all gcc warning categories. | ||
| 7300 | gl_manywarn_set= | 7334 | gl_manywarn_set= |
| 7301 | for gl_manywarn_item in \ | 7335 | for gl_manywarn_item in \ |
| 7302 | -W \ | 7336 | -W \ |
| @@ -7415,11 +7449,15 @@ $as_echo "$gl_cv_cc_nomfi_needed" >&6; } | |||
| 7415 | gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" | 7449 | gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" |
| 7416 | done | 7450 | done |
| 7417 | 7451 | ||
| 7418 | # Disable the missing-field-initializers warning if needed | 7452 | # Disable specific options as needed. |
| 7419 | if test "$gl_cv_cc_nomfi_needed" = yes; then | 7453 | if test "$gl_cv_cc_nomfi_needed" = yes; then |
| 7420 | gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" | 7454 | gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" |
| 7421 | fi | 7455 | fi |
| 7422 | 7456 | ||
| 7457 | if test "$gl_cv_cc_uninitialized_supported" = no; then | ||
| 7458 | gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized" | ||
| 7459 | fi | ||
| 7460 | |||
| 7423 | ws=$gl_manywarn_set | 7461 | ws=$gl_manywarn_set |
| 7424 | 7462 | ||
| 7425 | 7463 | ||
| @@ -16842,6 +16880,7 @@ _ACEOF | |||
| 16842 | REPLACE_MALLOC=0; | 16880 | REPLACE_MALLOC=0; |
| 16843 | REPLACE_MBTOWC=0; | 16881 | REPLACE_MBTOWC=0; |
| 16844 | REPLACE_MKSTEMP=0; | 16882 | REPLACE_MKSTEMP=0; |
| 16883 | REPLACE_PTSNAME=0; | ||
| 16845 | REPLACE_PTSNAME_R=0; | 16884 | REPLACE_PTSNAME_R=0; |
| 16846 | REPLACE_PUTENV=0; | 16885 | REPLACE_PUTENV=0; |
| 16847 | REPLACE_RANDOM_R=0; | 16886 | REPLACE_RANDOM_R=0; |
| @@ -21625,6 +21664,69 @@ rm -f core conftest.err conftest.$ac_objext \ | |||
| 21625 | fi | 21664 | fi |
| 21626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5 | 21665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5 |
| 21627 | $as_echo "$gl_cv_sig_pselect" >&6; } | 21666 | $as_echo "$gl_cv_sig_pselect" >&6; } |
| 21667 | |||
| 21668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5 | ||
| 21669 | $as_echo_n "checking whether pselect detects invalid fds... " >&6; } | ||
| 21670 | if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then : | ||
| 21671 | $as_echo_n "(cached) " >&6 | ||
| 21672 | else | ||
| 21673 | |||
| 21674 | if test "$cross_compiling" = yes; then : | ||
| 21675 | |||
| 21676 | case "$host_os" in | ||
| 21677 | # Guess yes on glibc systems. | ||
| 21678 | *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;; | ||
| 21679 | # If we don't know, assume the worst. | ||
| 21680 | *) gl_cv_func_pselect_detects_ebadf="guessing no" ;; | ||
| 21681 | esac | ||
| 21682 | |||
| 21683 | else | ||
| 21684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 21685 | /* end confdefs.h. */ | ||
| 21686 | |||
| 21687 | #include <sys/types.h> | ||
| 21688 | #include <sys/time.h> | ||
| 21689 | #if HAVE_SYS_SELECT_H | ||
| 21690 | # include <sys/select.h> | ||
| 21691 | #endif | ||
| 21692 | #include <unistd.h> | ||
| 21693 | #include <errno.h> | ||
| 21694 | |||
| 21695 | int | ||
| 21696 | main () | ||
| 21697 | { | ||
| 21698 | |||
| 21699 | fd_set set; | ||
| 21700 | dup2(0, 16); | ||
| 21701 | FD_ZERO(&set); | ||
| 21702 | FD_SET(16, &set); | ||
| 21703 | close(16); | ||
| 21704 | struct timespec timeout; | ||
| 21705 | timeout.tv_sec = 0; | ||
| 21706 | timeout.tv_nsec = 5000; | ||
| 21707 | return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF; | ||
| 21708 | |||
| 21709 | ; | ||
| 21710 | return 0; | ||
| 21711 | } | ||
| 21712 | _ACEOF | ||
| 21713 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 21714 | gl_cv_func_pselect_detects_ebadf=yes | ||
| 21715 | else | ||
| 21716 | gl_cv_func_pselect_detects_ebadf=no | ||
| 21717 | fi | ||
| 21718 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 21719 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 21720 | fi | ||
| 21721 | |||
| 21722 | |||
| 21723 | fi | ||
| 21724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5 | ||
| 21725 | $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; } | ||
| 21726 | case $gl_cv_func_pselect_detects_ebadf in | ||
| 21727 | *yes) ;; | ||
| 21728 | *) REPLACE_PSELECT=1 ;; | ||
| 21729 | esac | ||
| 21628 | fi | 21730 | fi |
| 21629 | 21731 | ||
| 21630 | if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then | 21732 | if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then |
| @@ -23438,6 +23540,8 @@ done | |||
| 23438 | 23540 | ||
| 23439 | 23541 | ||
| 23440 | 23542 | ||
| 23543 | |||
| 23544 | |||
| 23441 | if test $gl_cv_have_include_next = yes; then | 23545 | if test $gl_cv_have_include_next = yes; then |
| 23442 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' | 23546 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 23443 | else | 23547 | else |