diff options
| -rw-r--r-- | autogen/Makefile.in | 33 | ||||
| -rw-r--r-- | autogen/aclocal.m4 | 1 | ||||
| -rwxr-xr-x | autogen/configure | 472 |
3 files changed, 311 insertions, 195 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in index 41763bc9ba3..d3151304c5f 100644 --- a/autogen/Makefile.in +++ b/autogen/Makefile.in | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | # the same distribution terms as the rest of that program. | 24 | # the same distribution terms as the rest of that program. |
| 25 | # | 25 | # |
| 26 | # Generated by gnulib-tool. | 26 | # Generated by gnulib-tool. |
| 27 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdarg stdio strftime strtoumax symlink sys_stat | 27 | # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt careadlinkat crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dup2 filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdarg stdio strftime strtoumax symlink sys_stat |
| 28 | 28 | ||
| 29 | VPATH = @srcdir@ | 29 | VPATH = @srcdir@ |
| 30 | pkgdatadir = $(datadir)/@PACKAGE@ | 30 | pkgdatadir = $(datadir)/@PACKAGE@ |
| @@ -52,9 +52,10 @@ subdir = lib | |||
| 52 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 52 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
| 53 | am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ | 53 | am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \ |
| 54 | $(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/c-strtod.m4 \ | 54 | $(top_srcdir)/m4/alloca.m4 $(top_srcdir)/m4/c-strtod.m4 \ |
| 55 | $(top_srcdir)/m4/extensions.m4 $(top_srcdir)/m4/filemode.m4 \ | 55 | $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/extensions.m4 \ |
| 56 | $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getopt.m4 \ | 56 | $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/getloadavg.m4 \ |
| 57 | $(top_srcdir)/m4/gl-comp.m4 $(top_srcdir)/m4/gnulib-common.m4 \ | 57 | $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gl-comp.m4 \ |
| 58 | $(top_srcdir)/m4/gnulib-common.m4 \ | ||
| 58 | $(top_srcdir)/m4/include_next.m4 $(top_srcdir)/m4/inttypes.m4 \ | 59 | $(top_srcdir)/m4/include_next.m4 $(top_srcdir)/m4/inttypes.m4 \ |
| 59 | $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/lstat.m4 \ | 60 | $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/lstat.m4 \ |
| 60 | $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/mktime.m4 \ | 61 | $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/mktime.m4 \ |
| @@ -738,14 +739,14 @@ BUILT_SOURCES = $(ALLOCA_H) arg-nonnull.h c++defs.h $(GETOPT_H) \ | |||
| 738 | stdio.h stdlib.h sys/stat.h time.h unistd.h warn-on-use.h | 739 | stdio.h stdlib.h sys/stat.h time.h unistd.h warn-on-use.h |
| 739 | EXTRA_DIST = alloca.in.h allocator.h $(top_srcdir)/./arg-nonnull.h \ | 740 | EXTRA_DIST = alloca.in.h allocator.h $(top_srcdir)/./arg-nonnull.h \ |
| 740 | $(top_srcdir)/./c++defs.h careadlinkat.h md5.h sha1.h sha256.h \ | 741 | $(top_srcdir)/./c++defs.h careadlinkat.h md5.h sha1.h sha256.h \ |
| 741 | sha512.h dosname.h ftoastr.c ftoastr.h filemode.h getloadavg.c \ | 742 | sha512.h dosname.h ftoastr.c ftoastr.h dup2.c filemode.h \ |
| 742 | getopt.c getopt.in.h getopt1.c getopt_int.h ignore-value.h \ | 743 | getloadavg.c getopt.c getopt.in.h getopt1.c getopt_int.h \ |
| 743 | intprops.h inttypes.in.h lstat.c mktime-internal.h mktime.c \ | 744 | ignore-value.h intprops.h inttypes.in.h lstat.c \ |
| 744 | readlink.c stat.c stdarg.in.h stdbool.in.h stddef.in.h \ | 745 | mktime-internal.h mktime.c readlink.c stat.c stdarg.in.h \ |
| 745 | stdint.in.h stdio.in.h stdlib.in.h strftime.h strtol.c \ | 746 | stdbool.in.h stddef.in.h stdint.in.h stdio.in.h stdlib.in.h \ |
| 746 | strtoul.c strtoull.c strtoimax.c strtoumax.c symlink.c \ | 747 | strftime.h strtol.c strtoul.c strtoull.c strtoimax.c \ |
| 747 | sys_stat.in.h time.in.h time_r.c u64.h unistd.in.h verify.h \ | 748 | strtoumax.c symlink.c sys_stat.in.h time.in.h time_r.c u64.h \ |
| 748 | $(top_srcdir)/./warn-on-use.h | 749 | unistd.in.h verify.h $(top_srcdir)/./warn-on-use.h |
| 749 | MOSTLYCLEANDIRS = sys | 750 | MOSTLYCLEANDIRS = sys |
| 750 | MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t arg-nonnull.h \ | 751 | MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t arg-nonnull.h \ |
| 751 | arg-nonnull.h-t c++defs.h c++defs.h-t getopt.h getopt.h-t \ | 752 | arg-nonnull.h-t c++defs.h c++defs.h-t getopt.h getopt.h-t \ |
| @@ -759,9 +760,10 @@ libgnu_a_SOURCES = allocator.c careadlinkat.c md5.c sha1.c sha256.c \ | |||
| 759 | sha512.c dtoastr.c filemode.c $(am__append_1) strftime.c | 760 | sha512.c dtoastr.c filemode.c $(am__append_1) strftime.c |
| 760 | libgnu_a_LIBADD = $(gl_LIBOBJS) | 761 | libgnu_a_LIBADD = $(gl_LIBOBJS) |
| 761 | libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) | 762 | libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) |
| 762 | EXTRA_libgnu_a_SOURCES = ftoastr.c getloadavg.c getopt.c getopt1.c \ | 763 | EXTRA_libgnu_a_SOURCES = ftoastr.c dup2.c getloadavg.c getopt.c \ |
| 763 | lstat.c mktime.c readlink.c stat.c strtol.c strtoul.c \ | 764 | getopt1.c lstat.c mktime.c readlink.c stat.c strtol.c \ |
| 764 | strtoull.c strtoimax.c strtoumax.c symlink.c time_r.c | 765 | strtoul.c strtoull.c strtoimax.c strtoumax.c symlink.c \ |
| 766 | time_r.c | ||
| 765 | ARG_NONNULL_H = arg-nonnull.h | 767 | ARG_NONNULL_H = arg-nonnull.h |
| 766 | CXXDEFS_H = c++defs.h | 768 | CXXDEFS_H = c++defs.h |
| 767 | WARN_ON_USE_H = warn-on-use.h | 769 | WARN_ON_USE_H = warn-on-use.h |
| @@ -817,6 +819,7 @@ distclean-compile: | |||
| 817 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allocator.Po@am__quote@ | 819 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allocator.Po@am__quote@ |
| 818 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/careadlinkat.Po@am__quote@ | 820 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/careadlinkat.Po@am__quote@ |
| 819 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dtoastr.Po@am__quote@ | 821 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dtoastr.Po@am__quote@ |
| 822 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dup2.Po@am__quote@ | ||
| 820 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@ | 823 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@ |
| 821 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftoastr.Po@am__quote@ | 824 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftoastr.Po@am__quote@ |
| 822 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getloadavg.Po@am__quote@ | 825 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getloadavg.Po@am__quote@ |
diff --git a/autogen/aclocal.m4 b/autogen/aclocal.m4 index 08bef24413f..8c0a25eba14 100644 --- a/autogen/aclocal.m4 +++ b/autogen/aclocal.m4 | |||
| @@ -987,6 +987,7 @@ AC_SUBST([am__untar]) | |||
| 987 | m4_include([m4/00gnulib.m4]) | 987 | m4_include([m4/00gnulib.m4]) |
| 988 | m4_include([m4/alloca.m4]) | 988 | m4_include([m4/alloca.m4]) |
| 989 | m4_include([m4/c-strtod.m4]) | 989 | m4_include([m4/c-strtod.m4]) |
| 990 | m4_include([m4/dup2.m4]) | ||
| 990 | m4_include([m4/extensions.m4]) | 991 | m4_include([m4/extensions.m4]) |
| 991 | m4_include([m4/filemode.m4]) | 992 | m4_include([m4/filemode.m4]) |
| 992 | m4_include([m4/getloadavg.m4]) | 993 | m4_include([m4/getloadavg.m4]) |
diff --git a/autogen/configure b/autogen/configure index f3337ddbe31..e1a4f947fa1 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -894,6 +894,72 @@ PRAGMA_COLUMNS | |||
| 894 | PRAGMA_SYSTEM_HEADER | 894 | PRAGMA_SYSTEM_HEADER |
| 895 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE | 895 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE |
| 896 | INCLUDE_NEXT | 896 | INCLUDE_NEXT |
| 897 | GETLOADAVG_LIBS | ||
| 898 | REPLACE_WCTOMB | ||
| 899 | REPLACE_UNSETENV | ||
| 900 | REPLACE_STRTOD | ||
| 901 | REPLACE_SETENV | ||
| 902 | REPLACE_REALPATH | ||
| 903 | REPLACE_REALLOC | ||
| 904 | REPLACE_PUTENV | ||
| 905 | REPLACE_MKSTEMP | ||
| 906 | REPLACE_MBTOWC | ||
| 907 | REPLACE_MALLOC | ||
| 908 | REPLACE_CANONICALIZE_FILE_NAME | ||
| 909 | REPLACE_CALLOC | ||
| 910 | HAVE_DECL_UNSETENV | ||
| 911 | HAVE_UNLOCKPT | ||
| 912 | HAVE_SYS_LOADAVG_H | ||
| 913 | HAVE_STRUCT_RANDOM_DATA | ||
| 914 | HAVE_STRTOULL | ||
| 915 | HAVE_STRTOLL | ||
| 916 | HAVE_STRTOD | ||
| 917 | HAVE_DECL_SETENV | ||
| 918 | HAVE_SETENV | ||
| 919 | HAVE_RPMATCH | ||
| 920 | HAVE_REALPATH | ||
| 921 | HAVE_RANDOM_R | ||
| 922 | HAVE_RANDOM_H | ||
| 923 | HAVE_PTSNAME | ||
| 924 | HAVE_MKSTEMPS | ||
| 925 | HAVE_MKSTEMP | ||
| 926 | HAVE_MKOSTEMPS | ||
| 927 | HAVE_MKOSTEMP | ||
| 928 | HAVE_MKDTEMP | ||
| 929 | HAVE_GRANTPT | ||
| 930 | HAVE_GETSUBOPT | ||
| 931 | HAVE_DECL_GETLOADAVG | ||
| 932 | HAVE_CANONICALIZE_FILE_NAME | ||
| 933 | HAVE_ATOLL | ||
| 934 | HAVE__EXIT | ||
| 935 | GNULIB_WCTOMB | ||
| 936 | GNULIB_UNSETENV | ||
| 937 | GNULIB_UNLOCKPT | ||
| 938 | GNULIB_SYSTEM_POSIX | ||
| 939 | GNULIB_STRTOULL | ||
| 940 | GNULIB_STRTOLL | ||
| 941 | GNULIB_STRTOD | ||
| 942 | GNULIB_SETENV | ||
| 943 | GNULIB_RPMATCH | ||
| 944 | GNULIB_REALPATH | ||
| 945 | GNULIB_REALLOC_POSIX | ||
| 946 | GNULIB_RANDOM_R | ||
| 947 | GNULIB_PUTENV | ||
| 948 | GNULIB_PTSNAME | ||
| 949 | GNULIB_MKSTEMPS | ||
| 950 | GNULIB_MKSTEMP | ||
| 951 | GNULIB_MKOSTEMPS | ||
| 952 | GNULIB_MKOSTEMP | ||
| 953 | GNULIB_MKDTEMP | ||
| 954 | GNULIB_MBTOWC | ||
| 955 | GNULIB_MALLOC_POSIX | ||
| 956 | GNULIB_GRANTPT | ||
| 957 | GNULIB_GETSUBOPT | ||
| 958 | GNULIB_GETLOADAVG | ||
| 959 | GNULIB_CANONICALIZE_FILE_NAME | ||
| 960 | GNULIB_CALLOC_POSIX | ||
| 961 | GNULIB_ATOLL | ||
| 962 | GNULIB__EXIT | ||
| 897 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS | 963 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS |
| 898 | UNISTD_H_HAVE_WINSOCK2_H | 964 | UNISTD_H_HAVE_WINSOCK2_H |
| 899 | REPLACE_WRITE | 965 | REPLACE_WRITE |
| @@ -1004,72 +1070,6 @@ GNULIB_DUP3 | |||
| 1004 | GNULIB_DUP2 | 1070 | GNULIB_DUP2 |
| 1005 | GNULIB_CLOSE | 1071 | GNULIB_CLOSE |
| 1006 | GNULIB_CHOWN | 1072 | GNULIB_CHOWN |
| 1007 | GETLOADAVG_LIBS | ||
| 1008 | REPLACE_WCTOMB | ||
| 1009 | REPLACE_UNSETENV | ||
| 1010 | REPLACE_STRTOD | ||
| 1011 | REPLACE_SETENV | ||
| 1012 | REPLACE_REALPATH | ||
| 1013 | REPLACE_REALLOC | ||
| 1014 | REPLACE_PUTENV | ||
| 1015 | REPLACE_MKSTEMP | ||
| 1016 | REPLACE_MBTOWC | ||
| 1017 | REPLACE_MALLOC | ||
| 1018 | REPLACE_CANONICALIZE_FILE_NAME | ||
| 1019 | REPLACE_CALLOC | ||
| 1020 | HAVE_DECL_UNSETENV | ||
| 1021 | HAVE_UNLOCKPT | ||
| 1022 | HAVE_SYS_LOADAVG_H | ||
| 1023 | HAVE_STRUCT_RANDOM_DATA | ||
| 1024 | HAVE_STRTOULL | ||
| 1025 | HAVE_STRTOLL | ||
| 1026 | HAVE_STRTOD | ||
| 1027 | HAVE_DECL_SETENV | ||
| 1028 | HAVE_SETENV | ||
| 1029 | HAVE_RPMATCH | ||
| 1030 | HAVE_REALPATH | ||
| 1031 | HAVE_RANDOM_R | ||
| 1032 | HAVE_RANDOM_H | ||
| 1033 | HAVE_PTSNAME | ||
| 1034 | HAVE_MKSTEMPS | ||
| 1035 | HAVE_MKSTEMP | ||
| 1036 | HAVE_MKOSTEMPS | ||
| 1037 | HAVE_MKOSTEMP | ||
| 1038 | HAVE_MKDTEMP | ||
| 1039 | HAVE_GRANTPT | ||
| 1040 | HAVE_GETSUBOPT | ||
| 1041 | HAVE_DECL_GETLOADAVG | ||
| 1042 | HAVE_CANONICALIZE_FILE_NAME | ||
| 1043 | HAVE_ATOLL | ||
| 1044 | HAVE__EXIT | ||
| 1045 | GNULIB_WCTOMB | ||
| 1046 | GNULIB_UNSETENV | ||
| 1047 | GNULIB_UNLOCKPT | ||
| 1048 | GNULIB_SYSTEM_POSIX | ||
| 1049 | GNULIB_STRTOULL | ||
| 1050 | GNULIB_STRTOLL | ||
| 1051 | GNULIB_STRTOD | ||
| 1052 | GNULIB_SETENV | ||
| 1053 | GNULIB_RPMATCH | ||
| 1054 | GNULIB_REALPATH | ||
| 1055 | GNULIB_REALLOC_POSIX | ||
| 1056 | GNULIB_RANDOM_R | ||
| 1057 | GNULIB_PUTENV | ||
| 1058 | GNULIB_PTSNAME | ||
| 1059 | GNULIB_MKSTEMPS | ||
| 1060 | GNULIB_MKSTEMP | ||
| 1061 | GNULIB_MKOSTEMPS | ||
| 1062 | GNULIB_MKOSTEMP | ||
| 1063 | GNULIB_MKDTEMP | ||
| 1064 | GNULIB_MBTOWC | ||
| 1065 | GNULIB_MALLOC_POSIX | ||
| 1066 | GNULIB_GRANTPT | ||
| 1067 | GNULIB_GETSUBOPT | ||
| 1068 | GNULIB_GETLOADAVG | ||
| 1069 | GNULIB_CANONICALIZE_FILE_NAME | ||
| 1070 | GNULIB_CALLOC_POSIX | ||
| 1071 | GNULIB_ATOLL | ||
| 1072 | GNULIB__EXIT | ||
| 1073 | GL_GENERATE_ALLOCA_H_FALSE | 1073 | GL_GENERATE_ALLOCA_H_FALSE |
| 1074 | GL_GENERATE_ALLOCA_H_TRUE | 1074 | GL_GENERATE_ALLOCA_H_TRUE |
| 1075 | ALLOCA_H | 1075 | ALLOCA_H |
| @@ -3083,6 +3083,7 @@ as_fn_append ac_header_list " stdlib.h" | |||
| 3083 | as_fn_append ac_header_list " unistd.h" | 3083 | as_fn_append ac_header_list " unistd.h" |
| 3084 | as_fn_append ac_header_list " sys/param.h" | 3084 | as_fn_append ac_header_list " sys/param.h" |
| 3085 | as_fn_append ac_func_list " readlinkat" | 3085 | as_fn_append ac_func_list " readlinkat" |
| 3086 | as_fn_append ac_func_list " dup2" | ||
| 3086 | gl_getopt_required=GNU | 3087 | gl_getopt_required=GNU |
| 3087 | as_fn_append ac_header_list " getopt.h" | 3088 | as_fn_append ac_header_list " getopt.h" |
| 3088 | as_fn_append ac_header_list " wchar.h" | 3089 | as_fn_append ac_header_list " wchar.h" |
| @@ -6549,6 +6550,7 @@ esac | |||
| 6549 | # Code from module crypto/sha512: | 6550 | # Code from module crypto/sha512: |
| 6550 | # Code from module dosname: | 6551 | # Code from module dosname: |
| 6551 | # Code from module dtoastr: | 6552 | # Code from module dtoastr: |
| 6553 | # Code from module dup2: | ||
| 6552 | # Code from module extensions: | 6554 | # Code from module extensions: |
| 6553 | 6555 | ||
| 6554 | # Code from module filemode: | 6556 | # Code from module filemode: |
| @@ -13586,7 +13588,7 @@ esac | |||
| 13586 | 13588 | ||
| 13587 | 13589 | ||
| 13588 | 13590 | ||
| 13589 | for ac_func in gethostname getdomainname dup2 \ | 13591 | for ac_func in gethostname getdomainname \ |
| 13590 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | 13592 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
| 13591 | random lrand48 logb frexp fmod rint cbrt ftime setsid \ | 13593 | random lrand48 logb frexp fmod rint cbrt ftime setsid \ |
| 13592 | strerror fpathconf select euidaccess getpagesize tzset setlocale \ | 13594 | strerror fpathconf select euidaccess getpagesize tzset setlocale \ |
| @@ -14292,119 +14294,6 @@ $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h | |||
| 14292 | 14294 | ||
| 14293 | fi | 14295 | fi |
| 14294 | 14296 | ||
| 14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 | ||
| 14296 | $as_echo_n "checking for st_dm_mode in struct stat... " >&6; } | ||
| 14297 | if test "${ac_cv_struct_st_dm_mode+set}" = set; then : | ||
| 14298 | $as_echo_n "(cached) " >&6 | ||
| 14299 | else | ||
| 14300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14301 | /* end confdefs.h. */ | ||
| 14302 | |||
| 14303 | #include <sys/types.h> | ||
| 14304 | #include <sys/stat.h> | ||
| 14305 | int | ||
| 14306 | main () | ||
| 14307 | { | ||
| 14308 | struct stat s; s.st_dm_mode; | ||
| 14309 | ; | ||
| 14310 | return 0; | ||
| 14311 | } | ||
| 14312 | _ACEOF | ||
| 14313 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14314 | ac_cv_struct_st_dm_mode=yes | ||
| 14315 | else | ||
| 14316 | ac_cv_struct_st_dm_mode=no | ||
| 14317 | fi | ||
| 14318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14319 | fi | ||
| 14320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5 | ||
| 14321 | $as_echo "$ac_cv_struct_st_dm_mode" >&6; } | ||
| 14322 | |||
| 14323 | if test $ac_cv_struct_st_dm_mode = yes; then | ||
| 14324 | |||
| 14325 | $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h | ||
| 14326 | |||
| 14327 | fi | ||
| 14328 | |||
| 14329 | |||
| 14330 | ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default" | ||
| 14331 | if test "x$ac_cv_have_decl_strmode" = x""yes; then : | ||
| 14332 | ac_have_decl=1 | ||
| 14333 | else | ||
| 14334 | ac_have_decl=0 | ||
| 14335 | fi | ||
| 14336 | |||
| 14337 | cat >>confdefs.h <<_ACEOF | ||
| 14338 | #define HAVE_DECL_STRMODE $ac_have_decl | ||
| 14339 | _ACEOF | ||
| 14340 | |||
| 14341 | |||
| 14342 | GNULIB__EXIT=0; | ||
| 14343 | GNULIB_ATOLL=0; | ||
| 14344 | GNULIB_CALLOC_POSIX=0; | ||
| 14345 | GNULIB_CANONICALIZE_FILE_NAME=0; | ||
| 14346 | GNULIB_GETLOADAVG=0; | ||
| 14347 | GNULIB_GETSUBOPT=0; | ||
| 14348 | GNULIB_GRANTPT=0; | ||
| 14349 | GNULIB_MALLOC_POSIX=0; | ||
| 14350 | GNULIB_MBTOWC=0; | ||
| 14351 | GNULIB_MKDTEMP=0; | ||
| 14352 | GNULIB_MKOSTEMP=0; | ||
| 14353 | GNULIB_MKOSTEMPS=0; | ||
| 14354 | GNULIB_MKSTEMP=0; | ||
| 14355 | GNULIB_MKSTEMPS=0; | ||
| 14356 | GNULIB_PTSNAME=0; | ||
| 14357 | GNULIB_PUTENV=0; | ||
| 14358 | GNULIB_RANDOM_R=0; | ||
| 14359 | GNULIB_REALLOC_POSIX=0; | ||
| 14360 | GNULIB_REALPATH=0; | ||
| 14361 | GNULIB_RPMATCH=0; | ||
| 14362 | GNULIB_SETENV=0; | ||
| 14363 | GNULIB_STRTOD=0; | ||
| 14364 | GNULIB_STRTOLL=0; | ||
| 14365 | GNULIB_STRTOULL=0; | ||
| 14366 | GNULIB_SYSTEM_POSIX=0; | ||
| 14367 | GNULIB_UNLOCKPT=0; | ||
| 14368 | GNULIB_UNSETENV=0; | ||
| 14369 | GNULIB_WCTOMB=0; | ||
| 14370 | HAVE__EXIT=1; | ||
| 14371 | HAVE_ATOLL=1; | ||
| 14372 | HAVE_CANONICALIZE_FILE_NAME=1; | ||
| 14373 | HAVE_DECL_GETLOADAVG=1; | ||
| 14374 | HAVE_GETSUBOPT=1; | ||
| 14375 | HAVE_GRANTPT=1; | ||
| 14376 | HAVE_MKDTEMP=1; | ||
| 14377 | HAVE_MKOSTEMP=1; | ||
| 14378 | HAVE_MKOSTEMPS=1; | ||
| 14379 | HAVE_MKSTEMP=1; | ||
| 14380 | HAVE_MKSTEMPS=1; | ||
| 14381 | HAVE_PTSNAME=1; | ||
| 14382 | HAVE_RANDOM_H=1; | ||
| 14383 | HAVE_RANDOM_R=1; | ||
| 14384 | HAVE_REALPATH=1; | ||
| 14385 | HAVE_RPMATCH=1; | ||
| 14386 | HAVE_SETENV=1; | ||
| 14387 | HAVE_DECL_SETENV=1; | ||
| 14388 | HAVE_STRTOD=1; | ||
| 14389 | HAVE_STRTOLL=1; | ||
| 14390 | HAVE_STRTOULL=1; | ||
| 14391 | HAVE_STRUCT_RANDOM_DATA=1; | ||
| 14392 | HAVE_SYS_LOADAVG_H=0; | ||
| 14393 | HAVE_UNLOCKPT=1; | ||
| 14394 | HAVE_DECL_UNSETENV=1; | ||
| 14395 | REPLACE_CALLOC=0; | ||
| 14396 | REPLACE_CANONICALIZE_FILE_NAME=0; | ||
| 14397 | REPLACE_MALLOC=0; | ||
| 14398 | REPLACE_MBTOWC=0; | ||
| 14399 | REPLACE_MKSTEMP=0; | ||
| 14400 | REPLACE_PUTENV=0; | ||
| 14401 | REPLACE_REALLOC=0; | ||
| 14402 | REPLACE_REALPATH=0; | ||
| 14403 | REPLACE_SETENV=0; | ||
| 14404 | REPLACE_STRTOD=0; | ||
| 14405 | REPLACE_UNSETENV=0; | ||
| 14406 | REPLACE_WCTOMB=0; | ||
| 14407 | |||
| 14408 | 14297 | ||
| 14409 | GNULIB_CHOWN=0; | 14298 | GNULIB_CHOWN=0; |
| 14410 | GNULIB_CLOSE=0; | 14299 | GNULIB_CLOSE=0; |
| @@ -14520,6 +14409,121 @@ _ACEOF | |||
| 14520 | 14409 | ||
| 14521 | 14410 | ||
| 14522 | 14411 | ||
| 14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 | ||
| 14413 | $as_echo_n "checking for st_dm_mode in struct stat... " >&6; } | ||
| 14414 | if test "${ac_cv_struct_st_dm_mode+set}" = set; then : | ||
| 14415 | $as_echo_n "(cached) " >&6 | ||
| 14416 | else | ||
| 14417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 14418 | /* end confdefs.h. */ | ||
| 14419 | |||
| 14420 | #include <sys/types.h> | ||
| 14421 | #include <sys/stat.h> | ||
| 14422 | int | ||
| 14423 | main () | ||
| 14424 | { | ||
| 14425 | struct stat s; s.st_dm_mode; | ||
| 14426 | ; | ||
| 14427 | return 0; | ||
| 14428 | } | ||
| 14429 | _ACEOF | ||
| 14430 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 14431 | ac_cv_struct_st_dm_mode=yes | ||
| 14432 | else | ||
| 14433 | ac_cv_struct_st_dm_mode=no | ||
| 14434 | fi | ||
| 14435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 14436 | fi | ||
| 14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5 | ||
| 14438 | $as_echo "$ac_cv_struct_st_dm_mode" >&6; } | ||
| 14439 | |||
| 14440 | if test $ac_cv_struct_st_dm_mode = yes; then | ||
| 14441 | |||
| 14442 | $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h | ||
| 14443 | |||
| 14444 | fi | ||
| 14445 | |||
| 14446 | |||
| 14447 | ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default" | ||
| 14448 | if test "x$ac_cv_have_decl_strmode" = x""yes; then : | ||
| 14449 | ac_have_decl=1 | ||
| 14450 | else | ||
| 14451 | ac_have_decl=0 | ||
| 14452 | fi | ||
| 14453 | |||
| 14454 | cat >>confdefs.h <<_ACEOF | ||
| 14455 | #define HAVE_DECL_STRMODE $ac_have_decl | ||
| 14456 | _ACEOF | ||
| 14457 | |||
| 14458 | |||
| 14459 | GNULIB__EXIT=0; | ||
| 14460 | GNULIB_ATOLL=0; | ||
| 14461 | GNULIB_CALLOC_POSIX=0; | ||
| 14462 | GNULIB_CANONICALIZE_FILE_NAME=0; | ||
| 14463 | GNULIB_GETLOADAVG=0; | ||
| 14464 | GNULIB_GETSUBOPT=0; | ||
| 14465 | GNULIB_GRANTPT=0; | ||
| 14466 | GNULIB_MALLOC_POSIX=0; | ||
| 14467 | GNULIB_MBTOWC=0; | ||
| 14468 | GNULIB_MKDTEMP=0; | ||
| 14469 | GNULIB_MKOSTEMP=0; | ||
| 14470 | GNULIB_MKOSTEMPS=0; | ||
| 14471 | GNULIB_MKSTEMP=0; | ||
| 14472 | GNULIB_MKSTEMPS=0; | ||
| 14473 | GNULIB_PTSNAME=0; | ||
| 14474 | GNULIB_PUTENV=0; | ||
| 14475 | GNULIB_RANDOM_R=0; | ||
| 14476 | GNULIB_REALLOC_POSIX=0; | ||
| 14477 | GNULIB_REALPATH=0; | ||
| 14478 | GNULIB_RPMATCH=0; | ||
| 14479 | GNULIB_SETENV=0; | ||
| 14480 | GNULIB_STRTOD=0; | ||
| 14481 | GNULIB_STRTOLL=0; | ||
| 14482 | GNULIB_STRTOULL=0; | ||
| 14483 | GNULIB_SYSTEM_POSIX=0; | ||
| 14484 | GNULIB_UNLOCKPT=0; | ||
| 14485 | GNULIB_UNSETENV=0; | ||
| 14486 | GNULIB_WCTOMB=0; | ||
| 14487 | HAVE__EXIT=1; | ||
| 14488 | HAVE_ATOLL=1; | ||
| 14489 | HAVE_CANONICALIZE_FILE_NAME=1; | ||
| 14490 | HAVE_DECL_GETLOADAVG=1; | ||
| 14491 | HAVE_GETSUBOPT=1; | ||
| 14492 | HAVE_GRANTPT=1; | ||
| 14493 | HAVE_MKDTEMP=1; | ||
| 14494 | HAVE_MKOSTEMP=1; | ||
| 14495 | HAVE_MKOSTEMPS=1; | ||
| 14496 | HAVE_MKSTEMP=1; | ||
| 14497 | HAVE_MKSTEMPS=1; | ||
| 14498 | HAVE_PTSNAME=1; | ||
| 14499 | HAVE_RANDOM_H=1; | ||
| 14500 | HAVE_RANDOM_R=1; | ||
| 14501 | HAVE_REALPATH=1; | ||
| 14502 | HAVE_RPMATCH=1; | ||
| 14503 | HAVE_SETENV=1; | ||
| 14504 | HAVE_DECL_SETENV=1; | ||
| 14505 | HAVE_STRTOD=1; | ||
| 14506 | HAVE_STRTOLL=1; | ||
| 14507 | HAVE_STRTOULL=1; | ||
| 14508 | HAVE_STRUCT_RANDOM_DATA=1; | ||
| 14509 | HAVE_SYS_LOADAVG_H=0; | ||
| 14510 | HAVE_UNLOCKPT=1; | ||
| 14511 | HAVE_DECL_UNSETENV=1; | ||
| 14512 | REPLACE_CALLOC=0; | ||
| 14513 | REPLACE_CANONICALIZE_FILE_NAME=0; | ||
| 14514 | REPLACE_MALLOC=0; | ||
| 14515 | REPLACE_MBTOWC=0; | ||
| 14516 | REPLACE_MKSTEMP=0; | ||
| 14517 | REPLACE_PUTENV=0; | ||
| 14518 | REPLACE_REALLOC=0; | ||
| 14519 | REPLACE_REALPATH=0; | ||
| 14520 | REPLACE_SETENV=0; | ||
| 14521 | REPLACE_STRTOD=0; | ||
| 14522 | REPLACE_UNSETENV=0; | ||
| 14523 | REPLACE_WCTOMB=0; | ||
| 14524 | |||
| 14525 | |||
| 14526 | |||
| 14523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 | 14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 |
| 14524 | $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } | 14528 | $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } |
| 14525 | if test "${gl_cv_have_include_next+set}" = set; then : | 14529 | if test "${gl_cv_have_include_next+set}" = set; then : |
| @@ -16760,6 +16764,114 @@ fi | |||
| 16760 | 16764 | ||
| 16761 | 16765 | ||
| 16762 | 16766 | ||
| 16767 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h | ||
| 16768 | |||
| 16769 | |||
| 16770 | if test $HAVE_DUP2 = 1; then | ||
| 16771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 | ||
| 16772 | $as_echo_n "checking whether dup2 works... " >&6; } | ||
| 16773 | if test "${gl_cv_func_dup2_works+set}" = set; then : | ||
| 16774 | $as_echo_n "(cached) " >&6 | ||
| 16775 | else | ||
| 16776 | if test "$cross_compiling" = yes; then : | ||
| 16777 | case "$host_os" in | ||
| 16778 | mingw*) # on this platform, dup2 always returns 0 for success | ||
| 16779 | gl_cv_func_dup2_works=no;; | ||
| 16780 | cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 | ||
| 16781 | gl_cv_func_dup2_works=no;; | ||
| 16782 | linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a | ||
| 16783 | # closed fd may yield -EBADF instead of -1 / errno=EBADF. | ||
| 16784 | gl_cv_func_dup2_works=no;; | ||
| 16785 | freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF. | ||
| 16786 | gl_cv_func_dup2_works=no;; | ||
| 16787 | haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. | ||
| 16788 | gl_cv_func_dup2_works=no;; | ||
| 16789 | *) gl_cv_func_dup2_works=yes;; | ||
| 16790 | esac | ||
| 16791 | else | ||
| 16792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 16793 | /* end confdefs.h. */ | ||
| 16794 | |||
| 16795 | #include <unistd.h> | ||
| 16796 | #include <fcntl.h> | ||
| 16797 | #include <errno.h> | ||
| 16798 | int | ||
| 16799 | main () | ||
| 16800 | { | ||
| 16801 | int result = 0; | ||
| 16802 | #ifdef FD_CLOEXEC | ||
| 16803 | if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) | ||
| 16804 | result |= 1; | ||
| 16805 | #endif | ||
| 16806 | if (dup2 (1, 1) == 0) | ||
| 16807 | result |= 2; | ||
| 16808 | #ifdef FD_CLOEXEC | ||
| 16809 | if (fcntl (1, F_GETFD) != FD_CLOEXEC) | ||
| 16810 | result |= 4; | ||
| 16811 | #endif | ||
| 16812 | close (0); | ||
| 16813 | if (dup2 (0, 0) != -1) | ||
| 16814 | result |= 8; | ||
| 16815 | /* Many gnulib modules require POSIX conformance of EBADF. */ | ||
| 16816 | if (dup2 (2, 1000000) == -1 && errno != EBADF) | ||
| 16817 | result |= 16; | ||
| 16818 | return result; | ||
| 16819 | |||
| 16820 | ; | ||
| 16821 | return 0; | ||
| 16822 | } | ||
| 16823 | |||
| 16824 | _ACEOF | ||
| 16825 | if ac_fn_c_try_run "$LINENO"; then : | ||
| 16826 | gl_cv_func_dup2_works=yes | ||
| 16827 | else | ||
| 16828 | gl_cv_func_dup2_works=no | ||
| 16829 | fi | ||
| 16830 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 16831 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 16832 | fi | ||
| 16833 | |||
| 16834 | |||
| 16835 | fi | ||
| 16836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 | ||
| 16837 | $as_echo "$gl_cv_func_dup2_works" >&6; } | ||
| 16838 | if test "$gl_cv_func_dup2_works" = no; then | ||
| 16839 | |||
| 16840 | |||
| 16841 | |||
| 16842 | if test $ac_cv_func_dup2 = yes; then | ||
| 16843 | REPLACE_DUP2=1 | ||
| 16844 | fi | ||
| 16845 | |||
| 16846 | |||
| 16847 | |||
| 16848 | |||
| 16849 | |||
| 16850 | |||
| 16851 | |||
| 16852 | |||
| 16853 | gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" | ||
| 16854 | |||
| 16855 | |||
| 16856 | fi | ||
| 16857 | fi | ||
| 16858 | |||
| 16859 | |||
| 16860 | |||
| 16861 | |||
| 16862 | |||
| 16863 | |||
| 16864 | GNULIB_DUP2=1 | ||
| 16865 | |||
| 16866 | |||
| 16867 | |||
| 16868 | |||
| 16869 | |||
| 16870 | |||
| 16871 | |||
| 16872 | |||
| 16873 | |||
| 16874 | |||
| 16763 | 16875 | ||
| 16764 | # Persuade glibc <stdlib.h> to declare getloadavg(). | 16876 | # Persuade glibc <stdlib.h> to declare getloadavg(). |
| 16765 | 16877 | ||