aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-03-14 06:17:38 -0400
committerGlenn Morris2013-03-14 06:17:38 -0400
commit2407788fbbb919458ade69651d4de402f2096367 (patch)
tree547de3c5c65239722103e52f201c8ccdbae65a71
parent3fc5e44aaaac666b7f6a77b2e2fcc0c6646659d5 (diff)
downloademacs-2407788fbbb919458ade69651d4de402f2096367.tar.gz
emacs-2407788fbbb919458ade69651d4de402f2096367.zip
Auto-commit of generated files.
-rw-r--r--autogen/Makefile.in38
-rw-r--r--autogen/aclocal.m42
-rw-r--r--autogen/config.in13
-rwxr-xr-xautogen/configure203
4 files changed, 189 insertions, 67 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in
index eadb1ab8c22..03e54906b75 100644
--- a/autogen/Makefile.in
+++ b/autogen/Makefile.in
@@ -36,7 +36,7 @@
36# the same distribution terms as the rest of that program. 36# the same distribution terms as the rest of that program.
37# 37#
38# Generated by gnulib-tool. 38# Generated by gnulib-tool.
39# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=dup --avoid=errno --avoid=fchdir --avoid=fcntl --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt c-ctype c-strcase careadlinkat close-stream crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl-h fdopendir filemode fstatat getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings memrchr mktime pselect pthread_sigmask putenv readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv utimens warnings 39# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=dup --avoid=errno --avoid=fchdir --avoid=fcntl --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt c-ctype c-strcase careadlinkat close-stream crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings memrchr mktime pselect pthread_sigmask putenv readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv utimens warnings
40 40
41VPATH = @srcdir@ 41VPATH = @srcdir@
42pkgdatadir = $(datadir)/@PACKAGE@ 42pkgdatadir = $(datadir)/@PACKAGE@
@@ -71,8 +71,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/00gnulib.m4 \
71 $(top_srcdir)/m4/extensions.m4 \ 71 $(top_srcdir)/m4/extensions.m4 \
72 $(top_srcdir)/m4/extern-inline.m4 \ 72 $(top_srcdir)/m4/extern-inline.m4 \
73 $(top_srcdir)/m4/faccessat.m4 $(top_srcdir)/m4/fcntl_h.m4 \ 73 $(top_srcdir)/m4/faccessat.m4 $(top_srcdir)/m4/fcntl_h.m4 \
74 $(top_srcdir)/m4/fdopendir.m4 $(top_srcdir)/m4/filemode.m4 \ 74 $(top_srcdir)/m4/fdatasync.m4 $(top_srcdir)/m4/fdopendir.m4 \
75 $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fstatat.m4 \ 75 $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/fpending.m4 \
76 $(top_srcdir)/m4/fstatat.m4 $(top_srcdir)/m4/fsync.m4 \
76 $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/getloadavg.m4 \ 77 $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/getloadavg.m4 \
77 $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gettime.m4 \ 78 $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/gettime.m4 \
78 $(top_srcdir)/m4/gettimeofday.m4 \ 79 $(top_srcdir)/m4/gettimeofday.m4 \
@@ -657,6 +658,7 @@ LIBX_OTHER = @LIBX_OTHER@
657LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ 658LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
658LIB_EACCESS = @LIB_EACCESS@ 659LIB_EACCESS = @LIB_EACCESS@
659LIB_EXECINFO = @LIB_EXECINFO@ 660LIB_EXECINFO = @LIB_EXECINFO@
661LIB_FDATASYNC = @LIB_FDATASYNC@
660LIB_MATH = @LIB_MATH@ 662LIB_MATH = @LIB_MATH@
661LIB_PTHREAD = @LIB_PTHREAD@ 663LIB_PTHREAD = @LIB_PTHREAD@
662LIB_PTHREAD_SIGMASK = @LIB_PTHREAD_SIGMASK@ 664LIB_PTHREAD_SIGMASK = @LIB_PTHREAD_SIGMASK@
@@ -988,13 +990,13 @@ EXTRA_DIST = alloca.in.h allocator.h openat-priv.h openat-proc.c \
988 careadlinkat.h close-stream.h md5.h sha1.h sha256.h sha512.h \ 990 careadlinkat.h close-stream.h md5.h sha1.h sha256.h sha512.h \
989 dirent.in.h dosname.h ftoastr.c ftoastr.h dup2.c euidaccess.c \ 991 dirent.in.h dosname.h ftoastr.c ftoastr.h dup2.c euidaccess.c \
990 execinfo.c execinfo.in.h at-func.c faccessat.c fcntl.in.h \ 992 execinfo.c execinfo.in.h at-func.c faccessat.c fcntl.in.h \
991 fdopendir.c filemode.h fpending.c fpending.h at-func.c \ 993 fdatasync.c fdopendir.c filemode.h fpending.c fpending.h \
992 fstatat.c getgroups.c getloadavg.c getopt.c getopt.in.h \ 994 at-func.c fstatat.c fsync.c getgroups.c getloadavg.c getopt.c \
993 getopt1.c getopt_int.h gettimeofday.c group-member.c \ 995 getopt.in.h getopt1.c getopt_int.h gettimeofday.c \
994 ignore-value.h intprops.h inttypes.in.h lstat.c memrchr.c \ 996 group-member.c ignore-value.h intprops.h inttypes.in.h lstat.c \
995 mktime-internal.h mktime.c openat.h pathmax.h pselect.c \ 997 memrchr.c mktime-internal.h mktime.c openat.h pathmax.h \
996 pthread_sigmask.c putenv.c readlink.c at-func.c readlinkat.c \ 998 pselect.c pthread_sigmask.c putenv.c readlink.c at-func.c \
997 root-uid.h sig2str.c sig2str.h signal.in.h \ 999 readlinkat.c root-uid.h sig2str.c sig2str.h signal.in.h \
998 $(top_srcdir)/build-aux/snippet/_Noreturn.h \ 1000 $(top_srcdir)/build-aux/snippet/_Noreturn.h \
999 $(top_srcdir)/build-aux/snippet/arg-nonnull.h \ 1001 $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
1000 $(top_srcdir)/build-aux/snippet/c++defs.h \ 1002 $(top_srcdir)/build-aux/snippet/c++defs.h \
@@ -1028,13 +1030,13 @@ libgnu_a_SOURCES = allocator.c c-ctype.h c-ctype.c c-strcase.h \
1028libgnu_a_LIBADD = $(gl_LIBOBJS) 1030libgnu_a_LIBADD = $(gl_LIBOBJS)
1029libgnu_a_DEPENDENCIES = $(gl_LIBOBJS) 1031libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
1030EXTRA_libgnu_a_SOURCES = openat-proc.c ftoastr.c dup2.c euidaccess.c \ 1032EXTRA_libgnu_a_SOURCES = openat-proc.c ftoastr.c dup2.c euidaccess.c \
1031 execinfo.c at-func.c faccessat.c fdopendir.c fpending.c \ 1033 execinfo.c at-func.c faccessat.c fdatasync.c fdopendir.c \
1032 at-func.c fstatat.c getgroups.c getloadavg.c getopt.c \ 1034 fpending.c at-func.c fstatat.c fsync.c getgroups.c \
1033 getopt1.c gettimeofday.c group-member.c lstat.c memrchr.c \ 1035 getloadavg.c getopt.c getopt1.c gettimeofday.c group-member.c \
1034 mktime.c pselect.c pthread_sigmask.c putenv.c readlink.c \ 1036 lstat.c memrchr.c mktime.c pselect.c pthread_sigmask.c \
1035 at-func.c readlinkat.c sig2str.c stat.c strtoimax.c strtol.c \ 1037 putenv.c readlink.c at-func.c readlinkat.c sig2str.c stat.c \
1036 strtoll.c strtol.c strtoul.c strtoull.c strtoimax.c \ 1038 strtoimax.c strtol.c strtoll.c strtol.c strtoul.c strtoull.c \
1037 strtoumax.c symlink.c time_r.c unsetenv.c 1039 strtoimax.c strtoumax.c symlink.c time_r.c unsetenv.c
1038 1040
1039# Because this Makefile snippet defines a variable used by other 1041# Because this Makefile snippet defines a variable used by other
1040# gnulib Makefile snippets, it must be present in all Makefile.am that 1042# gnulib Makefile snippets, it must be present in all Makefile.am that
@@ -1105,10 +1107,12 @@ distclean-compile:
1105@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/euidaccess.Po@am__quote@ 1107@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/euidaccess.Po@am__quote@
1106@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/execinfo.Po@am__quote@ 1108@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/execinfo.Po@am__quote@
1107@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/faccessat.Po@am__quote@ 1109@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/faccessat.Po@am__quote@
1110@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fdatasync.Po@am__quote@
1108@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fdopendir.Po@am__quote@ 1111@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fdopendir.Po@am__quote@
1109@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@ 1112@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filemode.Po@am__quote@
1110@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fpending.Po@am__quote@ 1113@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fpending.Po@am__quote@
1111@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstatat.Po@am__quote@ 1114@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstatat.Po@am__quote@
1115@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsync.Po@am__quote@
1112@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftoastr.Po@am__quote@ 1116@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftoastr.Po@am__quote@
1113@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getgroups.Po@am__quote@ 1117@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getgroups.Po@am__quote@
1114@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getloadavg.Po@am__quote@ 1118@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getloadavg.Po@am__quote@
diff --git a/autogen/aclocal.m4 b/autogen/aclocal.m4
index 8065a9e643b..d782216bac5 100644
--- a/autogen/aclocal.m4
+++ b/autogen/aclocal.m4
@@ -998,10 +998,12 @@ m4_include([m4/extensions.m4])
998m4_include([m4/extern-inline.m4]) 998m4_include([m4/extern-inline.m4])
999m4_include([m4/faccessat.m4]) 999m4_include([m4/faccessat.m4])
1000m4_include([m4/fcntl_h.m4]) 1000m4_include([m4/fcntl_h.m4])
1001m4_include([m4/fdatasync.m4])
1001m4_include([m4/fdopendir.m4]) 1002m4_include([m4/fdopendir.m4])
1002m4_include([m4/filemode.m4]) 1003m4_include([m4/filemode.m4])
1003m4_include([m4/fpending.m4]) 1004m4_include([m4/fpending.m4])
1004m4_include([m4/fstatat.m4]) 1005m4_include([m4/fstatat.m4])
1006m4_include([m4/fsync.m4])
1005m4_include([m4/getgroups.m4]) 1007m4_include([m4/getgroups.m4])
1006m4_include([m4/getloadavg.m4]) 1008m4_include([m4/getloadavg.m4])
1007m4_include([m4/getopt.m4]) 1009m4_include([m4/getopt.m4])
diff --git a/autogen/config.in b/autogen/config.in
index 5aedead792a..dd10c1d0a2d 100644
--- a/autogen/config.in
+++ b/autogen/config.in
@@ -56,12 +56,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
56/* Define on FreeBSD to work around an issue when reading from a PTY. */ 56/* Define on FreeBSD to work around an issue when reading from a PTY. */
57#undef BROKEN_PTY_READ_AFTER_EAGAIN 57#undef BROKEN_PTY_READ_AFTER_EAGAIN
58 58
59/* Define if the system is compatible with BSD 4.2. */
60#undef BSD_SYSTEM
61
62/* Define if AH_BOTTOM should change BSD_SYSTEM. */
63#undef BSD_SYSTEM_AHB
64
65/* Define if Emacs cannot be dumped on your system. */ 59/* Define if Emacs cannot be dumped on your system. */
66#undef CANNOT_DUMP 60#undef CANNOT_DUMP
67 61
@@ -282,6 +276,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
282 */ 276 */
283#undef HAVE_DECL_ALARM 277#undef HAVE_DECL_ALARM
284 278
279/* Define to 1 if you have the declaration of `fdatasync', and to 0 if you
280 don't. */
281#undef HAVE_DECL_FDATASYNC
282
285/* Define to 1 if you have the declaration of `fdopendir', and to 0 if you 283/* Define to 1 if you have the declaration of `fdopendir', and to 0 if you
286 don't. */ 284 don't. */
287#undef HAVE_DECL_FDOPENDIR 285#undef HAVE_DECL_FDOPENDIR
@@ -378,6 +376,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
378/* Define to 1 if you have the `faccessat' function. */ 376/* Define to 1 if you have the `faccessat' function. */
379#undef HAVE_FACCESSAT 377#undef HAVE_FACCESSAT
380 378
379/* Define to 1 if you have the `fdatasync' function. */
380#undef HAVE_FDATASYNC
381
381/* Define to 1 if you have the `fdopendir' function. */ 382/* Define to 1 if you have the `fdopendir' function. */
382#undef HAVE_FDOPENDIR 383#undef HAVE_FDOPENDIR
383 384
diff --git a/autogen/configure b/autogen/configure
index 0f006ad7219..5b5d7d7b95a 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -1060,6 +1060,7 @@ GNULIB_FUTIMENS
1060GNULIB_FSTATAT 1060GNULIB_FSTATAT
1061GNULIB_FSTAT 1061GNULIB_FSTAT
1062GNULIB_FCHMODAT 1062GNULIB_FCHMODAT
1063LIB_FDATASYNC
1063NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1064NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1064NEXT_FCNTL_H 1065NEXT_FCNTL_H
1065REPLACE_OPENAT 1066REPLACE_OPENAT
@@ -3340,6 +3341,7 @@ as_fn_append ac_func_list " fdopendir"
3340as_fn_append ac_header_list " stdio_ext.h" 3341as_fn_append ac_header_list " stdio_ext.h"
3341as_fn_append ac_func_list " __fpending" 3342as_fn_append ac_func_list " __fpending"
3342as_fn_append ac_func_list " fstatat" 3343as_fn_append ac_func_list " fstatat"
3344as_fn_append ac_func_list " fsync"
3343gl_getopt_required=GNU 3345gl_getopt_required=GNU
3344as_fn_append ac_header_list " getopt.h" 3346as_fn_append ac_header_list " getopt.h"
3345as_fn_append ac_func_list " gettimeofday" 3347as_fn_append ac_func_list " gettimeofday"
@@ -7181,10 +7183,12 @@ esac
7181 # Code from module extern-inline: 7183 # Code from module extern-inline:
7182 # Code from module faccessat: 7184 # Code from module faccessat:
7183 # Code from module fcntl-h: 7185 # Code from module fcntl-h:
7186 # Code from module fdatasync:
7184 # Code from module fdopendir: 7187 # Code from module fdopendir:
7185 # Code from module filemode: 7188 # Code from module filemode:
7186 # Code from module fpending: 7189 # Code from module fpending:
7187 # Code from module fstatat: 7190 # Code from module fstatat:
7191 # Code from module fsync:
7188 # Code from module getgroups: 7192 # Code from module getgroups:
7189 # Code from module getloadavg: 7193 # Code from module getloadavg:
7190 # Code from module getopt-gnu: 7194 # Code from module getopt-gnu:
@@ -13802,7 +13806,7 @@ select getpagesize setlocale \
13802utimes getrlimit setrlimit shutdown getaddrinfo \ 13806utimes getrlimit setrlimit shutdown getaddrinfo \
13803strsignal setitimer \ 13807strsignal setitimer \
13804sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \ 13808sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13805gai_strerror mkstemp getline getdelim fsync sync \ 13809gai_strerror mkstemp getline getdelim sync \
13806difftime posix_memalign \ 13810difftime posix_memalign \
13807getpwent endpwent getgrent endgrent \ 13811getpwent endpwent getgrent endgrent \
13808touchlock \ 13812touchlock \
@@ -15904,7 +15908,6 @@ esac
15904 15908
15905 15909
15906 15910
15907
15908case $opsys in 15911case $opsys in
15909 aix4-2) 15912 aix4-2)
15910 $as_echo "#define USG /**/" >>confdefs.h 15913 $as_echo "#define USG /**/" >>confdefs.h
@@ -15943,44 +15946,11 @@ $as_echo "#define CYGWIN 1" >>confdefs.h
15943 ;; 15946 ;;
15944 15947
15945 darwin) 15948 darwin)
15946 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15947
15948 15949
15949$as_echo "#define DARWIN_OS /**/" >>confdefs.h 15950$as_echo "#define DARWIN_OS /**/" >>confdefs.h
15950 15951
15951 ;; 15952 ;;
15952 15953
15953 freebsd)
15954
15955$as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15956
15957 ;;
15958
15959 gnu | netbsd | openbsd )
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961/* end confdefs.h. */
15962
15963#ifndef BSD_SYSTEM
15964# error "BSD_SYSTEM not defined"
15965#endif
15966
15967int
15968main ()
15969{
15970
15971 ;
15972 return 0;
15973}
15974_ACEOF
15975if ac_fn_c_try_cpp "$LINENO"; then :
15976
15977else
15978 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15979
15980fi
15981rm -f conftest.err conftest.$ac_ext
15982 ;;
15983
15984 gnu-linux | gnu-kfreebsd ) 15954 gnu-linux | gnu-kfreebsd )
15985 $as_echo "#define USG /**/" >>confdefs.h 15955 $as_echo "#define USG /**/" >>confdefs.h
15986 15956
@@ -17212,6 +17182,17 @@ _ACEOF
17212 17182
17213fi 17183fi
17214 17184
17185ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17186if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
17187 ac_have_decl=1
17188else
17189 ac_have_decl=0
17190fi
17191
17192cat >>confdefs.h <<_ACEOF
17193#define HAVE_DECL_FDATASYNC $ac_have_decl
17194_ACEOF
17195
17215 17196
17216 17197
17217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 17198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
@@ -17365,6 +17346,8 @@ _ACEOF
17365 17346
17366 17347
17367 17348
17349
17350
17368 GNULIB__EXIT=0; 17351 GNULIB__EXIT=0;
17369 GNULIB_ATOLL=0; 17352 GNULIB_ATOLL=0;
17370 GNULIB_CALLOC_POSIX=0; 17353 GNULIB_CALLOC_POSIX=0;
@@ -21302,6 +21285,114 @@ $as_echo "$gl_cv_next_fcntl_h" >&6; }
21302 21285
21303 21286
21304 21287
21288 LIB_FDATASYNC=
21289
21290
21291 if test $ac_cv_have_decl_fdatasync = no; then
21292 HAVE_DECL_FDATASYNC=0
21293 for ac_func in fdatasync
21294do :
21295 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21296if test "x$ac_cv_func_fdatasync" = x""yes; then :
21297 cat >>confdefs.h <<_ACEOF
21298#define HAVE_FDATASYNC 1
21299_ACEOF
21300
21301fi
21302done
21303
21304 if test $ac_cv_func_fdatasync = no; then
21305 HAVE_FDATASYNC=0
21306 fi
21307 else
21308 gl_saved_libs=$LIBS
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21310$as_echo_n "checking for library containing fdatasync... " >&6; }
21311if test "${ac_cv_search_fdatasync+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
21313else
21314 ac_func_search_save_LIBS=$LIBS
21315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316/* end confdefs.h. */
21317
21318/* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21321#ifdef __cplusplus
21322extern "C"
21323#endif
21324char fdatasync ();
21325int
21326main ()
21327{
21328return fdatasync ();
21329 ;
21330 return 0;
21331}
21332_ACEOF
21333for ac_lib in '' rt posix4; do
21334 if test -z "$ac_lib"; then
21335 ac_res="none required"
21336 else
21337 ac_res=-l$ac_lib
21338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21339 fi
21340 if ac_fn_c_try_link "$LINENO"; then :
21341 ac_cv_search_fdatasync=$ac_res
21342fi
21343rm -f core conftest.err conftest.$ac_objext \
21344 conftest$ac_exeext
21345 if test "${ac_cv_search_fdatasync+set}" = set; then :
21346 break
21347fi
21348done
21349if test "${ac_cv_search_fdatasync+set}" = set; then :
21350
21351else
21352 ac_cv_search_fdatasync=no
21353fi
21354rm conftest.$ac_ext
21355LIBS=$ac_func_search_save_LIBS
21356fi
21357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21358$as_echo "$ac_cv_search_fdatasync" >&6; }
21359ac_res=$ac_cv_search_fdatasync
21360if test "$ac_res" != no; then :
21361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21362 test "$ac_cv_search_fdatasync" = "none required" ||
21363 LIB_FDATASYNC=$ac_cv_search_fdatasync
21364fi
21365
21366 LIBS=$gl_saved_libs
21367 fi
21368
21369 if test $HAVE_FDATASYNC = 0; then
21370
21371
21372
21373
21374
21375
21376
21377
21378 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
21379
21380 fi
21381
21382
21383
21384
21385
21386 GNULIB_FDATASYNC=1
21387
21388
21389
21390
21391
21392
21393
21394
21395
21305 21396
21306 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" " 21397 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21307#include <dirent.h> 21398#include <dirent.h>
@@ -21622,6 +21713,37 @@ $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21622 21713
21623 21714
21624 21715
21716
21717 if test $ac_cv_func_fsync = no; then
21718 HAVE_FSYNC=0
21719 fi
21720
21721 if test $HAVE_FSYNC = 0; then
21722
21723
21724
21725
21726
21727
21728
21729
21730 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
21731
21732 :
21733 fi
21734
21735
21736
21737
21738
21739 GNULIB_FSYNC=1
21740
21741
21742
21743
21744
21745
21746
21625# Persuade glibc <stdlib.h> to declare getloadavg(). 21747# Persuade glibc <stdlib.h> to declare getloadavg().
21626 21748
21627 21749
@@ -26525,15 +26647,8 @@ case "$opsys" in
26525 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" 26647 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26526 26648
26527 ## This is here because src/Makefile.in did some extra fiddling around 26649 ## This is here because src/Makefile.in did some extra fiddling around
26528 ## with LD_SWITCH_SYSTEM. The cpp logic was: 26650 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
26529 ## #ifndef LD_SWITCH_SYSTEM 26651 ## LD_SWITCH_SYSTEM_TEMACS instead,
26530 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26531 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26532 ## not using gcc, darwin.
26533 ## Because this was done in src/Makefile.in, the resulting part of
26534 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
26535 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
26536 ## rather than LD_SWITCH_SYSTEM.
26537 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ 26652 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26538 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS" 26653 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26539 ;; 26654 ;;