Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/freadseek.m4 @ 16916:3d02d25fa13d
stdioext: Add support for musl libc.
* m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
* lib/fbufmode.c (fbufmode): Add conditional code for musl.
* m4/fseterr.m4: New file.
* lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
function exists.
* modules/fseterr (Files): Add m4/fseterr.m4.
(configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
__fseterr does not exist.
(Makefile.am): Remove fseterr.c from lib_SOURCES.
* lib/freadable.h: Update comment.
* lib/fwritable.h: Update comment.
* lib/freading.h: Update comment.
* lib/fwriting.h: Update comment.
* m4/freadahead.m4: New file.
* lib/freadahead.h (freadahead): Define as an alias of __freadahead if
that function exists.
* modules/freadahead (Files): Add m4/freadahead.m4.
(configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
__freadahead does not exist.
(Makefile.am): Remove freadahead.c from lib_SOURCES.
* m4/freadptr.m4: New file.
* lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
function exists.
* modules/freadptr (Files): Add m4/freadptr.m4.
(configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
__freadptr does not exist.
(Makefile.am): Remove freadptr.c from lib_SOURCES.
* m4/freadseek.m4: New file.
* lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
exists.
* modules/freadseek (Files): Add m4/freadseek.m4.
(configure.ac): Invoke gl_FUNC_FREADSEEK.
* lib/fpurge.c (fpurge): Update comment.
Reported by and with help from Rich Felker <dalias@aerifal.cx>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 19 Jun 2012 23:35:08 +0200 |
parents | |
children | dd46d4e6beea |
rev | line source |
---|---|
16916
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 # freadseek.m4 serial 1 |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 dnl Copyright (C) 2012 Free Software Foundation, Inc. |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_FUNC_FREADSEEK], |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 [ |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 AC_REQUIRE([AC_C_INLINE]) |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 AC_CHECK_FUNCS_ONCE([__freadptrinc]) |
3d02d25fa13d
stdioext: Add support for musl libc.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 ]) |