1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-28 15:15:08 +03:00

Change jm_' in AC_DEFINE'd names to gl_'. Update all uses.

This commit is contained in:
Jim Meyering
2004-04-13 15:28:45 +00:00
parent d7d389b5dc
commit 72002f81e3
73 changed files with 277 additions and 260 deletions

View File

@@ -1,3 +1,23 @@
2004-04-13 Jim Meyering <jim@meyering.net>
Change `jm_' in AC_DEFINE'd names to `gl_'.
* afs.m4, allocsa.m4, assert.m4, backupfile.m4, bison.m4:
* check-decl.m4, chown.m4, d-ino.m4, d-type.m4, dirname.m4:
* dos.m4, error.m4, fpending.m4, fstypename.m4, fsusage.m4:
* ftruncate.m4, getdate.m4, getgroups.m4, gettext.m4, glibc21.m4:
* group-member.m4, human.m4, intmax.m4, intmax_t.m4, inttostr.m4:
* inttypes.m4, inttypes_h.m4, jm-macros.m4, jm-mktime.m4, jm-winsz1.m4:
* jm-winsz2.m4, lchown.m4, lib-check.m4, link-follow.m4, longlong.m4:
* ls-mntd-fs.m4, lstat.m4, makepath.m4, mbrtowc.m4, mbswidth.m4:
* memchr.m4, memcmp.m4, mkstemp.m4, mountlist.m4, nanosleep.m4:
* path-concat.m4, perl.m4, prereq.m4, putenv.m4, quotearg.m4:
* regex.m4, stat.m4, stdint_h.m4, strftime.m4, strtoimax.m4:
* strtoll.m4, strtoull.m4, strtoumax.m4, timespec.m4, uintmax_t.m4:
* ulonglong.m4, unlink-busy.m4, unlocked-io.m4, uptime.m4, utimbuf.m4:
* utime.m4, utimens.m4, utimes-null.m4, vasnprintf.m4, xstrtoimax.m4:
* xstrtol.m4, xstrtoumax.m4: Change jm_ to gl_ in AC_DEFINE'd names.
2004-03-27 Paul Eggert <eggert@twinsun.com>
* utimecmp.m4: New file.

View File

