summaryrefslogtreecommitdiff
path: root/m4/check-decl.m4
AgeCommit message (Collapse)Author
2006-08-21Add a bootstrap procedure, so that the CVS version contains fewerPaul Eggert
files and we bootstrap the rest from gnulib, gettext, etc. * README-cvs: New file. * bootstrap: New file. * bootstrap.conf: New file. * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po. * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit of gnulib-tool. (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL): (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib. (gl_EARLY): Add. (gl_MACROS): Call just after gl_EARLY, just for clarity. * src/c99-to-c98.diff: Remove patch to ls.c; no longer needed. * src/kill.c (strtoimax): Remove decl. * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves. * src/wc.c: Likewise. * src/ls.c (sort_files): Rewrite to avoid need for C99-style declaration, so that we don't need to patch this file. * src/printf.c (strtoimax, strtoumax): Remove decls. * src/su.c: Include getpass.h. (getpass): remove. * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h. Include inttypes.h unconditionally; remove decls it handles. * lib/Makefile.am: include gnulib.mk, so that we can remove most of this file. (AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done for us. (noinst_LIBRARIES, LDDADD, DEFS): Remove. (libcoreutils_a_SOURCES): Trim down greatly, just to the files that aren't in gnulib. Remove defns gnulib does for us. * m4/check-decl.m4 (gl_CHECK_DECLS): Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h, time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin, getuid, lseek, malloc, memchr, realloc. Don't check for getutent, memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul, strtoull. (_gl_DECL_HEADERS): Remove; all uses removed. * m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac for the benefit of gnulib-tool. Call gl_INIT. Do not call or require macros that gnulib will handle for us. Don't check for fchmod, hasmntopt, isascii, lchown, listmntent, mempcpy, realpath, wcrtomb, tzset. (gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h, sys/mount.h. (gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT. Don't check for struct stat.st_blksize. Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T, gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T, gl_AC_TYPE_UNSIGNED_LONG_LONG. * m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO. Don't require macros that gnulib does for us. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h. Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-17Add/fix copyright notices and adjust to latest GNU FDL.Paul Eggert
2006-07-09Update from gnulib.Paul Eggert
2005-09-22(_gl_DECL_HEADERS): Don't bother checking forPaul Eggert
standard C headers, or for headers we no longer use.
2005-07-02Assume HAVE_UNISTD_H, i.e., that <unistd.h> works.Jim Meyering
2004-04-13Change `jm_' in AC_DEFINE'd names to `gl_'. Update all uses.Jim Meyering
2003-09-13(jm_CHECK_DECLS): Include <string.h>, <stdlib.h> unconditionally.Jim Meyering
2003-08-17Sync with gnulib.Jim Meyering
2003-02-09(jm_CHECK_DECLS): Add euidaccess.Jim Meyering
2001-08-12Quote the first argument in each use of AC_DEFUN.Jim Meyering
2001-01-01(jm_CHECK_DECLS): Include grp.h and pwd.h if available.Jim Meyering
They are required for the declarations of getgrgid and getpwuid resp. (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
2000-10-21(jm_CHECK_DECLS): Also check for memrchr.Jim Meyering
2000-08-20Include utmp.h `#if HAVE_UTMP_H', rather thanJim Meyering
`#if !HAVE_UTMPX_H'. The latter would lose on systems with neither utmp.h nor utmpx.h. Reported by Eli Zaretskii.
2000-07-23fix typos (missing commas)Jim Meyering
2000-07-23(jm_CHECK_DECLS): Check for declarations of these, too:Jim Meyering
getgrgid, getpwuid, getuid.
2000-07-04(AC_CHECK_DECLS): Add strnlen.Jim Meyering
2000-06-27(_jm_DECL_HEADERS): Check for utmp.h as well.Jim Meyering
2000-05-24(jm_CHECK_DECLS): Use []-quoted list in AC_CHECK_DECLS,Jim Meyering
now that autoconf requires that.
2000-05-03(AC_CHECK_DECLS): Add strndup.Jim Meyering
2000-04-05fix two typos. DuhJim Meyering
2000-04-05[!HAVE_UTMPX_H] (headers): Include <utmp.h>.Jim Meyering
(jm_CHECK_DECLS): Add getutent to the list of functions. (_jm_DECL_HEADERS): Add utmpx.h.
2000-03-02(AC_CHECK_DECLS): Add getlogin, ttyname, and geteuid.Jim Meyering
2000-02-27Add getenv to the list.Jim Meyering
2000-02-26whoops. Add commas in parenthesized list of functions in callJim Meyering
to AC_CHECK_DECLS.
2000-02-23Now that we have the new AC_CHECK_DECLS, use it in place of my hack.Jim Meyering
2000-01-31(jm_CHECK_DECLS): Add nanosleep to the list ofJim Meyering
functions. Add the time.h and sys/time.h headers along with the AC_REQUIRE'ment of AC_HEADER_TIME.
2000-01-22(_jm_DECL_HEADERS): Define new function.Jim Meyering
(jm_CHECK_DECLARATIONS): Require it.
2000-01-22Revert to using #if HAVE_STDLIB_HJim Meyering
to guard inclusion of <stdlib.h>.
2000-01-22Guard inclusion of <stdlib.h> with `#if STDC_HEADERS',Jim Meyering
not `#if HAVE_STDLIB_H'. The former wasn't defined. Use #if rather than #ifdef. Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL. (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
1999-01-10Use 3-arg form of AC_DEFINE instead of theJim Meyering
AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the comments in config.h.in are meaningful.
1998-10-18(jm_CHECK_DECL_LOCALTIME_R): Remove macro.Jim Meyering
1998-10-18(jm_CHECK_DECLS): Reflect interface change.Jim Meyering
(jm_CHECK_DECL_LOCALTIME_R): New macro.
1997-12-21increment serial numberJim Meyering
1997-12-14Add #serial 1.Jim Meyering
1997-12-14add lseekJim Meyering
1997-12-14s/DECLARATION_/DECL_/g.Jim Meyering
Add memchr.
1997-10-24.Jim Meyering