1 |
# unlocked-io.m4 serial 10 |
# unlocked-io.m4 serial 12 |
2 |
|
|
3 |
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software |
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software |
4 |
# Foundation, Inc. |
# Foundation, Inc. |
5 |
|
# |
6 |
# This program is free software; you can redistribute it and/or modify |
# This file is free software; the Free Software Foundation |
7 |
# it under the terms of the GNU General Public License as published by |
# gives unlimited permission to copy and/or distribute it, |
8 |
# the Free Software Foundation; either version 2, or (at your option) |
# with or without modifications, as long as this notice is preserved. |
|
# any later version. |
|
|
|
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software Foundation, |
|
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
9 |
|
|
10 |
dnl From Jim Meyering. |
dnl From Jim Meyering. |
11 |
dnl |
dnl |
17 |
|
|
18 |
AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO], |
AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO], |
19 |
[ |
[ |
20 |
|
AC_LIBSOURCES([unlocked-io.h]) |
21 |
|
|
22 |
AC_DEFINE([USE_UNLOCKED_IO], 1, |
AC_DEFINE([USE_UNLOCKED_IO], 1, |
23 |
[Define to 1 if you want getc etc. to use unlocked I/O if available. |
[Define to 1 if you want getc etc. to use unlocked I/O if available. |
24 |
Unlocked I/O can improve performance in unithreaded apps, |
Unlocked I/O can improve performance in unithreaded apps, |