From: Jim Meyering Date: Sun, 28 Jun 1998 21:40:12 +0000 (+0000) Subject: . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=241273a7b61ee0f2e8531144566d0bc2657a50ed;p=pspp . --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 7617192a76..2c50091de3 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +1998-06-28 Jim Meyering + + * jm-macros.m4: Require the new macro. + * jm-glibc-io.m4: New file. + 1998-05-19 Jim Meyering * jm-macros.m4: Add jm_FUNC_LCHOWN. diff --git a/m4/Makefile.am b/m4/Makefile.am index 17f187d5f9..5372980d46 100644 --- a/m4/Makefile.am +++ b/m4/Makefile.am @@ -3,10 +3,10 @@ ##m4-files-begin EXTRA_DIST = README Makefile.am.in assert.m4 check-decl.m4 chown.m4 \ const.m4 d-ino.m4 d-type.m4 decl.m4 error.m4 getgroups.m4 getline.m4 \ -getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-macros.m4 jm-mktime.m4 \ -jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 memcmp.m4 \ -perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 stat.m4 \ -strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4 +getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-glibc-io.m4 jm-macros.m4 \ +jm-mktime.m4 jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 \ +memcmp.m4 perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 \ +stat.m4 strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4 ##m4-files-end diff --git a/m4/Makefile.in b/m4/Makefile.in index e66c5469ce..ddca9abd38 100644 --- a/m4/Makefile.in +++ b/m4/Makefile.in @@ -92,10 +92,10 @@ l = @l@ EXTRA_DIST = README Makefile.am.in assert.m4 check-decl.m4 chown.m4 \ const.m4 d-ino.m4 d-type.m4 decl.m4 error.m4 getgroups.m4 getline.m4 \ -getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-macros.m4 jm-mktime.m4 \ -jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 memcmp.m4 \ -perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 stat.m4 \ -strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4 +getloadavg.m4 inttypes_h.m4 isc-posix.m4 jm-glibc-io.m4 jm-macros.m4 \ +jm-mktime.m4 jm-winsz1.m4 jm-winsz2.m4 lchown.m4 lfs.m4 lstat.m4 malloc.m4 \ +memcmp.m4 perl.m4 prereq.m4 putenv.m4 readdir.m4 realloc.m4 ssize_t.m4 \ +stat.m4 strftime.m4 uintmax_t.m4 uptime.m4 utimbuf.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = diff --git a/m4/jm-glibc-io.m4 b/m4/jm-glibc-io.m4 new file mode 100644 index 0000000000..e6ff4daa29 --- /dev/null +++ b/m4/jm-glibc-io.m4 @@ -0,0 +1,24 @@ +#serial 1 + +dnl From Jim Meyering. +dnl +dnl See if the glibc *_unlocked I/O macros are available. +dnl + +AC_DEFUN(jm_FUNC_GLIBC_UNLOCKED_IO, + [AC_CHECK_FUNCS( \ + clearerr_unlocked \ + fclose_unlocked \ + feof_unlocked \ + ferror_unlocked \ + fflush_unlocked \ + fputc_unlocked \ + fread_unlocked \ + fwrite_unlocked \ + getc_unlocked \ + getchar_unlocked \ + putc_unlocked \ + putchar_unlocked \ + ) + ] +)