From e1123c2f4fedae90435426a82a05cf2e3233e97d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 18 Feb 2007 15:10:28 +0000 Subject: [PATCH] New module 'math'. replaces mathl.h. --- ChangeLog | 1548 ++------------------------------------------------------- lib/acosl.c | 7 +- lib/asinl.c | 7 +- lib/atanl.c | 42 +- lib/ceill.c | 9 +- lib/cosl.c | 9 +- lib/expl.c | 8 +- lib/floorl.c | 9 +- lib/frexpl.c | 8 +- lib/ldexpl.c | 8 +- lib/logl.c | 43 +- lib/math_.h | 168 +++++++ lib/mathl.h | 39 -- lib/sincosl.c | 8 +- lib/sinl.c | 9 +- lib/sqrtl.c | 8 +- lib/tanl.c | 9 +- lib/trigl.c | 8 +- m4/math_h.m4 | 25 + modules/math | 38 ++ modules/mathl | 6 +- 21 files changed, 371 insertions(+), 1645 deletions(-) create mode 100644 lib/math_.h delete mode 100644 lib/mathl.h create mode 100644 m4/math_h.m4 create mode 100644 modules/math diff --git a/ChangeLog b/ChangeLog index cdb7eab4b..30b257956 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,30 @@ +2007-02-18 Bruno Haible + + * modules/math: New file. + * modules/mathl (Files): Remove lib/mathl.h. + (Depends-on): Add math. + (Makefile.am): Don't mention mathl.h. + (Include): Use instead of mathl.h. + * lib/math_.h: New file. + * lib/mathl.h: Remove file. + * lib/acosl.c: Include and first. Don't include + mathl.h. + * lib/asinl.c: Likewise. + * lib/atanl.c: Likewise. + * lib/ceill.c: Likewise. + * lib/cosl.c: Likewise. + * lib/expl.c: Likewise. + * lib/floorl.c: Likewise. + * lib/frexpl.c: Likewise. + * lib/ldexpl.c: Likewise. + * lib/logl.c: Likewise. + * lib/sincosl.c: Likewise. + * lib/sinl.c: Likewise. + * lib/sqrtl.c: Likewise. + * lib/tanl.c: Likewise. + * lib/trigl.c: Likewise. + * m4/math_h.m4: New file. + 2007-02-17 Bruno Haible * modules/wctype-tests: New file. @@ -25489,1523 +25516,4 @@ * m4/largefile.m4: Remove file (now that it's part of autoconf). -2000-06-04 Paul Eggert - - Rewrite largefile configuration so that we don't need to run - getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of - AC_CANONICAL_HOST in configure.in -- jmm] - - * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS, - AC_SYS_LARGEFILE_SPACE_APPEND): Remove. - (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro. - (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from - CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. - All uses changed. - Instead of inspecting the output of getconf, try to compile the - test program without and with the macro definition. - (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check - for getconf. Instead, check for the needed flags by compiling - test programs. - -2000-06-04 Paul Eggert - - * lib/strnlen.c: Include if HAVE_CONFIG_H. - -2000-06-04 Jim Meyering - - * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like - SunOS 4.1.4 for which gid_t is an unsigned type. - -2000-06-03 Jim Meyering - - * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS, - now that autoconf requires that. - - * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required - #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED. - Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that. - -2000-06-03 Jim Meyering - - * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr. - -2000-06-03 Bruno Haible - - * m4/glibc21.m4: New file. - * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21. - -2000-06-03 Bruno Haible - - * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or - newer, don't install charset.alias. - * lib/config.charset: Change the Linux/glibc rules so they become empty - on glibc-2.1 or newer. - -2000-06-02 Jim Meyering - - * lib/mountlist.c: Back out last change. Instead, do this... - * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the - me_dummy member using the same `ignore'-testing code. - * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored - fs_type strings. - From Mark D. Roth. - -2000-05-29 Jim Meyering - - * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore - mounts with the `ignore' attribute. Based on a patch from - Mark D. Roth. - -2000-05-28 Jim Meyering - - * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from - jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. - * m4/stat.m4: Likewise. - * m4/lstat.m4: Likewise. - * m4/lstat-slash.m4: Remove file (absorbed into autoconf). - - * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R. - * m4/strerror_r.m4: Remove file (absorbed into autoconf). - -2000-05-26 Jim Meyering - - * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'. - -2000-05-24 Jim Meyering - - * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that - autoconf requires that. - * m4/lib-check.m4: Likewise. - * m4/jm-macros.m4: Likewise. - * m4/strftime.m4: Likewise. - - * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in - AC_CHECK_DECLS, now that autoconf requires that. - -2000-05-22 Jim Meyering - - * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. - * m4/lstat.m4: Likewise. - -2000-05-22 Jim Meyering - - * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block. - -2000-05-20 Jim Meyering - - * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro. - (jm_PREREQ): Use it. - -2000-05-18 Jim Meyering - - * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list - back, too, since it may have been modified by allocate_entry. - (hash_delete): Rewrite to use neither the assignment operator - nor the comma operator in an if-expression. - -2000-05-15 Paul Eggert - - * lib/closeout.c: - , , , (STDOUT_FILENO): - Remove; no longer needed. - "quotearg.h": Add include. - (file_name): Do not bother to explicitly initialize to NULL; it's less - efficient on some hosts. - (close_stdout_status): Remove test as to whether stdout was already - closed; it breaks for the case "echo x | sort >&-". - Quote file name colons. - Do not assume that _("write error") lacks format strings. - -2000-05-15 Jim Meyering - - * lib/version-etc.c (version_etc_copyright): Update the copyright - string used in all --version output. - -2000-05-14 Jim Meyering - - * lib/closeout.c (close_stdout_set_file_name): New function. - (close_stdout_status): Use new file-scoped global. - Return right away if fstat says the stdout file descriptor is invalid. - * lib/closeout.h (close_stdout_set_file_name): Declare. - -2000-05-10 Jim Meyering - - * lib/closeout.c [default_exit_status]: New file-scoped variable. - (close_stdout_set_status): New function. - * lib/closeout.h (close_stdout_set_status): Declare. - -2000-05-09 Jim Meyering - - * m4/gettext.m4: Rename this... - * m4/libintl.m4: ...to this. - -2000-05-08 Jim Meyering - - * lib/long-options.c: Don't include closeout.h. - (parse_long_options): Don't call close_stdout for --version. - -2000-05-06 Paul Eggert - - * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to - be 500, instead of _GNU_SOURCE to be 1, to work around glibc - 2.1.3 bug. This avoids a clash when files like regex.c define - _GNU_SOURCE. - -2000-05-06 Jim Meyering - - * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit. - (AC_REPLACE_FUNCS): Add strnlen. - - * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file. - * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY. - - * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around - AC_SEARCH_LIBS call for nanosleep. - (LIB_NANOSLEEP): Set and AC_SUBST. - -2000-05-06 Jim Meyering - - * lib/strnlen.c: Undefine __strnlen and strnlen. - [!weak_alias]: Define __strnlen to strnlen. - - * lib/atexit.c: New file, from libiberty. - -2000-05-06 Jim Meyering - - * lib/closeout.c (close_stdout_status): Also check for errors on the - stderr stream. - -2000-05-05 Jim Meyering - - * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around - AC_SEARCH_LIBS call for clock_gettime. - (LIB_CLOCK_GETTIME): Set and AC_SUBST. - - * m4/search-libs.m4: Update from autoconf. - - su doesn't work on Solaris 2.6. - * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include - . Reported by Dragos Harabor. - -2000-05-05 Bruno Haible - - * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and - memcpy instead of xmalloc, xrealloc, path_concat. - (locale_charset): Treat empty environment variables as absent. - (DIRECTORY_SEPARATOR, ISSLASH): New macros. - -2000-05-04 Jim Meyering - - * lib/getopt.c: Update from glibc. - * lib/obstack.c: Likewise. - * lib/obstack.h: Likewise. - * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this - file - - * lib/regex.h: Likewise. - * lib/strndup.c: Likewise. - * lib/strnlen.c: New file, from glibc. - -2000-05-03 Jim Meyering - - * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup. - -2000-05-02 Paul Eggert - - * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if - this is needed to make ftello visible (e.g. glibc 2.1.3). Use - compile-time test, rather than inspecting host and OS, to - decide whether to define _LARGEFILE_SOURCE. - -2000-05-01 Jim Meyering - - * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING. - - * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support. - Based on a patch from Bruno Haible. - -2000-05-01 Jim Meyering - - * lib/full-write.c (full_write): Remove `FIXME' part of comment. - -2000-04-29 Jim Meyering - - * lib/path-concat.c: Declare strdup only if it's not defined. - * lib/canon-host.c: Likewise. - -2000-04-28 Jim Meyering - - * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to - avoid redefinition warning on some systems (HPUX). Otherwise, regex.h - is included first, then limits.h is included by locale.h by libintl.h. - From John David Anglin. - -2000-04-25 Jim Meyering - - * lib/makepath.c (S_IRWXUGO): Define. - (make_path): Always perform explicit chmod if MODE specifies any - of the `special' permission bits. Prompted by a bug report against - install from Mate Wierdl and Joost van Baal. - -2000-04-18 Jim Meyering - - * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro. - (jm_PREREQ): Use it. - -2000-04-18 Jim Meyering - - * lib/README: New file. - - * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define - getpagesize. For BeOS. Based on a patch from Bruno Haible. - -2000-04-17 Jim Meyering - - Get it right :-) - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the - actual #define via AH_VERBATIM. Don't need separate AC_DEFINE. - Suggestion from Akim Demaille. - -2000-04-17 Jim Meyering - - * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since - the definition of it to rpl_strftime also defined-away the system's - declaration. - -2000-04-15 Jim Meyering - - Use `C' to denote so-called `contiguous' files, the same way - that tar does. - * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. - (ftypelet): Use S_ISCTG. - From Michael Deutschmann. - -2000-04-14 Jim Meyering - - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg - form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets - clobbered. - -2000-04-14 Jim Meyering - - * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime. - -2000-04-13 Jim Meyering - - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new - AH_VERBATIM to insert required #ifndef into config.h.in. - Suggestion from Akim Demaille. - -2000-04-12 Jim Meyering - - * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not - `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from - Christian Krackowizer. - - More code moved from ../configure.in into (jm_CHECK_ALL_TYPES). - * m4/jm-macros.m4 (_GNU_SOURCE): Define. - (AC_SYS_LARGEFILE): Require. - (AM_C_PROTOTYPES): Require. - -2000-04-08 Jim Meyering - - * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3 - names don't conflict. Reported by Eli Zaretskii. - -2000-04-07 Jim Meyering - - * lib/putenv.c: Move inclusion of errno.h so it follows that of - sys/types.h, to work around system header problems on AIX 3.2.5. - From Bruno Haible. - -2000-04-07 Bruno Haible - - * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv - bug. Deal with the different error behavior of Irix iconv. - -2000-04-05 Paul Eggert - - * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on - IRIX if the installer said otherwise. - -2000-04-05 Jim Meyering - - Portability tweaks required for ultrix4.3. - * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include . - (jm_CHECK_DECLS): Add getutent to the list of functions. - (_jm_DECL_HEADERS): Add utmpx.h. - From John David Anglin. - - * m4/strftime.m4: Back out the 2000-04-02 change. - Instead of that change, simply undefine putenv in the test program. - -2000-04-05 Jim Meyering - - Portability tweaks required for ultrix4.3. - * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare - getutent. - * lib/readutmp.c: Include sys/types.h before sys/stat.h. - * lib/canon-host.c: Declare strdup. - * lib/path-concat.c: Likewise. - From John David Anglin. - -2000-04-04 Jim Meyering - - Be more DOS 8.3-friendly. - * lib/ref-add.sin: Renamed from ref-add.sed.in. - * lib/ref-del.sin: Renamed from ref-del.sed.in. - * lib/Makefile.am: Reflect renaming. - Reported by Eli Zaretskii. - - Use a temporary file name that won't clash with `charset.alias' - in the DOS 8.3 name space. - * lib/Makefile.am (charset_tmp): Define. - (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t. - (uninstall-local): Likewise. - Reported by Eli Zaretskii. - -2000-04-03 Jim Meyering - - * m4/gettext.m4: Fix typo in comment. - - * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from - textutils/configure.in). Suggestion from Paul Eggert. - (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in) - -2000-04-02 Paul Eggert - - * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment - variable in the shell rather than using putenv, which isn't - portable. This avoids the configure-time inter-test dependency - on the potentially-renamed putenv function. - -2000-03-30 Paul Eggert - - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include - before checking struct stat.st_blksize, so that - HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly. - -2000-03-29 Paul Eggert - - * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime, - since strftime.c uses HAVE_STRFTIME to decide whether to use - the underlying strftime. - -2000-03-29 Paul Eggert - - * lib/time/strftime.c (my_strftime): Make sure we call the system - strftime, not ourselves, when invoking the underlying strftime. - -2000-03-24 Jim Meyering - - * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in. - (charset_alias): Define. - (install-exec-local): Factor out common code. - (uninstall-local): Split lines longer than 80. - (ref-add.sed, ref-del.sed): Remove rules... (do the following instead) - (SUFFIXES): Define. - (.sed.in.sed): New rule. Don't redirect directly to $@. - (CLEANFILES): Add ref-add.sed and ref-del.sed. - -2000-03-19 Bruno Haible - - * lib/config.charset: Output a line containing "Packages using this - file". - * lib/ref-add.sed.in, lib/ref-del.sed.in: New files. - * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed, - ref-del.sed): New rules. - -2000-03-17 Jim Meyering - - * lib/unicodeio.c (): Include only #if HAVE_STRING_H. - Otherwise, include - -2000-03-17 Bruno Haible - - * lib/unicodeio.c (utf8_wctomb): New function. - (print_unicode_char): Pass the Unicode character to iconv in UTF-8 - format instead of in UCS-4 with platform dependent endianness. - -2000-03-10 Jim Meyering - - * m4/lib-check.m4: Look for getspnam in -lgen, too. - From Marco Franzen. - -2000-03-07 Paul Eggert - - * lib/savedir.c (savedir): Work even if directory size is - negative; this can happen with some screwy NFS configurations. - -2000-03-06 Jim Meyering - - * lib/localcharset.c (get_charset_aliases): Don't try to free file_name - if it's NULL (because we ran out of memory). From Bruno Haible. - -2000-03-05 Jim Meyering - - * lib/localcharset.c ("path-concat.h"): Include. - (get_charset_aliases): Use path_concat instead of ANSI string - concatenation. - - * lib/unicodeio.h (PARAMS): Define. - Use it to guard prototype. - -2000-03-04 Jim Meyering - - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE, - for lib/localcharset.c. - -2000-03-04 Jim Meyering - - * lib/Makefile.am (install-exec-local): Create $(libdir) before - installing into it. - (uninstall-local): Uncomment this rule so `make distcheck' works - once again. - - * lib/unicodeio.c (): Include it. - (errno): Declare if not defined. - - * lib/localcharset.c: Add Bruno's comment justifying use of volatile. - - * lib/config.charset: New version, incorporating remarks from a linux - i18n mailing list. From Bruno Haible. - -2000-03-04 Bruno Haible - - * m4/codeset.m4: New file. - * m4/iconv.m4: New file. - * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV. - -2000-03-03 Jim Meyering - - * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'. - -2000-03-02 Jim Meyering - - * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so - the messages come out on separate lines. - - * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS, - rather than jm_CHECK_DECLARATIONS. - * m4/decl.m4: Remove now-unused file. - - * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and - geteuid. - -2000-03-02 Jim Meyering - - * lib/Makefile.am (EXTRA_DIST): Add config.charset. - -2000-03-01 Jim Meyering - - * lib/localcharset.c: Guard some #includes with `#if HAVE_...'. - * lib/unicodeio.c: Likewise. - -2000-03-01 Bruno Haible - - * lib/config.charset: New file. - * lib/localcharset.c: New file. - * lib/unicodeio.h, lib/unicodeio.c: New files. - * lib/Makefile.am (DEFS): Add -DLIBDIR=... - (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c. - (noinst_HEADERS): Add unicodeio.h. - (all-local, install-exec-local, charset.alias): New targets. - -2000-02-28 Paul Eggert - - * lib/quotearg.c (ALERT_CHAR): New macro. - (quotearg_buffer_restyled): Use it. - -2000-02-27 Jim Meyering - - * m4/check-decl.m4: Add getenv to the list. - -2000-02-27 Jim Meyering - - * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/. - Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'. - - * lib/backupfile.c: Guard inclusion of stdlib.h with - `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'. - Declare malloc if needed. - - * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of - `#ifndef HAVE_DECL..' - now that autoconf always defines the HAVE_DECL_ symbols. - * lib/human.c: Likewise. - * lib/same.c: Likewise. - * lib/strtoumax.c: Likewise. - - * lib/backupfile.c: Arrange for cpp to fail if the configure-time - declaration check was not run. - * lib/hash.c: Likewise. - * lib/human.c: Likewise. - * lib/same.c: Likewise. - * lib/strtoumax.c: Likewise. - - * lib/userspec.c (parse_user_spec): If there is no `:' but there is a - `.', then first look up the entire `.'-containing string as a login - name. - -2000-02-23 Jim Meyering - - * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it - in place of my hack. - -2000-02-18 Paul Eggert - - * lib/getdate.y: Handle two-digit years with leading zeros correctly. - (textint): New typedef. - (parser_control): Member year changed from int to textint. - All uses changed. - (YYSTYPE): Removed; replaced by %union with int and textint members. - (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN, - tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER, - tYEAR_UNIT, tZONE, o_merid): Now of type . - (tSNUMBER, tUNUMBER): Now of type . - (date, number, to_year): Use width of number in digits, not its value, - to determine whether it's a 2-digit year, or a 2-digit time. - (yylex): Store number of digits of numeric tokens. - Reported by John Kendall. - - (parser_control): Changed from struct parser_control to typedef (for - consistency). All uses changed. - - (tID): Removed; not used. - (yylex): Return '?' for unknown identifiers, rather than (unused) tID. - -2000-02-14 Paul Eggert - - * lib/getpagesize.h (getpagesize): Port to VMS for Alpha; - adapted from changes to grep getpagesize.h by Martin P.J. Zinser. - -2000-02-12 Jim Meyering - - * lib/userspec.c (ISDIGIT): Define it. - (isdigit): Remove definition. - (is_number): Use ISDIGIT, not isdigit. - : Include. - (_ and N_): Define. - (parse_user_spec): Mark translatable strings. - -2000-02-10 Jim Meyering - - With these changes, nanosleep.[ch] are finally enough like the other - lib/* replacement files to compile on a few more losing systems. - - * lib/nanosleep.h: Don't include config.h. - Remove prototype from declaration of nanosleep. - (PARAMS): Remove now-unneeded definition. - * lib/nanosleep.c: #undef nanosleep. - (rpl_nanosleep): Rename from nanosleep. - -2000-02-10 Jim Meyering - - * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from - gnu_nanosleep to rpl_nanosleep. - -2000-02-09 Jim Meyering - - * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in - struct spwd, rather than in struct passwd. Reported by Gaël Quéri. - -2000-02-08 Akim Demaille - - * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with - `[' and `]' and remove uses of `changequote'. - (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise. - (AC_SYS_LARGEFILE): Likewise. - * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise. - * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use - of changequote. - * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise. - * m4/readdir.m4 (jm_FUNC_READDIR): Likewise - * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main. - * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise. - -2000-02-05 Jim Meyering - - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros. - Remove explicit use of AC_HEADER_TIME. It is required by - jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and - `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but - in autoconf whereby the expansion of the latter ended up preceding - the expansion of its prerequisite, AC_HEADER_TIME. - Reported by Volker Borchert. - -2000-02-03 Jim Meyering - - * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname. - -2000-02-03 Jim Meyering - - * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION', - rather than with `#if HAVE_UTMPNAME'. - -2000-02-02 Jim Meyering - - * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no - definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/. - Reported by Eli Zaretskii. - -2000-02-01 Jim Meyering - - * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab. - -2000-01-31 Jim Meyering - - * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of - functions. Add the time.h and sys/time.h headers along with the - AC_REQUIRE'ment of AC_HEADER_TIME. - -2000-01-31 Jim Meyering - - * lib/nanosleep.h (nanosleep): Guard declaration with - `#if ! HAVE_DECL_NANOSLEEP'. - Without this, OFS gets a redeclaration error for rpl_nanosleep, due to - the declaration in that vendor's sys/timers.h. - Reported by Christian Krackowizer. - - * lib/quotearg.c (ISASCII): Add #undef and move definition to follow - inclusion of wctype.h to work around Solaris 2.6 namespace pollution. - (ISPRINT): Likewise. - Reported by Tom Tromey. - -2000-01-30 Jim Meyering - - * m4/lib-check.m4: Clean up some kludgy old shadow password tests. - - * m4/prereq.m4 (utmp_includes): Define. - Check for ut_user and ut_name members in both struct utmpx - and struct utmp. - -2000-01-30 Jim Meyering - - * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of - hard-coding uses of ->ut_name. The latter doesn't work with new Linux - header files where only utmpx.ut_user is declared. - - * lib/readutmp.h (UT_USER): Define. - -2000-01-29 Jim Meyering - - * m4/lib-check.m4: New file containing library-related checks from - fileutils and sh-utils (textutils had none). - -2000-01-28 Jim Meyering - - * m4/perl.m4: Change format of warning message to look more like that - from the missing script. Suggestion from François Pinard. - -2000-01-25 Jim Meyering - - * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as - well as time.h in the compile check. - * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it. - Fix typo in cross-compiling case: s/yes/no/. - -2000-01-23 Jim Meyering - - * m4/jm-macros.m4: Move df-related tests here from - fileutils/configure.in - - * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/ - (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters. - - * m4/fsusage.m4: New file. Extracted from fileutils/configure.in. - s/space/ac_fsusage_space/. - (jm_FILE_SYSTEM_USAGE): Take two parameters. - - * m4/ftruncate.m4: New file (derived from part of - fileutils/configure.in). - * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it. - (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT. - - * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN): - AC_SUBST these here, rather than just in sh-util/configure.in, so - that the now-shared-by-fileutils-and-textutils lib/Makefile.am are - all the same. - (AM_FUNC_OBSTACK): Add (from fileutils/configure.in). - (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils. - (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in). - (AC_SUBST(POW_LIBM)): Likewise. - (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in. - -2000-01-23 Jim Meyering - - * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of - obstack.c. - -2000-01-22 Jim Meyering - - * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST. - - * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h. - - * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils' - configure.in - (AC_CHECK_HEADERS): Likewise for sh-utils. - (AC_CHECK_HEADERS): Likewise for textutils. - Merge the three lists of headers. - - * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here - from fileutils' configure.in. - - * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' - code. Moved tests into their own function (_jm_DECL_HEADERS) in - check-decl.m4. - - * m4/check-decl.m4: Use #if rather than #ifdef. - Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL. - (jm_CHECK_DECLARATIONS): Add strtoul strtoull. - (_jm_DECL_HEADERS): Define new function. - (jm_CHECK_DECLARATIONS): Require it. - -2000-01-22 Jim Meyering - - * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul. - [! HAVE_DECL_STRTOULL]: Declare strtoull. - Required for some AIX systems. Reported by Christian Krackowizer. - [TESTING] (main): New function. - - 1997-10-17 Eli Zaretskii - * lib/dirname.c (dir_name): Support for DOS-style file names with drive - letters. - - * lib/quotearg.c [HAVE_WCTYPE_H]: Include for decl of - iswprint. - - * lib/strverscmp.c (ISDIGIT): Define. - (strverscmp): Use ISDIGIT, not isdigit. - -2000-01-19 Jim Meyering - - * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include , too. - Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc - defines `struct timespec' in - - * m4/c-bs-a.m4: Remove uses of changequote altogether. - Thanks to Akim for explaining. - -2000-01-17 Paul Eggert - - * lib/nanosleep.c (nanosleep): - Don't use SA_INTERRUPT to decide whether to call sigaction, as - POSIX.1 doesn't require SA_INTERRUPT and some systems - (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead; - it's been part of POSIX.1 since day 1 (in 1988). - -2000-01-17 Jim Meyering - - * lib/interlock: Remove unused file. Reported by François Pinard. - -2000-01-16 Paul Eggert - - * lib/quotearg.c (quotearg_buffer_restyled): Do not quote - alert, backslash, formfeed, and vertical tab unnecessarily in - shell quoting style. - -2000-01-16 Jim Meyering - - * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV, - AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME, - jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA, - AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME. - -2000-01-16 Jim Meyering - - * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )' - because the latter didn't work. - -2000-01-15 Jim Meyering - - * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell. - (AC_REPLACE_FUNCS): Add memcpy and memset. - Add these, too: stime strcspn stpcpy strstr strtol strtoul. - Add strpbrk. - Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp. - -2000-01-12 Jim Meyering - - * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro. - (jm_PREREQ): Use it. - (jm_PREREQ_READUTMP): New macro. - (jm_PREREQ): Use it. - -2000-01-11 Paul Eggert - - Quote multibyte characters correctly. - * m4/c-bs-a.m4: New file. - * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro. - (jm_PREREQ): Use it. - -2000-01-11 Paul Eggert - - * m4/uintmax_t.m4: Port to autoconf 2.13. - -2000-01-08 Jim Meyering - - * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro. - * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it. - -2000-01-04 Jim Meyering - - * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from - jm_STRUCT_DIRENT_D_TYPE. - * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from - jm_STRUCT_DIRENT_D_INO. - * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from - jm_STRUCT_UTIMBUF. - * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/ - renamings. - * m4/utime.m4: Likewise. - - * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro. - * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it. - -2000-01-03 Paul Eggert - - * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt - (for Solaris 7) and in -lposix4 (for Solaris 2.5.1). - -2000-01-02 Jim Meyering - - * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer - remember if this is necessary. - -1999-12-26 Jim Meyering - - * m4/jm-macros.m4: Use it here. - * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro. - -1999-12-23 Jim Meyering - - * m4/jm-macros.m4: Check for clock_gettime (moved from - fileutils/configure.in) - Check for gettimeofday. - -1999-12-20 Jim Meyering - - * m4/strftime.m4: Remove kludge, now that I'm using the fixed - autoconf-2.14a-1999-12-20. - -1999-12-19 Jim Meyering - - * m4/lstat-slash.m4: New file. - * m4/jm-macros.m4: Use the new macro: - jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. - -1999-12-07 Jim Meyering - - * m4/perl.m4: Require that File::Compare be available, too. - Too many systems seem to lack it. - - * m4/strftime.m4: Add checks for most of the cpp macros tested in - GNU's strftime.c. Prompted by a patch from Paul Eggert. - -1999-11-18 Paul Eggert - - * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a - problem with the QNX 4.25 shell, which doesn't propagate exit - status of failed commands inside shell assignments. - -1999-11-17 Jim Meyering - - * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES. - -1999-11-07 Jim Meyering - - * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE. - -1999-11-06 Jim Meyering - - * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro. - * m4/jm-macros.m4 (jm_MACROS): Use it here. - -1999-11-05 Jim Meyering - - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from - configure.in of textutils, fileutils, and sh-utils into this one - (shared between those packages) file. - Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated - AC_STRUCT_ST_BLKSIZE. - -1999-11-03 Jim Meyering - - * m4/ssize_t.m4: Remove file. No longer needed since the new version - of AC_CHECK_TYPE checks includes unistd.h. - * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'. - Suggestion from Akim Demaille. - -1999-10-30 Jim Meyering - - * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in - m4-quoted string. - * m4/ls-mntd-fs.m4: Likewise. - * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead - * m4/jm-winsz1.m4: Likewise. - - * m4/const.m4: Remove file, since the fix made it into the experimental - version of autoconf. - * m4/mktime.m4: Likewise. - - * m4/check-type.m4: Remove file, now that the latest version of - AC_CHECK_TYPE takes a third arg to specify additional #includes. - - * m4/ssize_t.m4: New file, requires experimental version of autoconf. - * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked - AC_CHECK_TYPE. - -1999-10-04 Jim Meyering - - * m4/jm-macros.m4: Don't require autoconf-2.14.1. - -1999-09-22 Paul Eggert - - * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC - 2.95.1 bug with HP-UX 10.20. - -1999-09-17 Jim Meyering - - * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup. - Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3 - due to missing strdup (against sh-utils-2.0). - -1999-08-29 Jim Meyering - - * m4/jm-macros.m4: Require jm_BISON. - * m4/bison.m4: New file. - -1999-08-17 Paul Eggert - - * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma - in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20. - -1999-08-05 Jim Meyering - - * m4/getline.m4: Rename test file from conftestdata to conftest.data - to avoid conflicts with `conftest' on 8+3 filesystems. - Suggestion from Eli Zaretskii. - -1999-08-04 Jim Meyering - - * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of - fileutils and sh-utils (textutils's getline test was inadequate). - (AM_FUNC_GETLINE): Run this test. - (AC_CHECK_FUNCS): Check for getdelim. - Reported by Bob Proulx. - -1999-08-02 Jim Meyering - - * m4/jm-macros.m4: Add a comment. - -1999-08-01 Paul Eggert - - * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether - defines strtoumax as a macro (and not as a - function). - -1999-08-01 Paul Eggert - - * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure - that we can shift, multiply and divide unsigned long long - values; Ultrix cc can't do it. - -1999-08-01 Paul Eggert - - * m4/mktime.m4: New file, which is a preview of what should appear - in the next public autoconf release. - -1999-08-01 Paul Eggert - - * m4/lfs.m4: Remove this file. - * m4/largefile.m4: New file. It contains the old contents of - lfs.m4, except that all names with prefix AC_LFS have been - changed to use the prefix AC_SYS_LARGEFILE instead, to be - compatible with future autoconf versions. Also, some minor m4 - quoting problems have been fixed. - -1999-08-01 Paul Eggert - - * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines. - Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl. - (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting, - and simplify the shell code. - -1999-08-01 Jim Meyering - - * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from - m4. - -1999-07-20 Jim Meyering - - * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove. - -1999-07-15 Jim Meyering - - * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize. - -1999-05-22 Jim Meyering - - * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr. - -1999-05-20 Jim Meyering - - * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine. - Add a colon after each `then' in case $4 is empty. - -1999-05-16 Jim Meyering - - * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS. - -1999-05-10 Jim Meyering - - * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME. - - * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed - AC_FUNC_MKTIME. - -1999-05-10 Andreas Schwab - - * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments. - -1999-05-04 Paul Eggert - - * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS, - not CPPFLAGS, so that linking works correctly in IRIX. - -1999-04-30 Paul Eggert - - * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2. - -1999-04-20 Paul Eggert - - * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long - long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro. - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require - jm_AC_TYPE_UNSIGNED_LONG_LONG. - * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro. - - * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation. - -1999-04-20 Jim Meyering - - * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG. - AC_REPLACE xstroull if necessary. From Paul Eggert. - (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq. - -1999-04-18 Jim Meyering - - * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro. - * m4/jm-macros.m4: Use it. - -1999-04-06 Jim Meyering - - * m4/strftime.m4: Remove test for %f. - -1999-03-29 Jim Meyering - - * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the - superset of the AC_TYPE_* checks in the textutils, fileutils, - and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding - AC_TYPE_PID_T. - -1999-03-28 Jim Meyering - - * m4/jm-macros.m4: Define GNU_PACKAGE here. - Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is - replaced e.g., in the *.sh files of the sh-utils. - -1999-03-20 Jim Meyering - - * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/. - * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX. - Don't depend on AM_GLIBC. Suggestions from Alain Magloire. - -1999-03-19 Jim Meyering - - * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro. - -1999-03-12 Jim Meyering - - * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED. - -1999-03-07 Jim Meyering - - * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are - declared. - -1999-02-17 Jim Meyering - - * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of - brackets in macro definition. From Eli Zaretskii and Alain Magloire. - -1999-02-07 Jim Meyering - - * m4/group-member.m4: New file -- extracted from sh-utils' - configure.in. - - 1999-02-05 Eli Zaretskii - * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names. - -1999-02-06 Jim Meyering - - * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS. - * m4/fnmatch.m4: Likewise. - * m4/getgroups.m4: Likewise. - * m4/lstat.m4: Likewise. - * m4/malloc.m4: Likewise. - * m4/putenv.m4: Likewise. - * m4/realloc.m4: Likewise. - * m4/regex.m4: Likewise. - * m4/stat.m4: Likewise. - * m4/strftime.m4: Likewise. - Suggestion from Alain Magloire. - - * m4/chown.m4: Use `.$ac_objext', not `.o'. - * m4/fnmatch.m4: Likewise. - * m4/getgroups.m4: Likewise. - * m4/getline.m4: Likewise. - * m4/lstat.m4: Likewise. - * m4/malloc.m4: Likewise. - * m4/memcmp.m4: Likewise. - * m4/putenv.m4: Likewise. - * m4/realloc.m4: Likewise. - * m4/regex.m4: Likewise. - * m4/stat.m4: Likewise. - * m4/strftime.m4: Likewise. - Suggestion from Alain Magloire. - - * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires - an argument. - - * m4/regex.m4: Add a run-time Test for proper operation of - re_compile_pattern. - -1999-01-31 Jim Meyering - - * m4/getloadavg.m4: Check for locale.h and the function, setlocale. - -1999-01-30 Jim Meyering - - * m4/check-type.m4: Use 3-arg form of AC_DEFINE. - - * m4/jm-mktime.m4: Make this a wrapper around the official - AM_FUNC_MKTIME rather than my private copy, now that the official one - is up to date. - * m4/mktime.m4: Remove file. - - * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE. - * m4/uptime.m4: Likewise. - * m4/uintmax_t.m4: Likewise. - -1999-01-28 Jim Meyering - - * m4/jm-macros.m4: Use jm_AFS. - * m4/afs.m4: New file (from fileutils' configure.in). - - * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros. - * m4/chown.m4: Likewise. - * m4/d-ino.m4: Likewise. - * m4/d-type.m4: Likewise. - * m4/fnmatch.m4: Likewise. - * m4/getgroups.m4: Likewise. - * m4/gettext.m4: Likewise. - * m4/jm-mktime.m4: Likewise. - * m4/jm-winsz2.m4: Likewise. - * m4/lcmessage.m4: Likewise. - * m4/ls-mntd-fs.m4: Likewise. - * m4/malloc.m4: Likewise. - * m4/memcmp.m4: Likewise. - * m4/putenv.m4: Likewise. - * m4/realloc.m4: Likewise. - * m4/st_mtim.m4: Likewise. - * m4/strftime.m4: Likewise. - -1999-01-16 Jim Meyering - - * m4/jm-macros.m4 (ARGMATCH_DIE): Define. - (ARGMATCH_DIE_DECL): Define. - -1999-01-12 Jim Meyering - - * m4/Makefile.am.in: Rewrite to avoid using fmt. - Reported by Lars Hecking. - -1999-01-10 Jim Meyering - - * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my - gross kludge. - * m4/inttypes_h.m4: Likewise. - * m4/lstat.m4: Likewise. - * m4/malloc.m4: Likewise. - * m4/readdir.m4: Likewise. - * m4/realloc.m4: Likewise. - * m4/st_dm_mode.m4: Likewise. - * m4/stat.m4: Likewise. - * m4/utimbuf.m4: Likewise. - * m4/utimes.m4: Likewise. - - * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the - AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the - comments in config.h.in are meaningful. - - * m4/jm-macros.m4: Require autoconf-2.13 here. - - * m4/regex.m4: By default, don't use the included regex.c on systems - with glibc 2. Suggestion from Uli Drepper. - -1999-01-02 Jim Meyering - - * m4/jm-macros.m4: Replace strcasecmp and strncasecmp. - -1998-12-18 Jim Meyering - - * m4/Makefile.am.in (Makefile.am): Simplify rule. - Based on a suggestion from Lars Hecking. - -1998-11-16 Paul Eggert - - * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11. - -1998-11-16 Jim Meyering - - * m4/lfs.m4: Double-quote the `uname...` expression. - -1998-11-14 Jim Meyering - - * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed. - * m4/stat.m4: Likewise. - -1998-11-03 Jim Meyering - - * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG. - * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG. - -1998-10-18 Jim Meyering - - * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro. - -1998-10-17 Jim Meyering - - * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to - include, though we still hard-code the `require'-like AC_CHECK_HEADERS - calls for those previously hard-coded headers. Instead, take a new - parameter. - (jm_CHECK_DECLARATIONS): Reflect interface change. - * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise. - (jm_CHECK_DECL_LOCALTIME_R): New macro. - - * m4/mktime.m4: Test for spring-forward gap before long-running test. - -1998-10-14 Jim Meyering - - * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0" - instead of "TZ=America/Vancouver". From Paul Eggert. - -1998-10-11 Jim Meyering - - * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro. - This adds a test for a recently added compatibility fix for mktime.c. - * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME. - -1998-09-27 Jim Meyering - - * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH. - - * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from - ../configure.in, including a change from Gordon Matzigkeit to allow - cross-compiling for the Hurd. - - * m4/glibc.m4: New file/macro to test for the GNU C Library - versions 1 and 2. From Gordon Matzigkeit. - Indent. - -1998-09-21 Jim Meyering - - * m4/chown.m4: Declare locals: before, after. From Andries Brouwer. - -1998-08-18 Paul Eggert - - Port nanosecond-resolution times to UnixWare 2.1.2 and - pedantic Solaris 2.6. - - * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from - AC_STRUCT_ST_MTIM. - * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): - Generate name of ns member, instead of just 1 or undef. - Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode. - -1998-08-15 Jim Meyering - - * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file. - * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE. - * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int) - instead of jm_TYPE_SSIZE_T. - -1998-08-12 Jim Meyering - - * m4/st_dm_mode.m4: New file. From Johan Danielsson. - -1998-08-02 Jim Meyering - - * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM - in acconfig.h manually. - -1998-07-31 Paul Eggert - - * m4/st_mtim.m4: New file. - -1998-07-28 Jim Meyering - - * m4/utimes.m4: Undef stat. - -1998-07-25 Jim Meyering - - * m4/utime.m4 (jm_FUNC_UTIME): New file and macro. - * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro. - -1998-07-09 Manfred Hollstein - - * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the - uid and gid actually remain unchanged. - -1998-07-07 Jim Meyering - - * m4/jm-glibc-io.m4: Remove fclose_unlocked. - -1998-07-04 Jim Meyering - - * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise - to prove that this macro can be used in packages without regex.c. - -1998-07-04 Andreas Schwab - - * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if - is to be used. - -1998-07-03 Jim Meyering - - * m4/gettext.m4: Add -lintl if it's found to be necessary. - - * m4/gettext.m4: New file -- from gettext-0.10.35. - * m4/lcmessage.m4: Likewise. - * m4/progtest.m4: Likewise. - - * m4/regex.m4 (jm_WITH_REGEX): New file and macro. - * m4/jm-macros.m4: Require the new macro. - -1998-06-29 Jim Meyering - - * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this - for the definition of NGROUPS (used in a system header included - by sys/mount.h). - -1998-06-28 Jim Meyering - - * m4/ls-mntd-fs.m4: New file. - * m4/fstypename.m4: New file. - - * m4/jm-macros.m4: Require the new macro. - * m4/jm-glibc-io.m4: New file. - -1998-05-19 Jim Meyering - - * m4/jm-macros.m4: Add jm_FUNC_LCHOWN. - * m4/lchown.m4: New file. - - * m4/Makefile.am.in: New file. - * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in. - -1998-05-14 Jim Meyering - - * m4/Makefile.am (EXTRA_DIST): Add them. - * m4/jm-macros.m4: New file. - * m4/utimbuf.m4: New file. - -1998-05-12 Jim Meyering - - * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4. - -1998-05-11 Jim Meyering - - * m4/isc-posix.m4: New file. - -1998-05-10 Jim Meyering - - * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date. - -1998-05-09 Jim Meyering - - * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4. - (EXTRA_DIST): Remove mktime.m4, now that the new version is included - with automake. - - * m4/ssize_t.m4: New file. - * m4/mktime.m4: Remove file -- the new automake has this now. - -1998-04-26 Jim Meyering - - * m4/assert.m4: New file. - * m4/Makefile.am (EXTRA_DIST): Add assert.m4. - -1998-04-05 Jim Meyering - - * m4/prereq.m4 (jm_PREREQ_REGEX): New macro. - (jm_PREREQ): Use it here. - -1998-03-23 Jim Meyering - - * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H - in acconfig.h. - -1998-03-15 Jim Meyering - - * m4/prereq.m4: New file. - * m4/error.m4: New file. - * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4. - -1998-02-07 Jim Meyering - - * m4/getline.m4: Don't set am_cv_func_working_getline before the - cache-check for the same variable -- that defeated the purpose of - the test; the test program was never run. This was a problem only - on systems with losing getline functions -- HP-UX 10.20 is one. - Reported by Bjorn Helgaas. - -1998-02-06 Jim Meyering - - * m4/Makefile.am (EXTRA_DIST): Add perl.m4. - -1998-01-10 Jim Meyering - - * m4/Makefile.am (EXTRA_DIST): Add const.m4. - - * m4/const.m4: New file. Use an initializer in this declaration - typedef int charset[2]; const charset x; - Reported by Bob Glickstein. - -1997-12-21 Jim Meyering - - * m4/chown.m4: Fix reversed types on -1 args to chown. - From Kaveh Ghazi. - -1997-12-14 Jim Meyering - - * m4/check-decl.m4: s/DECLARATION_/DECL_/g. - Add lseek and memchr. - - * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g. - T.E.Dickey said that some older preprocessors - have a 20-character limit on names. - -1997-11-30 Jim Meyering - - * m4/inttypes_h.m4: New file. - * m4/uintmax_t.m4: New file. - * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4. - -Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 - Free Software Foundation, Inc. -Copying and distribution of this file, with or without modification, -are permitted provided the copyright notice and this notice are preserved. +2000-06-04 Paul Eggert \ No newline at end of file diff --git a/lib/acosl.c b/lib/acosl.c index bd07e5325..122fb9ccb 100644 --- a/lib/acosl.c +++ b/lib/acosl.c @@ -9,7 +9,10 @@ * ==================================================== */ -#include "mathl.h" +#include + +/* Specification. */ +#include /* Long double expansions contributed by @@ -33,8 +36,6 @@ */ -#include - static const long double one = 1.0L, huge = 1.0e+4932L, diff --git a/lib/asinl.c b/lib/asinl.c index ee5d8e940..3b896fa39 100644 --- a/lib/asinl.c +++ b/lib/asinl.c @@ -9,7 +9,10 @@ * ==================================================== */ -#include "mathl.h" +#include + +/* Specification. */ +#include /* Long double expansions contributed by @@ -33,8 +36,6 @@ */ -#include - static const long double one = 1.0L, huge = 1.0e+4932L, diff --git a/lib/atanl.c b/lib/atanl.c index 07b8f6a59..16c8dc12b 100644 --- a/lib/atanl.c +++ b/lib/atanl.c @@ -1,3 +1,25 @@ +/* Copyright 2001 by Stephen L. Moshier + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. + If not, write to the Free Software Foundation, + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +/* Specification. */ +#include + /* s_atanl.c * * Inverse circular tangent for 128-bit long double precision @@ -42,26 +64,6 @@ * */ -/* Copyright 2001 by Stephen L. Moshier - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. - If not, write to the Free Software Foundation, - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#include "mathl.h" - -#include /* arctan(k/8), k = 0, ..., 82 */ static const long double atantbl[84] = { diff --git a/lib/ceill.c b/lib/ceill.c index b3c0726b3..9eb1ba07c 100644 --- a/lib/ceill.c +++ b/lib/ceill.c @@ -1,7 +1,7 @@ /* Emulation for ceill. Contributed by Paolo Bonzini - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2007 Free Software Foundation, Inc. This file is part of gnulib. @@ -19,9 +19,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include + +/* Specification. */ +#include -#include "mathl.h" +#include /* To compute the integer part of X, sum a big enough integer so that the precision of the floating point diff --git a/lib/cosl.c b/lib/cosl.c index 1c208ad10..3c28f77c6 100644 --- a/lib/cosl.c +++ b/lib/cosl.c @@ -13,6 +13,11 @@ * ==================================================== */ +#include + +/* Specification. */ +#include + /* sinl(x) * Return sine function of x. * @@ -44,10 +49,6 @@ * TRIG(x) returns trig(x) nearly rounded */ -#include - -#include "mathl.h" - #include "trigl.h" #ifdef HAVE_SINL #include "trigl.c" diff --git a/lib/expl.c b/lib/expl.c index a9c6c9a72..a3bb1ffde 100644 --- a/lib/expl.c +++ b/lib/expl.c @@ -1,7 +1,7 @@ /* Emulation for expl. Contributed by Paolo Bonzini - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2007 Free Software Foundation, Inc. This file is part of gnulib. @@ -19,10 +19,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include + +/* Specification. */ #include -#include "mathl.h" +#include static const long double C[] = { /* Chebyshev polynom coeficients for (exp(x)-1)/x */ diff --git a/lib/floorl.c b/lib/floorl.c index 39be0bbd6..84b212e9e 100644 --- a/lib/floorl.c +++ b/lib/floorl.c @@ -1,7 +1,7 @@ /* Emulation for floorl. Contributed by Paolo Bonzini - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2007 Free Software Foundation, Inc. This file is part of gnulib. @@ -19,9 +19,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include + +/* Specification. */ +#include -#include "mathl.h" +#include /* To compute the integer part of X, sum a big enough integer so that the precision of the floating point diff --git a/lib/frexpl.c b/lib/frexpl.c index a3c4dc07f..c563fc0c9 100644 --- a/lib/frexpl.c +++ b/lib/frexpl.c @@ -1,7 +1,7 @@ /* Emulation for frexpl. Contributed by Paolo Bonzini - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2007 Free Software Foundation, Inc. This file is part of gnulib. @@ -19,10 +19,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include + +/* Specification. */ #include -#include "mathl.h" +#include /* Binary search. Quite inefficient but portable. */ long double diff --git a/lib/ldexpl.c b/lib/ldexpl.c index a4cdae19e..6ad886a42 100644 --- a/lib/ldexpl.c +++ b/lib/ldexpl.c @@ -1,7 +1,7 @@ /* Emulation for ldexpl. Contributed by Paolo Bonzini - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2007 Free Software Foundation, Inc. This file is part of gnulib. @@ -19,10 +19,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include + +/* Specification. */ #include -#include "mathl.h" +#include long double ldexpl(long double x, int exp) diff --git a/lib/logl.c b/lib/logl.c index 374b731fd..dc75a8fd7 100644 --- a/lib/logl.c +++ b/lib/logl.c @@ -1,3 +1,25 @@ +/* Copyright 2001 by Stephen L. Moshier + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. + If not, write to the Free Software Foundation, + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +/* Specification. */ +#include + /* logll.c * * Natural logarithm for 128-bit long double precision. @@ -42,27 +64,6 @@ * */ -#include - -#include "mathl.h" - -/* Copyright 2001 by Stephen L. Moshier - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; see the file COPYING. - If not, write to the Free Software Foundation, - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - /* log(1+x) = x - .5 x^2 + x^3 l(x) -.0078125 <= x <= +.0078125 peak relative error 1.2e-37 */ diff --git a/lib/math_.h b/lib/math_.h new file mode 100644 index 000000000..aeec2fec1 --- /dev/null +++ b/lib/math_.h @@ -0,0 +1,168 @@ +/* A GNU-like . + + Copyright (C) 2002-2003, 2007 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _GL_MATH_H +#define _GL_MATH_H + +#include @ABSOLUTE_MATH_H@ + + +/* The definition of GL_LINK_WARNING is copied here. */ + + +#ifdef __cplusplus +extern "C" { +#endif + + +#if @GNULIB_MATHL@ +extern long double acosl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef acosl +# define acosl(x) \ + (GL_LINK_WARNING ("acosl is unportable - "\ + "use gnulib module mathl for portability"), \ + acosl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double asinl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef asinl +# define asinl(x) \ + (GL_LINK_WARNING ("asinl is unportable - "\ + "use gnulib module mathl for portability"), \ + asinl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double atanl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef atanl +# define atanl(x) \ + (GL_LINK_WARNING ("atanl is unportable - "\ + "use gnulib module mathl for portability"), \ + atanl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double ceill (long double x); +#elif defined GNULIB_POSIXCHECK +# undef ceill +# define ceill(x) \ + (GL_LINK_WARNING ("ceill is unportable - "\ + "use gnulib module mathl for portability"), \ + ceill (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double cosl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef cosl +# define cosl(x) \ + (GL_LINK_WARNING ("cosl is unportable - "\ + "use gnulib module mathl for portability"), \ + cosl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double expl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef expl +# define expl(x) \ + (GL_LINK_WARNING ("expl is unportable - "\ + "use gnulib module mathl for portability"), \ + expl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double floorl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef floorl +# define floorl(x) \ + (GL_LINK_WARNING ("floorl is unportable - "\ + "use gnulib module mathl for portability"), \ + floorl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double frexpl (long double x, int *exp); +#elif defined GNULIB_POSIXCHECK +# undef frexpl +# define frexpl(x,e) \ + (GL_LINK_WARNING ("frexpl is unportable - "\ + "use gnulib module mathl for portability"), \ + frexpl (x, e)) +#endif + +#if @GNULIB_MATHL@ +extern long double ldexpl (long double x, int exp); +#elif defined GNULIB_POSIXCHECK +# undef ldexpl +# define ldexpl(x,e) \ + (GL_LINK_WARNING ("ldexpl is unportable - "\ + "use gnulib module mathl for portability"), \ + ldexpl (x, e)) +#endif + +#if @GNULIB_MATHL@ +extern long double logl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef logl +# define logl(x) \ + (GL_LINK_WARNING ("logl is unportable - "\ + "use gnulib module mathl for portability"), \ + logl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double sinl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef sinl +# define sinl(x) \ + (GL_LINK_WARNING ("sinl is unportable - "\ + "use gnulib module mathl for portability"), \ + sinl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double sqrtl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef sqrtl +# define sqrtl(x) \ + (GL_LINK_WARNING ("sqrtl is unportable - "\ + "use gnulib module mathl for portability"), \ + sqrtl (x)) +#endif + +#if @GNULIB_MATHL@ +extern long double tanl (long double x); +#elif defined GNULIB_POSIXCHECK +# undef tanl +# define tanl(x) \ + (GL_LINK_WARNING ("tanl is unportable - "\ + "use gnulib module mathl for portability"), \ + tanl (x)) +#endif + + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/lib/mathl.h b/lib/mathl.h deleted file mode 100644 index de0f52299..000000000 --- a/lib/mathl.h +++ /dev/null @@ -1,39 +0,0 @@ -/* Declaration for long double functions. - Contributed by Paolo Bonzini - - Copyright 2002, 2003 Free Software Foundation, Inc. - - This file is part of gnulib. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#ifndef GNULIB_MATHL_H -#define GNULIB_MATHL_H - -extern long double acosl (long double x); -extern long double asinl (long double x); -extern long double atanl (long double x); -extern long double ceill (long double x); -extern long double cosl (long double x); -extern long double expl (long double x); -extern long double floorl (long double x); -extern long double frexpl (long double x, int *exp); -extern long double ldexpl (long double x, int exp); -extern long double logl (long double x); -extern long double sinl (long double x); -extern long double sqrtl (long double x); -extern long double tanl (long double x); - -#endif diff --git a/lib/sincosl.c b/lib/sincosl.c index e832bd724..1aaab5c1a 100644 --- a/lib/sincosl.c +++ b/lib/sincosl.c @@ -1,5 +1,5 @@ /* Quad-precision floating point trigonometric functions on <-pi/4,pi/4>. - Copyright (C) 1999, 2006 Free Software Foundation, Inc. + Copyright (C) 1999, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek @@ -17,10 +17,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include + +/* Specification. */ #include -#include -#include "mathl.h" +#include static const long double sin_c[] = { #define ONE sin_c[0] diff --git a/lib/sinl.c b/lib/sinl.c index cb090b320..02c70354f 100644 --- a/lib/sinl.c +++ b/lib/sinl.c @@ -13,6 +13,11 @@ * ==================================================== */ +#include + +/* Specification. */ +#include + /* sinl(x) * Return sine function of x. * @@ -44,10 +49,6 @@ * TRIG(x) returns trig(x) nearly rounded */ -#include - -#include "mathl.h" - #include "trigl.h" #include "trigl.c" #include "sincosl.c" diff --git a/lib/sqrtl.c b/lib/sqrtl.c index 4ca99d770..3702f027e 100644 --- a/lib/sqrtl.c +++ b/lib/sqrtl.c @@ -1,7 +1,7 @@ /* Emulation for sqrtl. Contributed by Paolo Bonzini - Copyright 2002, 2003 Free Software Foundation, Inc. + Copyright 2002, 2003, 2007 Free Software Foundation, Inc. This file is part of gnulib. @@ -19,10 +19,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include + +/* Specification. */ #include -#include "mathl.h" +#include /* A simple Newton-Raphson method. */ long double diff --git a/lib/tanl.c b/lib/tanl.c index b87d0dd19..26bf11278 100644 --- a/lib/tanl.c +++ b/lib/tanl.c @@ -14,6 +14,11 @@ * ==================================================== */ +#include + +/* Specification. */ +#include + /* tanl(x) * Return tangent function of x. * @@ -44,10 +49,6 @@ * TRIG(x) returns trig(x) nearly rounded */ -#include - -#include "mathl.h" - #include "trigl.h" #ifdef HAVE_SINL #ifdef HAVE_COSL diff --git a/lib/trigl.c b/lib/trigl.c index c2db23ee9..ed9fd51d0 100644 --- a/lib/trigl.c +++ b/lib/trigl.c @@ -1,5 +1,5 @@ /* Quad-precision floating point argument reduction. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek @@ -17,10 +17,12 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include + +/* Specification. */ #include -#include -#include "mathl.h" +#include /* Table of constants for 2/pi, 5628 hexadecimal digits of 2/pi */ static const int two_over_pi[] = { diff --git a/m4/math_h.m4 b/m4/math_h.m4 new file mode 100644 index 000000000..c83f25e73 --- /dev/null +++ b/m4/math_h.m4 @@ -0,0 +1,25 @@ +# math_h.m4 serial 1 +dnl Copyright (C) 2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_MATH_H], +[ + AC_REQUIRE([gl_MATH_H_DEFAULTS]) + gl_ABSOLUTE_HEADER([math.h]) + ABSOLUTE_MATH_H=\"$gl_cv_absolute_math_h\" + AC_SUBST([ABSOLUTE_MATH_H]) +]) + +AC_DEFUN([gl_MATH_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_MATH_H_DEFAULTS]) + GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 +]) + +AC_DEFUN([gl_MATH_H_DEFAULTS], +[ + GNULIB_MATHL=0; AC_SUBST([GNULIB_MATHL]) +]) diff --git a/modules/math b/modules/math new file mode 100644 index 000000000..c4d0476f8 --- /dev/null +++ b/modules/math @@ -0,0 +1,38 @@ +Description: +A GNU-like . + +Files: +lib/math_.h +m4/math_h.m4 + +Depends-on: +absolute-header +link-warning + +configure.ac: +gl_MATH_H + +Makefile.am: +BUILT_SOURCES += math.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +math.h: math_.h + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''ABSOLUTE_MATH_H''@|$(ABSOLUTE_MATH_H)|g' \ + -e 's|@''GNULIB_MATHL''@|$(GNULIB_MATHL)|g' \ + -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + < $(srcdir)/math_.h; \ + } > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += math.h math.h-t + +Include: + + +License: +LGPL + +Maintainer: +all diff --git a/modules/mathl b/modules/mathl index 1d6fdd9e6..b75eeca8a 100644 --- a/modules/mathl +++ b/modules/mathl @@ -2,7 +2,6 @@ Description: C99 functions for transcendental functions with long double arguments. Files: -lib/mathl.h lib/acosl.c lib/asinl.c lib/atanl.c @@ -22,15 +21,16 @@ lib/trigl.h m4/mathl.m4 Depends-on: +math configure.ac: gl_FUNC_LONG_DOUBLE_MATH Makefile.am: -noinst_HEADERS += mathl.h trigl.h trigl.c sincosl.c +noinst_HEADERS += trigl.h trigl.c sincosl.c Include: -"mathl.h" + License: GPL -- 2.11.0