+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.
-#serial 5
+#serial 6
-AC_DEFUN([jm_AFS],
+AC_DEFUN([gl_AFS],
[
AC_MSG_CHECKING(for AFS)
if test -d /afs; then
-# 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
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])
])
-#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,
# 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
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)
-#serial 2
+#serial 3
-AC_DEFUN([jm_BISON],
+AC_DEFUN([gl_BISON],
[
# getdate.y works with bison only.
: ${YACC='bison -y'}
-#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>
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 \
-#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])
-#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,
-#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,
-# 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
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.
])
-#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],
[
-#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])
:
-#serial 3
+#serial 4
dnl From Jim Meyering
dnl Using code from emacs, based on suggestions from Paul Eggert
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])
-#serial 3
+#serial 4
dnl From Jim Meyering.
dnl
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,
-#serial 11
+#serial 12
# From fileutils/configure.in
[
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
# 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..."
# 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,
])
-# 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
])
-#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
-# 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
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)
-#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
-# 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
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
-# 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
# 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,
-#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])
-# 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
[
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)
-# 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
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>
-# 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
# 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'
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>
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'
-# 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
# 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])
:
])
-# 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
-# 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
# 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(
dnl Misc type-related macros for fileutils, sh-utils, textutils.
-AC_DEFUN([jm_MACROS],
+AC_DEFUN([gl_MACROS],
[
AC_PREREQ(2.58)
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])
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)
])
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])
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),
# 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 \
])
# 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
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(
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])
-#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.
-#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,
])
])
-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,
-#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
-#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)
-#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.
-#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],
-# 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
# 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;],
-#serial 14
+#serial 15
dnl From Jim Meyering.
dnl
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)
-#serial 10
+#serial 11
dnl From Jim Meyering.
dnl Determine whether lstat has the bug that it succeeds when given the
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).
-# 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
AC_REQUIRE([AC_FUNC_ALLOCA])
AC_CHECK_HEADERS_ONCE(unistd.h)
AC_REQUIRE([AC_HEADER_STAT])
- AC_REQUIRE([jm_AFS])
+ AC_REQUIRE([gl_AFS])
])
-# 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
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,
-#serial 10
+#serial 11
dnl autoconf tests required for use of mbswidth.c
dnl From Bruno Haible.
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([
-# 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
[
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)
])
-# 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
-#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.
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
])
])
# 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])
])
-# 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
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)
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
])
-#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
-# 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
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)
])
-#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?
-#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])
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)
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
-# 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
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
-# 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
AC_CHECK_HEADERS_ONCE(wchar.h wctype.h)
AC_CHECK_FUNCS_ONCE(iswprint mbsinit)
AC_TYPE_MBSTATE_T
- jm_FUNC_MBRTOWC
+ gl_FUNC_MBRTOWC
])
-#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.
jm_with_regex=$ac_use_included_regex)
if test "$jm_with_regex" = yes; then
AC_LIBOBJ(regex)
- jm_PREREQ_REGEX
+ gl_PREREQ_REGEX
fi
],
)
)
# 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
-#serial 9
+#serial 10
dnl From Jim Meyering.
dnl Determine whether stat has the bug that it succeeds when given the
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).
-# 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
# 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(
-#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
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)
[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
])
# 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
# 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])
])
-# 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
[
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
AC_DEFUN([gl_PREREQ_STRTOLL], [
:
])
-
-# 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
[
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
AC_DEFUN([gl_PREREQ_STRTOULL], [
:
])
-
# 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
# 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])
])
-#serial 7
+#serial 8
dnl From Jim Meyering
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().
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])
-# 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
# 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'
-# 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
# 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;],
-#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,
-#serial 8 -*- autoconf -*-
+#serial 9 -*- autoconf -*-
dnl From Jim Meyering.
dnl
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.
-#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,
-#serial 5
+#serial 6
dnl From Jim Meyering
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])
-#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
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
])
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])
])
-#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([
-# 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
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])
# 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])
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])
-#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])
])
-# 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
# 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.
-#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])
])