diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-12 07:31:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-12 07:31:39 +0000 |
commit | 4127c7429a2708eb3a254fe65ab3f4003ed0d81b (patch) | |
tree | 58757c4c631bd03b73830c27b556ac3a10e816fe /m4 | |
parent | ddb9645e2e36a161cd2e234470c66c31d68f74dd (diff) | |
download | coreutils-4127c7429a2708eb3a254fe65ab3f4003ed0d81b.tar.xz |
(gl_DEFAULT_POSIX2_VERSION): Move
the documentation from 'configure' into 'config.hin',
so that 'configure --help' isn't burdened by it and
we don't have to worry about its formatting there.
Reword the documentation so that it's more succinct
and can be run together into a single paragraph.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/posixver.m4 | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/m4/posixver.m4 b/m4/posixver.m4 index 33b412239..b0f18d444 100644 --- a/m4/posixver.m4 +++ b/m4/posixver.m4 @@ -25,34 +25,21 @@ AC_DEFUN([gl_DEFAULT_POSIX2_VERSION], gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value AC_DEFINE_UNQUOTED(DEFAULT_POSIX2_VERSION, $gl_default_posix2_version, - [Define the default level of POSIX conformance for these tools. - The value is of the form YYYYMM, specifying the year and month the - standard was adopted. Unless explicitly selected at configure-time, - this symbol is not defined.]) + [Define the default level of POSIX conformance. The value is of + the form YYYYMM, specifying the year and month the standard was + adopted. If not defined here, it defaults to the value of + _POSIX2_VERSION in <unistd.h>. Define to 199209 to default to + POSIX 1003.2-1992, which makes standard programs like `head', + `tail', and `sort' accept obsolete options like `+10' and + `-10'. Define to 200112 to default to POSIX 1003.1-2001, which + makes these standard programs treat leading-`+' operands as + file names and require modern usages like `-n 10' instead of + `-10'. Whether defined here or not, the default can be + overridden at run time via the _POSIX2_VERSION environment + variable.]) fi AC_MSG_RESULT($gl_default_posix2_version) AC_ARG_VAR( [DEFAULT_POSIX2_VERSION], - [These tools normally conform to the version of POSIX that is standard - for your system, as determined by the value of _POSIX2_VERSION from - the C system header, <unistd.h>. Use this option to compile-in - a different default. - Regardless of the compiled-in default, the desired behavior may be - selected at tool run time via the _POSIX2_VERSION environment variable. - - Use `DEFAULT_POSIX2_VERSION=199209' to - enable option handling that is compatible with POSIX 1003.2-1992. - CAUTION: this makes tools like head, tail, uniq, and sort accept - options that start with `+'; but such `options' must be treated - as files, according to the more recent POSIX 1003.1-2001 standard. - This option also makes head, tail, etc. accept options like -1 - and -30. Use of this build-time option merely sets the default. - - Use `DEFAULT_POSIX2_VERSION=200112' to - enable option handling that is compatible with POSIX 1003.1-2001. - CAUTION: this makes tools like head, tail, uniq, and sort treat - as files arguments that start with `+'. This also makes options - like -1 and -30 (to e.g. head, tail) invalid. Instead you must - use the -n 1 or -n 30 form. - ]) + [POSIX version to default to; see 'config.hin'.]) ]) |