@@ -1,6 +1,6 @@
#serial 5
#serial 6
AC_DEFUN([jm_AFS],
AC_DEFUN([gl_AFS],
[
AC_MSG_CHECKING(for AFS)
if test -d /afs; then

View File

@@ -1,4 +1,4 @@
# allocsa.m4 serial 2
# allocsa.m4 serial 3
dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -12,6 +12,6 @@ AC_DEFUN([gl_ALLOCSA],
dnl @ALLOCA@ and @LTALLOCA@.
AC_REQUIRE([gl_FUNC_ALLOCA])
AC_REQUIRE([gl_EEMALLOC])
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
AC_REQUIRE([gt_TYPE_LONGDOUBLE])
])

View File

@@ -1,7 +1,7 @@
#serial 3
#serial 4
dnl based on code from Eleftherios Gkioulekas
AC_DEFUN([jm_ASSERT],
AC_DEFUN([gl_ASSERT],
[
AC_MSG_CHECKING(whether to enable assertions)
AC_ARG_ENABLE(assert,

View File

@@ -1,5 +1,5 @@
# backupfile.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -11,10 +11,10 @@ AC_DEFUN([gl_BACKUPFILE],
dnl Prerequisites of lib/backupfile.c.
AC_REQUIRE([AC_HEADER_DIRENT])
AC_REQUIRE([AC_FUNC_CLOSEDIR_VOID])
jm_CHECK_TYPE_STRUCT_DIRENT_D_INO
gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
dnl Prerequisites of lib/addext.c.
AC_REQUIRE([jm_AC_DOS])
AC_REQUIRE([gl_AC_DOS])
AC_REQUIRE([AC_SYS_LONG_FILE_NAMES])
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CHECK_FUNCS(pathconf)

View File

@@ -1,6 +1,6 @@
#serial 2
#serial 3
AC_DEFUN([jm_BISON],
AC_DEFUN([gl_BISON],
[
# getdate.y works with bison only.
: ${YACC='bison -y'}

View File

@@ -1,11 +1,11 @@
#serial 19
#serial 20
dnl This is just a wrapper function to encapsulate this kludge.
dnl Putting it in a separate file like this helps share it between
dnl different packages.
AC_DEFUN([jm_CHECK_DECLS],
AC_DEFUN([gl_CHECK_DECLS],
[
AC_REQUIRE([_jm_DECL_HEADERS])
AC_REQUIRE([_gl_DECL_HEADERS])
AC_REQUIRE([AC_HEADER_TIME])
headers='
#include <stdio.h>
@@ -67,7 +67,7 @@ AC_DEFUN([jm_CHECK_DECLS],
dnl FIXME: when autoconf has support for it.
dnl This is a little helper so we can require these header checks.
AC_DEFUN([_jm_DECL_HEADERS],
AC_DEFUN([_gl_DECL_HEADERS],
[
AC_REQUIRE([AC_HEADER_STDC])
AC_CHECK_HEADERS(grp.h memory.h pwd.h string.h strings.h stdlib.h \

View File

@@ -1,11 +1,11 @@
#serial 8
#serial 9
dnl From Jim Meyering.
dnl Determine whether chown accepts arguments of -1 for uid and gid.
dnl If it doesn't, arrange to use the replacement function.
dnl
AC_DEFUN([jm_FUNC_CHOWN],
AC_DEFUN([gl_FUNC_CHOWN],
[
AC_REQUIRE([AC_TYPE_UID_T])dnl
AC_REQUIRE([AC_FUNC_CHOWN])

View File

@@ -1,11 +1,11 @@
#serial 5
#serial 6
dnl From Jim Meyering.
dnl
dnl Check whether struct dirent has a member named d_ino.
dnl
AC_DEFUN([jm_CHECK_TYPE_STRUCT_DIRENT_D_INO],
AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO],
[AC_REQUIRE([AC_HEADER_DIRENT])dnl
AC_CACHE_CHECK([for d_ino member in directory struct],
jm_cv_struct_dirent_d_ino,

View File

@@ -1,11 +1,11 @@
#serial 6
#serial 7
dnl From Jim Meyering.
dnl
dnl Check whether struct dirent has a member named d_type.
dnl
AC_DEFUN([jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE],
AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE],
[AC_REQUIRE([AC_HEADER_DIRENT])dnl
AC_CACHE_CHECK([for d_type member in directory struct],
jm_cv_struct_dirent_d_type,

View File

@@ -1,5 +1,5 @@
# dirname.m4 serial 2
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# dirname.m4 serial 3
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -9,7 +9,7 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_DIRNAME],
[
dnl Prerequisites of lib/dirname.h.
AC_REQUIRE([jm_AC_DOS])
AC_REQUIRE([gl_AC_DOS])
dnl No prerequisites of lib/basename.c, lib/dirname.c, lib/stripslash.c.
])

View File

@@ -1,11 +1,11 @@
#serial 5
#serial 6
# Define some macros required for proper operation of code in lib/*.c
# on MSDOS/Windows systems.
# From Jim Meyering.
AC_DEFUN([jm_AC_DOS],
AC_DEFUN([gl_AC_DOS],
[
AC_CACHE_CHECK([whether system is Windows or MSDOS], [ac_cv_win_or_dos],
[

View File

@@ -1,14 +1,14 @@
#serial 9
#serial 10
AC_DEFUN([gl_ERROR],
[
AC_FUNC_ERROR_AT_LINE
dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]).
jm_PREREQ_ERROR
gl_PREREQ_ERROR
])
# Prerequisites of lib/error.c.
AC_DEFUN([jm_PREREQ_ERROR],
AC_DEFUN([gl_PREREQ_ERROR],
[
AC_REQUIRE([AC_FUNC_STRERROR_R])
:

View File

@@ -1,4 +1,4 @@
#serial 3
#serial 4
dnl From Jim Meyering
dnl Using code from emacs, based on suggestions from Paul Eggert
@@ -8,7 +8,7 @@ dnl Find out how to determine the number of pending output bytes on a stream.
dnl glibc (2.1.93 and newer) and Solaris provide __fpending. On other systems,
dnl we have to grub around in the FILE struct.
AC_DEFUN([jm_FUNC_FPENDING],
AC_DEFUN([gl_FUNC_FPENDING],
[
AC_CHECK_HEADERS(stdio_ext.h)
AC_REPLACE_FUNCS([__fpending])

View File

@@ -1,4 +1,4 @@
#serial 3
#serial 4
dnl From Jim Meyering.
dnl
@@ -6,7 +6,7 @@ dnl See if struct statfs has the f_fstypename member.
dnl If so, define HAVE_F_FSTYPENAME_IN_STATFS.
dnl
AC_DEFUN([jm_FSTYPENAME],
AC_DEFUN([gl_FSTYPENAME],
[
AC_CACHE_CHECK([for f_fstypename in struct statfs],
fu_cv_sys_f_fstypename_in_statfs,

View File

@@ -1,4 +1,4 @@
#serial 11
#serial 12
# From fileutils/configure.in
@@ -6,7 +6,7 @@ AC_DEFUN([gl_FSUSAGE],
[
AC_CHECK_HEADERS_ONCE(sys/param.h)
AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs_types.h)
jm_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no])
gl_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no])
if test $gl_cv_fs_space = yes; then
AC_LIBOBJ(fsusage)
gl_PREREQ_FSUSAGE_EXTRA
@@ -17,9 +17,9 @@ AC_DEFUN([gl_FSUSAGE],
# If successful, define the appropriate symbol (see fsusage.c) and
# execute ACTION-IF-FOUND. Otherwise, execute ACTION-IF-NOT-FOUND.
#
# jm_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
# gl_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
AC_DEFUN([jm_FILE_SYSTEM_USAGE],
AC_DEFUN([gl_FILE_SYSTEM_USAGE],
[
echo "checking how to get filesystem space usage..."
@@ -212,7 +212,7 @@ AS_IF([test $ac_fsusage_space = yes], [$1], [$2])
# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
# enable the work-around code in fsusage.c.
AC_DEFUN([jm_STATFS_TRUNCATES],
AC_DEFUN([gl_STATFS_TRUNCATES],
[
AC_MSG_CHECKING([for statfs that truncates block counts])
AC_CACHE_VAL(fu_cv_sys_truncating_statfs,
@@ -236,11 +236,11 @@ choke -- this is a workaround for a Sun-specific problem
])
# Prerequisites of lib/fsusage.c not done by jm_FILE_SYSTEM_USAGE.
# Prerequisites of lib/fsusage.c not done by gl_FILE_SYSTEM_USAGE.
AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA],
[
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
AC_CHECK_HEADERS_ONCE(fcntl.h)
AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h)
jm_STATFS_TRUNCATES
gl_STATFS_TRUNCATES
])

View File

@@ -1,8 +1,8 @@
#serial 5
#serial 6
# See if we need to emulate a missing ftruncate function using fcntl or chsize.
AC_DEFUN([jm_FUNC_FTRUNCATE],
AC_DEFUN([gl_FUNC_FTRUNCATE],
[
AC_REPLACE_FUNCS(ftruncate)
if test $ac_cv_func_ftruncate = no; then

View File

@@ -1,4 +1,4 @@
# getdate.m4 serial 3
# getdate.m4 serial 4
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -13,7 +13,7 @@ AC_DEFUN([gl_GETDATE],
AC_REQUIRE([gl_TIMESPEC])
dnl Prerequisites of lib/getdate.y.
AC_REQUIRE([jm_BISON])
AC_REQUIRE([gl_BISON])
AC_REQUIRE([AC_FUNC_ALLOCA])
AC_REQUIRE([AC_HEADER_STDC])
AC_CHECK_FUNCS_ONCE(isascii)

View File

@@ -1,9 +1,9 @@
#serial 8
#serial 9
dnl From Jim Meyering.
dnl A wrapper around AC_FUNC_GETGROUPS.
AC_DEFUN([jm_FUNC_GETGROUPS],
AC_DEFUN([gl_FUNC_GETGROUPS],
[
AC_REQUIRE([AC_FUNC_GETGROUPS])
if test $ac_cv_func_getgroups_works = no; then

View File

@@ -1,5 +1,5 @@
# gettext.m4 serial 28 (gettext-0.13)
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
# gettext.m4 serial 29
dnl Copyright (C) 1995-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -358,19 +358,19 @@ AC_DEFUN([AM_INTL_SUBDIR],
AC_REQUIRE([AC_C_INLINE])dnl
AC_REQUIRE([AC_TYPE_OFF_T])dnl
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
AC_REQUIRE([gt_TYPE_WINT_T])dnl
AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
AC_REQUIRE([jm_AC_HEADER_STDINT_H])
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
AC_REQUIRE([gt_TYPE_INTMAX_T])
AC_REQUIRE([gt_PRINTF_POSIX])
AC_REQUIRE([AC_FUNC_ALLOCA])dnl
AC_REQUIRE([AC_FUNC_MMAP])dnl
AC_REQUIRE([jm_GLIBC21])dnl
AC_REQUIRE([gl_GLIBC21])dnl
AC_REQUIRE([gt_INTDIV0])dnl
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
AC_REQUIRE([gt_INTTYPES_PRI])dnl
AC_REQUIRE([gl_XSIZE])dnl

View File

@@ -1,5 +1,5 @@
# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
# glibc21.m4 serial 3
dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -9,7 +9,7 @@ dnl the same distribution terms as the rest of that program.
# Test for the GNU C Library, version 2.1 or newer.
# From Bruno Haible.
AC_DEFUN([jm_GLIBC21],
AC_DEFUN([gl_GLIBC21],
[
AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
ac_cv_gnu_library_2_1,

View File

@@ -1,8 +1,8 @@
#serial 5
#serial 6
dnl Written by Jim Meyering
AC_DEFUN([jm_FUNC_GROUP_MEMBER],
AC_DEFUN([gl_FUNC_GROUP_MEMBER],
[
dnl Persuade glibc <unistd.h> to declare group_member().
AC_REQUIRE([AC_GNU_SOURCE])

View File

@@ -1,5 +1,5 @@
# human.m4 serial 4
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# human.m4 serial 5
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -10,7 +10,7 @@ AC_DEFUN([gl_HUMAN],
[
dnl Prerequisites of lib/human.h.
AC_REQUIRE([AM_STDBOOL_H])
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
dnl Prerequisites of lib/human.c.
AC_CHECK_HEADERS_ONCE(locale.h)

View File

@@ -1,5 +1,5 @@
# intmax.m4 serial 1 (gettext-0.12)
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
# intmax.m4 serial 2
dnl Copyright (C) 2002-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -12,8 +12,8 @@ dnl find a replacement if it is lacking.
AC_DEFUN([gt_TYPE_INTMAX_T],
[
AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
AC_REQUIRE([jm_AC_HEADER_STDINT_H])
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
[AC_TRY_COMPILE([
#include <stddef.h>

View File

@@ -1,5 +1,5 @@
# intmax_t.m4 serial 2
dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
# intmax_t.m4 serial 3
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -13,14 +13,14 @@ AC_PREREQ(2.13)
# Define intmax_t to 'long' or 'long long'
# if it is not already defined in <stdint.h> or <inttypes.h>.
AC_DEFUN([jm_AC_TYPE_INTMAX_T],
AC_DEFUN([gl_AC_TYPE_INTMAX_T],
[
dnl For simplicity, we assume that a header file defines 'intmax_t' if and
dnl only if it defines 'uintmax_t'.
AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
AC_REQUIRE([jm_AC_HEADER_STDINT_H])
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
test $ac_cv_type_long_long = yes \
&& ac_type='long long' \
|| ac_type='long'
@@ -36,8 +36,8 @@ dnl An alternative would be to explicitly test for 'intmax_t'.
AC_DEFUN([gt_AC_TYPE_INTMAX_T],
[
AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
AC_REQUIRE([jm_AC_HEADER_STDINT_H])
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
[AC_TRY_COMPILE([
#include <stddef.h>
@@ -53,7 +53,7 @@ AC_DEFUN([gt_AC_TYPE_INTMAX_T],
AC_DEFINE(HAVE_INTMAX_T, 1,
[Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
else
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
test $ac_cv_type_long_long = yes \
&& ac_type='long long' \
|| ac_type='long'

View File

@@ -1,4 +1,4 @@
# inttostr.m4 serial 1
# inttostr.m4 serial 2
dnl Copyright (C) 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -16,8 +16,8 @@ AC_DEFUN([gl_INTTOSTR],
# Prerequisites of lib/inttostr.h.
AC_DEFUN([gl_PREREQ_INTTOSTR], [
AC_REQUIRE([jm_AC_TYPE_INTMAX_T])
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_AC_TYPE_INTMAX_T])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
AC_REQUIRE([AC_TYPE_OFF_T])
:
])

View File

@@ -1,5 +1,5 @@
# inttypes.m4 serial 1 (gettext-0.11.4)
dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
# inttypes.m4 serial 2
dnl Copyright (C) 1997-2002, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program

View File

@@ -1,5 +1,5 @@
# inttypes_h.m4 serial 5 (gettext-0.12)
dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
# inttypes_h.m4 serial 6
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -11,7 +11,7 @@ dnl From Paul Eggert.
# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
# doesn't clash with <sys/types.h>, and declares uintmax_t.
AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
[
AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
[AC_TRY_COMPILE(

View File

@@ -2,7 +2,7 @@
dnl Misc type-related macros for fileutils, sh-utils, textutils.
AC_DEFUN([jm_MACROS],
AC_DEFUN([gl_MACROS],
[
AC_PREREQ(2.58)
@@ -19,34 +19,34 @@ AC_DEFUN([jm_MACROS],
dnl This macro actually runs replacement code. See isc-posix.m4.
AC_REQUIRE([AC_ISC_POSIX])dnl
jm_CHECK_ALL_TYPES
gl_CHECK_ALL_TYPES
AC_REQUIRE([UTILS_HOST_OS])
AC_REQUIRE([jm_ASSERT])
AC_REQUIRE([jm_CHECK_TYPE_STRUCT_UTIMBUF])
AC_REQUIRE([jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE])
AC_REQUIRE([jm_CHECK_TYPE_STRUCT_DIRENT_D_INO])
AC_REQUIRE([jm_CHECK_DECLS])
AC_REQUIRE([gl_ASSERT])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_UTIMBUF])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO])
AC_REQUIRE([gl_CHECK_DECLS])
AC_REQUIRE([jm_PREREQ])
AC_REQUIRE([gl_PREREQ])
AC_REQUIRE([UTILS_FUNC_DIRFD])
AC_REQUIRE([AC_FUNC_ACL])
AC_REQUIRE([jm_FUNC_LCHOWN])
AC_REQUIRE([gl_FUNC_LCHOWN])
AC_REQUIRE([fetish_FUNC_RMDIR_NOTEMPTY])
AC_REQUIRE([jm_FUNC_CHOWN])
AC_REQUIRE([gl_FUNC_CHOWN])
AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
AC_REQUIRE([AC_FUNC_STRERROR_R])
AC_REQUIRE([jm_FUNC_GROUP_MEMBER])
AC_REQUIRE([jm_AFS])
AC_REQUIRE([jm_AC_FUNC_LINK_FOLLOWS_SYMLINK])
AC_REQUIRE([jm_FUNC_FPENDING])
AC_REQUIRE([gl_FUNC_GROUP_MEMBER])
AC_REQUIRE([gl_AFS])
AC_REQUIRE([gl_AC_FUNC_LINK_FOLLOWS_SYMLINK])
AC_REQUIRE([gl_FUNC_FPENDING])
# This is for od and stat, and any other program that
# uses the PRI.MAX macros from inttypes.h.
AC_REQUIRE([gt_INTTYPES_PRI])
AC_REQUIRE([jm_FUNC_GETGROUPS])
AC_REQUIRE([gl_FUNC_GETGROUPS])
AC_REQUIRE([AC_FUNC_FSEEKO])
AC_REQUIRE([AC_FUNC_ALLOCA])
@@ -54,8 +54,8 @@ AC_DEFUN([jm_MACROS],
AC_CONFIG_LIBOBJ_DIR([lib])
AC_FUNC_GETLOADAVG([lib])
AC_REQUIRE([jm_SYS_PROC_UPTIME])
AC_REQUIRE([jm_FUNC_FTRUNCATE])
AC_REQUIRE([gl_SYS_PROC_UPTIME])
AC_REQUIRE([gl_FUNC_FTRUNCATE])
# raise is used by at least sort and ls.
AC_REPLACE_FUNCS(raise)
@@ -138,9 +138,9 @@ AC_DEFUN([jm_MACROS],
])
AM_LANGINFO_CODESET
jm_GLIBC21
gl_GLIBC21
AM_ICONV
jm_FUNC_UNLINK_BUSY_TEXT
gl_FUNC_UNLINK_BUSY_TEXT
# These tests are for df.
AC_REQUIRE([gl_FSUSAGE])
@@ -148,7 +148,7 @@ AC_DEFUN([jm_MACROS],
if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
DF_PROG='df$(EXEEXT)'
fi
AC_REQUIRE([jm_AC_DOS])
AC_REQUIRE([gl_AC_DOS])
AC_REQUIRE([AC_FUNC_CANONICALIZE_FILE_NAME])
# If any of these functions don't exist (e.g. DJGPP 2.03),
@@ -162,7 +162,7 @@ AC_DEFUN([jm_MACROS],
# These tests must be run before any use of AC_CHECK_TYPE,
# because that macro compiles code that tests e.g., HAVE_UNISTD_H.
# See the definition of ac_includes_default in `configure'.
AC_DEFUN([jm_CHECK_ALL_HEADERS],
AC_DEFUN([gl_CHECK_ALL_HEADERS],
[
AC_CHECK_HEADERS( \
errno.h \
@@ -206,7 +206,7 @@ AC_DEFUN([jm_CHECK_ALL_HEADERS],
])
# This macro must be invoked before any tests that run the compiler.
AC_DEFUN([jm_CHECK_ALL_TYPES],
AC_DEFUN([gl_CHECK_ALL_TYPES],
[
dnl This test must come as early as possible after the compiler configuration
dnl tests, because the choice of the file model can (in principle) affect
@@ -225,7 +225,7 @@ AC_DEFUN([jm_CHECK_ALL_TYPES],
AC_REQUIRE([AC_C_INLINE])
AC_REQUIRE([AC_C_LONG_DOUBLE])
AC_REQUIRE([jm_CHECK_ALL_HEADERS])
AC_REQUIRE([gl_CHECK_ALL_HEADERS])
AC_REQUIRE([AC_HEADER_DIRENT])
AC_REQUIRE([AC_HEADER_STDC])
AC_CHECK_MEMBERS(
@@ -257,8 +257,8 @@ AC_DEFUN([jm_CHECK_ALL_TYPES],
AC_CHECK_TYPE(major_t, unsigned int)
AC_CHECK_TYPE(minor_t, unsigned int)
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
AC_REQUIRE([AC_HEADER_MAJOR])
AC_REQUIRE([AC_HEADER_DIRENT])

View File

@@ -1,9 +1,9 @@
#serial 8
#serial 9
dnl From Jim Meyering.
dnl A wrapper around AC_FUNC_MKTIME.
AC_DEFUN([jm_FUNC_MKTIME],
AC_DEFUN([gl_FUNC_MKTIME],
[AC_REQUIRE([AC_FUNC_MKTIME])dnl
dnl mktime.c uses localtime_r if it exists. Check for it.

View File

@@ -1,6 +1,6 @@
#serial 6
#serial 7
dnl From Jim Meyering and Paul Eggert.
AC_DEFUN([jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
AC_DEFUN([gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
[AC_REQUIRE([AC_SYS_POSIX_TERMIOS])
AC_CACHE_CHECK([whether use of TIOCGWINSZ requires termios.h],
jm_cv_sys_tiocgwinsz_needs_termios_h,
@@ -18,7 +18,7 @@ AC_DEFUN([jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H],
])
])
AC_DEFUN([jm_WINSIZE_IN_PTEM],
AC_DEFUN([gl_WINSIZE_IN_PTEM],
[AC_REQUIRE([AC_SYS_POSIX_TERMIOS])
AC_CACHE_CHECK([whether use of struct winsize requires sys/ptem.h],
jm_cv_sys_struct_winsize_needs_sys_ptem_h,

View File

@@ -1,7 +1,7 @@
#serial 4
#serial 5
AC_DEFUN([jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL],
[AC_REQUIRE([jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H])
AC_DEFUN([gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL],
[AC_REQUIRE([gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H])
AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h],
jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h,
[jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no

View File

@@ -1,9 +1,9 @@
#serial 3
#serial 4
dnl From Jim Meyering.
dnl Provide lchown on systems that lack it.
AC_DEFUN([jm_FUNC_LCHOWN],
AC_DEFUN([gl_FUNC_LCHOWN],
[
AC_REQUIRE([AC_TYPE_UID_T])
AC_REPLACE_FUNCS(lchown)

View File

@@ -1,8 +1,8 @@
#serial 6
#serial 7
dnl Misc lib-related macros for fileutils, sh-utils, textutils.
AC_DEFUN([jm_LIB_CHECK],
AC_DEFUN([gl_LIB_CHECK],
[
# Check for libypsec.a on Dolphin M88K machines.

View File

@@ -1,8 +1,8 @@
#serial 3
#serial 4
dnl Run a program to determine whether whether link(2) follows symlinks.
dnl Set LINK_FOLLOWS_SYMLINKS accordingly.
AC_DEFUN([jm_AC_FUNC_LINK_FOLLOWS_SYMLINK],
AC_DEFUN([gl_AC_FUNC_LINK_FOLLOWS_SYMLINK],
[dnl
AC_CACHE_CHECK(
[whether link(2) dereferences a symlink specified with a trailing slash],

View File

@@ -1,5 +1,5 @@
# longlong.m4 serial 4
dnl Copyright (C) 1999-2003 Free Software Foundation, Inc.
# longlong.m4 serial 5
dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -10,7 +10,7 @@ dnl From Paul Eggert.
# Define HAVE_LONG_LONG if 'long long' works.
AC_DEFUN([jm_AC_TYPE_LONG_LONG],
AC_DEFUN([gl_AC_TYPE_LONG_LONG],
[
AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
[AC_TRY_LINK([long long ll = 1LL; int i = 63;],

View File

@@ -1,4 +1,4 @@
#serial 14
#serial 15
dnl From Jim Meyering.
dnl
@@ -6,8 +6,8 @@ dnl This is not pretty. I've just taken the autoconf code and wrapped
dnl it in an AC_DEFUN.
dnl
# jm_LIST_MOUNTED_FILESYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
AC_DEFUN([jm_LIST_MOUNTED_FILESYSTEMS],
# gl_LIST_MOUNTED_FILESYSTEMS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
AC_DEFUN([gl_LIST_MOUNTED_FILESYSTEMS],
[
AC_CHECK_FUNCS(listmntent getmntinfo)
AC_CHECK_HEADERS_ONCE(sys/param.h)

View File

@@ -1,4 +1,4 @@
#serial 10
#serial 11
dnl From Jim Meyering.
dnl Determine whether lstat has the bug that it succeeds when given the
@@ -9,7 +9,7 @@ dnl If it does, then define HAVE_LSTAT_EMPTY_STRING_BUG and arrange to
dnl compile the wrapper function.
dnl
AC_DEFUN([jm_FUNC_LSTAT],
AC_DEFUN([gl_FUNC_LSTAT],
[
AC_FUNC_LSTAT
dnl Note: AC_FUNC_LSTAT does AC_LIBOBJ(lstat).

View File

@@ -1,5 +1,5 @@
# makepath.m4 serial 2
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# makepath.m4 serial 3
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -12,5 +12,5 @@ AC_DEFUN([gl_MAKEPATH],
AC_REQUIRE([AC_FUNC_ALLOCA])
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_REQUIRE([AC_HEADER_STAT])
AC_REQUIRE([jm_AFS])
AC_REQUIRE([gl_AFS])
])

View File

@@ -1,5 +1,5 @@
# mbrtowc.m4 serial 5
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
# mbrtowc.m4 serial 6
dnl Copyright (C) 2001-2002, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -8,10 +8,10 @@ dnl the same distribution terms as the rest of that program.
dnl From Paul Eggert
dnl This file can be removed, and jm_FUNC_MBRTOWC replaced with
dnl This file can be removed, and gl_FUNC_MBRTOWC replaced with
dnl AC_FUNC_MBRTOWC, when autoconf 2.57 can be assumed everywhere.
AC_DEFUN([jm_FUNC_MBRTOWC],
AC_DEFUN([gl_FUNC_MBRTOWC],
[
AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
jm_cv_func_mbrtowc,

View File

@@ -1,4 +1,4 @@
#serial 10
#serial 11
dnl autoconf tests required for use of mbswidth.c
dnl From Bruno Haible.
@@ -8,7 +8,7 @@ AC_DEFUN([gl_MBSWIDTH],
AC_CHECK_HEADERS_ONCE(wchar.h wctype.h)
AC_CHECK_FUNCS_ONCE(isascii iswprint mbsinit)
AC_CHECK_FUNCS(iswcntrl wcwidth)
jm_FUNC_MBRTOWC
gl_FUNC_MBRTOWC
AC_CACHE_CHECK([whether wcwidth is declared], ac_cv_have_decl_wcwidth,
[AC_TRY_COMPILE([

View File

@@ -1,5 +1,5 @@
# memchr.m4 serial 2
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# memchr.m4 serial 3
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -10,11 +10,11 @@ AC_DEFUN([gl_FUNC_MEMCHR],
[
AC_REPLACE_FUNCS(memchr)
if test $ac_cv_func_memchr = no; then
jm_PREREQ_MEMCHR
gl_PREREQ_MEMCHR
fi
])
# Prerequisites of lib/memchr.c.
AC_DEFUN([jm_PREREQ_MEMCHR], [
AC_DEFUN([gl_PREREQ_MEMCHR], [
AC_CHECK_HEADERS(bp-sym.h)
])

View File

@@ -1,12 +1,12 @@
# memcmp.m4 serial 9
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# memcmp.m4 serial 10
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.
AC_DEFUN([jm_FUNC_MEMCMP],
AC_DEFUN([gl_FUNC_MEMCMP],
[
AC_REQUIRE([AC_FUNC_MEMCMP])
if test $ac_cv_func_memcmp_working = no; then

View File

@@ -1,4 +1,4 @@
#serial 4
#serial 5
# On some hosts (e.g., HP-UX 10.20, SunOS 4.1.4, Solaris 2.5.1), mkstemp has a
# silly limit that it can create no more than 26 files from a given template.
@@ -45,7 +45,7 @@ AC_DEFUN([UTILS_FUNC_MKSTEMP],
AC_DEFINE(mkstemp, rpl_mkstemp,
[Define to rpl_mkstemp if the replacement function should be used.])
gl_PREREQ_MKSTEMP
jm_PREREQ_TEMPNAME
gl_PREREQ_TEMPNAME
fi
])
@@ -55,12 +55,12 @@ AC_DEFUN([gl_PREREQ_MKSTEMP],
])
# Prerequisites of lib/tempname.c.
AC_DEFUN([jm_PREREQ_TEMPNAME],
AC_DEFUN([gl_PREREQ_TEMPNAME],
[
AC_REQUIRE([AC_HEADER_STAT])
AC_CHECK_HEADERS_ONCE(fcntl.h sys/time.h unistd.h)
AC_CHECK_HEADERS(stdint.h)
AC_CHECK_FUNCS(__secure_getenv gettimeofday)
AC_CHECK_DECLS_ONCE(getenv)
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
])

View File

@@ -1,5 +1,5 @@
# mountlist.m4 serial 2
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# mountlist.m4 serial 3
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -8,7 +8,7 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_MOUNTLIST],
[
jm_LIST_MOUNTED_FILESYSTEMS([gl_cv_list_mounted_fs=yes],
gl_LIST_MOUNTED_FILESYSTEMS([gl_cv_list_mounted_fs=yes],
[gl_cv_list_mounted_fs=no])
if test $gl_cv_list_mounted_fs = yes; then
AC_LIBOBJ(mountlist)
@@ -16,11 +16,11 @@ AC_DEFUN([gl_MOUNTLIST],
fi
])
# Prerequisites of lib/mountlist.c not done by jm_LIST_MOUNTED_FILESYSTEMS.
# Prerequisites of lib/mountlist.c not done by gl_LIST_MOUNTED_FILESYSTEMS.
AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA],
[
dnl Note jm_LIST_MOUNTED_FILESYSTEMS checks for mntent.h, not sys/mntent.h.
dnl Note gl_LIST_MOUNTED_FILESYSTEMS checks for mntent.h, not sys/mntent.h.
AC_CHECK_HEADERS_ONCE(fcntl.h unistd.h)
AC_CHECK_HEADERS(sys/mntent.h)
jm_FSTYPENAME
gl_FSTYPENAME
])

View File

@@ -1,11 +1,11 @@
#serial 9
#serial 10
dnl From Jim Meyering.
dnl Check for the nanosleep function.
dnl If not found, use the supplied replacement.
dnl
AC_DEFUN([jm_FUNC_NANOSLEEP],
AC_DEFUN([gl_FUNC_NANOSLEEP],
[
nanosleep_save_libs=$LIBS

View File

@@ -1,5 +1,5 @@
# path-concat.m4 serial 2
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# path-concat.m4 serial 3
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -9,7 +9,7 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_PATH_CONCAT],
[
dnl Prerequisites of lib/path-concat.c.
AC_REQUIRE([jm_AC_DOS])
AC_REQUIRE([gl_AC_DOS])
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_CHECK_FUNCS_ONCE(mempcpy)
])

View File

@@ -1,10 +1,10 @@
#serial 5
#serial 6
dnl From Jim Meyering.
dnl Find a new-enough version of Perl.
dnl
AC_DEFUN([jm_PERL],
AC_DEFUN([gl_PERL],
[
dnl FIXME: don't hard-code 5.003
dnl FIXME: should we cache the result?

View File

@@ -1,13 +1,12 @@
#serial 39
#serial 40
dnl We use jm_ for non Autoconf macros.
m4_pattern_forbid([^jm_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
dnl We use gl_ for non Autoconf macros.
m4_pattern_forbid([^gl_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
# These are the prerequisite macros for files in the lib/
# directory of the coreutils package.
AC_DEFUN([jm_PREREQ],
AC_DEFUN([gl_PREREQ],
[
# We don't yet use c-stack.c.
# AC_REQUIRE([gl_C_STACK])
@@ -114,23 +113,23 @@ AC_DEFUN([jm_PREREQ],
AC_REQUIRE([gl_XSTRTOD])
AC_REQUIRE([gl_XSTRTOL])
AC_REQUIRE([gl_YESNO])
AC_REQUIRE([jm_FUNC_GLIBC_UNLOCKED_IO])
AC_REQUIRE([jm_FUNC_GNU_STRFTIME])
AC_REQUIRE([jm_FUNC_LSTAT])
AC_REQUIRE([gl_FUNC_GLIBC_UNLOCKED_IO])
AC_REQUIRE([gl_FUNC_GNU_STRFTIME])
AC_REQUIRE([gl_FUNC_LSTAT])
AC_REQUIRE([AC_FUNC_MALLOC])
AC_REQUIRE([jm_FUNC_MEMCMP])
AC_REQUIRE([jm_FUNC_NANOSLEEP])
AC_REQUIRE([jm_FUNC_PUTENV])
AC_REQUIRE([gl_FUNC_MEMCMP])
AC_REQUIRE([gl_FUNC_NANOSLEEP])
AC_REQUIRE([gl_FUNC_PUTENV])
AC_REQUIRE([AC_FUNC_REALLOC])
AC_REQUIRE([jm_FUNC_STAT])
AC_REQUIRE([jm_FUNC_UTIME])
AC_REQUIRE([jm_PREREQ_STAT])
AC_REQUIRE([jm_XSTRTOIMAX])
AC_REQUIRE([jm_XSTRTOUMAX])
AC_REQUIRE([gl_FUNC_STAT])
AC_REQUIRE([gl_FUNC_UTIME])
AC_REQUIRE([gl_PREREQ_STAT])
AC_REQUIRE([gl_XSTRTOIMAX])
AC_REQUIRE([gl_XSTRTOUMAX])
AC_REQUIRE([vb_FUNC_RENAME])
])
AC_DEFUN([jm_PREREQ_STAT],
AC_DEFUN([gl_PREREQ_STAT],
[
AC_CHECK_HEADERS(sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h)
AC_CHECK_HEADERS(sys/param.h sys/mount.h)
@@ -140,7 +139,7 @@ AC_DEFUN([jm_PREREQ_STAT],
AC_CHECK_HEADERS([netinet/in.h nfs/nfs_clnt.h nfs/vfs.h],,,
[AC_INCLUDES_DEFAULT])
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
statxfs_includes="\
$ac_includes_default

View File

@@ -1,5 +1,5 @@
# putenv.m4 serial 7
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# putenv.m4 serial 8
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -11,7 +11,7 @@ dnl
dnl Check whether putenv ("FOO") removes FOO from the environment.
dnl The putenv in libc on at least SunOS 4.1.4 does *not* do that.
AC_DEFUN([jm_FUNC_PUTENV],
AC_DEFUN([gl_FUNC_PUTENV],
[AC_CACHE_CHECK([for SVID conformant putenv], jm_cv_func_svid_putenv,
[AC_TRY_RUN([
int

View File

@@ -1,5 +1,5 @@
# quotearg.m4 serial 1
dnl Copyright (C) 2002 Free Software Foundation, Inc.
# quotearg.m4 serial 2
dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -12,5 +12,5 @@ AC_DEFUN([gl_QUOTEARG],
AC_CHECK_HEADERS_ONCE(wchar.h wctype.h)
AC_CHECK_FUNCS_ONCE(iswprint mbsinit)
AC_TYPE_MBSTATE_T
jm_FUNC_MBRTOWC
gl_FUNC_MBRTOWC
])

View File

@@ -1,16 +1,16 @@
#serial 20
#serial 21
dnl Initially derived from code in GNU grep.
dnl Mostly written by Jim Meyering.
AC_DEFUN([gl_REGEX],
[
jm_INCLUDED_REGEX([lib/regex.c])
gl_INCLUDED_REGEX([lib/regex.c])
])
dnl Usage: jm_INCLUDED_REGEX([lib/regex.c])
dnl Usage: gl_INCLUDED_REGEX([lib/regex.c])
dnl
AC_DEFUN([jm_INCLUDED_REGEX],
AC_DEFUN([gl_INCLUDED_REGEX],
[
dnl Even packages that don't use regex.c can use this macro.
dnl Of course, for them it doesn't do anything.
@@ -93,7 +93,7 @@ AC_DEFUN([jm_INCLUDED_REGEX],
jm_with_regex=$ac_use_included_regex)
if test "$jm_with_regex" = yes; then
AC_LIBOBJ(regex)
jm_PREREQ_REGEX
gl_PREREQ_REGEX
fi
],
)
@@ -101,7 +101,7 @@ AC_DEFUN([jm_INCLUDED_REGEX],
)
# Prerequisites of lib/regex.c.
AC_DEFUN([jm_PREREQ_REGEX],
AC_DEFUN([gl_PREREQ_REGEX],
[
dnl FIXME: Maybe provide a btowc replacement someday: Solaris 2.5.1 lacks it.
dnl FIXME: Check for wctype and iswctype, and and add -lw if necessary

View File

@@ -1,4 +1,4 @@
#serial 9
#serial 10
dnl From Jim Meyering.
dnl Determine whether stat has the bug that it succeeds when given the
@@ -9,7 +9,7 @@ dnl If it does, then define HAVE_STAT_EMPTY_STRING_BUG and arrange to
dnl compile the wrapper function.
dnl
AC_DEFUN([jm_FUNC_STAT],
AC_DEFUN([gl_FUNC_STAT],
[
AC_FUNC_STAT
dnl Note: AC_FUNC_STAT does AC_LIBOBJ(stat).

View File

@@ -1,5 +1,5 @@
# stdint_h.m4 serial 3 (gettext-0.12)
dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
# stdint_h.m4 serial 4
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -11,7 +11,7 @@ dnl From Paul Eggert.
# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
# doesn't clash with <sys/types.h>, and declares uintmax_t.
AC_DEFUN([jm_AC_HEADER_STDINT_H],
AC_DEFUN([gl_AC_HEADER_STDINT_H],
[
AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
[AC_TRY_COMPILE(

View File

@@ -1,8 +1,8 @@
#serial 21
#serial 22
dnl This macro is intended to be used solely in this file.
dnl These are the prerequisite macros for GNU's strftime.c replacement.
AC_DEFUN([_jm_STRFTIME_PREREQS],
AC_DEFUN([_gl_STRFTIME_PREREQS],
[
dnl strftime.c uses the underyling system strftime if it exists.
AC_FUNC_STRFTIME
@@ -22,10 +22,10 @@ AC_DEFUN([_jm_STRFTIME_PREREQS],
dnl From Jim Meyering.
dnl
AC_DEFUN([jm_FUNC_GNU_STRFTIME],
AC_DEFUN([gl_FUNC_GNU_STRFTIME],
[AC_REQUIRE([AC_HEADER_TIME])dnl
_jm_STRFTIME_PREREQS
_gl_STRFTIME_PREREQS
AC_REQUIRE([AC_C_CONST])dnl
AC_CHECK_HEADERS_ONCE(sys/time.h)
@@ -33,7 +33,7 @@ AC_DEFUN([jm_FUNC_GNU_STRFTIME],
[Define to the name of the strftime replacement function.])
])
AC_DEFUN([jm_FUNC_STRFTIME],
AC_DEFUN([gl_FUNC_STRFTIME],
[
_jm_STRFTIME_PREREQS
_gl_STRFTIME_PREREQS
])

View File

@@ -1,5 +1,5 @@
# strtoimax.m4 serial 3
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
dnl Copyright (C) 2002-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -31,7 +31,7 @@ AC_DEFUN([gl_FUNC_STRTOIMAX],
# Prerequisites of lib/strtoimax.c.
AC_DEFUN([gl_PREREQ_STRTOIMAX], [
jm_AC_TYPE_INTMAX_T
gl_AC_TYPE_INTMAX_T
AC_CHECK_DECLS(strtoll)
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
])

View File

@@ -1,5 +1,5 @@
# strtoll.m4 serial 1
dnl Copyright (C) 2002 Free Software Foundation, Inc.
# strtoll.m4 serial 2
dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_STRTOLL],
[
dnl We don't need (and can't compile) the replacement strtoll
dnl unless the type 'long long' exists.
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
if test "$ac_cv_type_long_long" = yes; then
AC_REPLACE_FUNCS(strtoll)
if test $ac_cv_func_strtoll = no; then
@@ -23,4 +23,3 @@ AC_DEFUN([gl_FUNC_STRTOLL],
AC_DEFUN([gl_PREREQ_STRTOLL], [
:
])

View File

@@ -1,5 +1,5 @@
# strtoull.m4 serial 1
dnl Copyright (C) 2002 Free Software Foundation, Inc.
# strtoull.m4 serial 2
dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_STRTOULL],
[
dnl We don't need (and can't compile) the replacement strtoull
dnl unless the type 'unsigned long long' exists.
AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
if test "$ac_cv_type_unsigned_long_long" = yes; then
AC_REPLACE_FUNCS(strtoull)
if test $ac_cv_func_strtoull = no; then
@@ -23,4 +23,3 @@ AC_DEFUN([gl_FUNC_STRTOULL],
AC_DEFUN([gl_PREREQ_STRTOULL], [
:
])

View File

@@ -1,5 +1,5 @@
# strtoumax.m4 serial 3
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
dnl Copyright (C) 2002-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -31,7 +31,7 @@ AC_DEFUN([gl_FUNC_STRTOUMAX],
# Prerequisites of lib/strtoumax.c.
AC_DEFUN([gl_PREREQ_STRTOUMAX], [
jm_AC_TYPE_UINTMAX_T
gl_AC_TYPE_UINTMAX_T
AC_CHECK_DECLS(strtoull)
AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
])

View File

@@ -1,4 +1,4 @@
#serial 7
#serial 8
dnl From Jim Meyering
@@ -7,7 +7,7 @@ AC_DEFUN([gl_TIMESPEC],
dnl Prerequisites of lib/timespec.h.
AC_REQUIRE([AC_HEADER_TIME])
AC_CHECK_HEADERS_ONCE(sys/time.h)
jm_CHECK_TYPE_STRUCT_TIMESPEC
gl_CHECK_TYPE_STRUCT_TIMESPEC
AC_STRUCT_ST_MTIM_NSEC
dnl Persuade glibc <time.h> to declare nanosleep().
@@ -19,7 +19,7 @@ AC_DEFUN([gl_TIMESPEC],
dnl Define HAVE_STRUCT_TIMESPEC if `struct timespec' is declared
dnl in time.h or sys/time.h.
AC_DEFUN([jm_CHECK_TYPE_STRUCT_TIMESPEC],
AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC],
[
dnl Persuade pedantic Solaris to declare struct timespec.
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])

View File

@@ -1,5 +1,5 @@
# uintmax_t.m4 serial 7 (gettext-0.12)
dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
# uintmax_t.m4 serial 8
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -13,12 +13,12 @@ AC_PREREQ(2.13)
# Define uintmax_t to 'unsigned long' or 'unsigned long long'
# if it is not already defined in <stdint.h> or <inttypes.h>.
AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
[
AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
AC_REQUIRE([jm_AC_HEADER_STDINT_H])
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
test $ac_cv_type_unsigned_long_long = yes \
&& ac_type='unsigned long long' \
|| ac_type='unsigned long'

View File

@@ -1,5 +1,5 @@
# ulonglong.m4 serial 3
dnl Copyright (C) 1999-2003 Free Software Foundation, Inc.
# ulonglong.m4 serial 4
dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -10,7 +10,7 @@ dnl From Paul Eggert.
# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
[
AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
[AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],

View File

@@ -1,10 +1,10 @@
#serial 6
#serial 7
dnl From J. David Anglin.
dnl HPUX and other systems can't unlink shared text that is being executed.
AC_DEFUN([jm_FUNC_UNLINK_BUSY_TEXT],
AC_DEFUN([gl_FUNC_UNLINK_BUSY_TEXT],
[dnl
AC_CACHE_CHECK([whether a running program can be unlinked],
jm_cv_func_unlink_busy_text,

View File

@@ -1,4 +1,4 @@
#serial 8 -*- autoconf -*-
#serial 9 -*- autoconf -*-
dnl From Jim Meyering.
dnl
@@ -8,7 +8,7 @@ dnl (because some of them were declared in Solaris 2.5.1 but were removed
dnl in Solaris 2.6, whereas we want binaries built on Solaris 2.5.1 to run
dnl on Solaris 2.6).
AC_DEFUN([jm_FUNC_GLIBC_UNLOCKED_IO],
AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO],
[
dnl Persuade glibc and Solaris <stdio.h> to declare
dnl fgets_unlocked(), fputs_unlocked() etc.

View File

@@ -1,8 +1,8 @@
#serial 5
#serial 6
AC_PREREQ(2.13)
AC_DEFUN([jm_SYS_PROC_UPTIME],
AC_DEFUN([gl_SYS_PROC_UPTIME],
[ dnl Require AC_PROG_CC to see if we're cross compiling.
AC_REQUIRE([AC_PROG_CC])
AC_CACHE_CHECK([for /proc/uptime], jm_cv_have_proc_uptime,

View File

@@ -1,4 +1,4 @@
#serial 5
#serial 6
dnl From Jim Meyering
@@ -6,7 +6,7 @@ dnl Define HAVE_STRUCT_UTIMBUF if `struct utimbuf' is declared --
dnl usually in <utime.h>.
dnl Some systems have utime.h but don't declare the struct anywhere.
AC_DEFUN([jm_CHECK_TYPE_STRUCT_UTIMBUF],
AC_DEFUN([gl_CHECK_TYPE_STRUCT_UTIMBUF],
[
AC_CHECK_HEADERS_ONCE(sys/time.h utime.h)
AC_REQUIRE([AC_HEADER_TIME])

View File

@@ -1,11 +1,11 @@
#serial 5
#serial 6
dnl From Jim Meyering
dnl Replace the utime function on systems that need it.
dnl FIXME
AC_DEFUN([jm_FUNC_UTIME],
AC_DEFUN([gl_FUNC_UTIME],
[
AC_REQUIRE([AC_FUNC_UTIME_NULL])
if test $ac_cv_func_utime_null = no; then
@@ -20,6 +20,6 @@ AC_DEFUN([jm_FUNC_UTIME],
AC_DEFUN([gl_PREREQ_UTIME],
[
AC_CHECK_HEADERS_ONCE(utime.h)
AC_REQUIRE([jm_CHECK_TYPE_STRUCT_UTIMBUF])
jm_FUNC_UTIMES_NULL
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_UTIMBUF])
gl_FUNC_UTIMES_NULL
])

View File

@@ -10,6 +10,6 @@ AC_DEFUN([gl_UTIMENS],
dnl Prerequisites of lib/utimens.c.
AC_REQUIRE([gl_TIMESPEC])
AC_REQUIRE([gl_FUNC_UTIMES])
AC_REQUIRE([jm_CHECK_TYPE_STRUCT_TIMESPEC])
AC_REQUIRE([jm_CHECK_TYPE_STRUCT_UTIMBUF])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_UTIMBUF])
])

View File

@@ -1,9 +1,9 @@
#serial 4
#serial 5
dnl Shamelessly cloned from acspecific.m4's AC_FUNC_UTIME_NULL,
dnl then do case-insensitive s/utime/utimes/.
AC_DEFUN([jm_FUNC_UTIMES_NULL],
AC_DEFUN([gl_FUNC_UTIMES_NULL],
[AC_CACHE_CHECK(whether utimes accepts a null argument, ac_cv_func_utimes_null,
[rm -f conftest.data; > conftest.data
AC_TRY_RUN([

View File

@@ -1,5 +1,5 @@
# vasnprintf.m4 serial 3
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
# vasnprintf.m4 serial 4
dnl Copyright (C) 2002-2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -24,7 +24,7 @@ AC_DEFUN([gl_FUNC_VASNPRINTF],
AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
[
AC_REQUIRE([bh_C_SIGNED])
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
AC_REQUIRE([gt_TYPE_LONGDOUBLE])
AC_REQUIRE([gt_TYPE_WCHAR_T])
AC_REQUIRE([gt_TYPE_WINT_T])
@@ -33,7 +33,7 @@ AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
# Prequisites of lib/printf-parse.h, lib/printf-parse.c.
AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
[
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
AC_REQUIRE([gt_TYPE_LONGDOUBLE])
AC_REQUIRE([gt_TYPE_WCHAR_T])
AC_REQUIRE([gt_TYPE_WINT_T])
@@ -46,7 +46,7 @@ AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
AC_DEFUN([gl_PREREQ_VASNPRINTF],
[
AC_REQUIRE([AC_FUNC_ALLOCA])
AC_REQUIRE([jm_AC_TYPE_LONG_LONG])
AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
AC_REQUIRE([gt_TYPE_LONGDOUBLE])
AC_REQUIRE([gt_TYPE_WCHAR_T])
AC_REQUIRE([gt_TYPE_WINT_T])

View File

@@ -1,9 +1,9 @@
#serial 3
#serial 4
dnl Cloned from xstrtoumax.m4. Keep these files in sync.
AC_DEFUN([jm_XSTRTOIMAX],
AC_DEFUN([gl_XSTRTOIMAX],
[
dnl Prerequisites of lib/xstrtoimax.c.
AC_REQUIRE([jm_AC_TYPE_INTMAX_T])
AC_REQUIRE([gl_AC_TYPE_INTMAX_T])
AC_REQUIRE([gl_PREREQ_XSTRTOL])
])

View File

@@ -1,5 +1,5 @@
# xstrtol.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# xstrtol.m4 serial 4
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -15,8 +15,8 @@ AC_DEFUN([gl_XSTRTOL],
# Prerequisites of lib/xstrtol.h.
AC_DEFUN([gl_PREREQ_XSTRTOL_H],
[
AC_REQUIRE([jm_AC_TYPE_INTMAX_T])
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_AC_TYPE_INTMAX_T])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
])
# Prerequisites of lib/xstrtol.c.

View File

@@ -1,9 +1,9 @@
#serial 5
#serial 6
dnl Cloned from xstrtoimax.m4. Keep these files in sync.
AC_DEFUN([jm_XSTRTOUMAX],
AC_DEFUN([gl_XSTRTOUMAX],
[
dnl Prerequisites of lib/xstrtoumax.c.
AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
AC_REQUIRE([gl_PREREQ_XSTRTOL])
])