comparison m4/posixver.m4 @ 11007:f6cba5a556ce

many *.m4 files: improve m4 quoting 99% of this change was performed by running the following commands: git ls-files | grep '\.m4$' | xargs perl -pi \ -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \ -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g' perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4 The remainder were to add Copyright dates, increment serial numbers, undo some changes in comments, exclude m4/intl.m4, and add quotes around the "1" in ",1" where the unusual spacing prohibited the above regexps from doing the job. For more details, see <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
author Jim Meyering <meyering@redhat.com>
date Tue, 13 Jan 2009 08:48:48 +0100
parents be9e01d008cb
children c2cbabec01dd
comparison
equal deleted inserted replaced
11006:76da4c1dc4a9 11007:f6cba5a556ce
1 # posixver.m4 serial 9 1 # posixver.m4 serial 10
2 dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 2 dnl Copyright (C) 2002-2006, 2009 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation 3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it, 4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved. 5 dnl with or without modifications, as long as this notice is preserved.
6 6
7 AC_DEFUN([gl_POSIXVER], 7 AC_DEFUN([gl_POSIXVER],
21 [ 21 [
22 AC_MSG_CHECKING([for desired default level of POSIX conformance]) 22 AC_MSG_CHECKING([for desired default level of POSIX conformance])
23 gl_default_posix2_version=none-specified 23 gl_default_posix2_version=none-specified
24 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then 24 if test -n "$ac_cv_env_DEFAULT_POSIX2_VERSION_set"; then
25 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value 25 gl_default_posix2_version=$ac_cv_env_DEFAULT_POSIX2_VERSION_value
26 AC_DEFINE_UNQUOTED(DEFAULT_POSIX2_VERSION, 26 AC_DEFINE_UNQUOTED([DEFAULT_POSIX2_VERSION],
27 $gl_default_posix2_version, 27 $gl_default_posix2_version,
28 [Define the default level of POSIX conformance. The value is of 28 [Define the default level of POSIX conformance. The value is of
29 the form YYYYMM, specifying the year and month the standard was 29 the form YYYYMM, specifying the year and month the standard was
30 adopted. If not defined here, it defaults to the value of 30 adopted. If not defined here, it defaults to the value of
31 _POSIX2_VERSION in <unistd.h>. Define to 199209 to default to 31 _POSIX2_VERSION in <unistd.h>. Define to 199209 to default to
36 file names and require modern usages like `-n 10' instead of 36 file names and require modern usages like `-n 10' instead of
37 `-10'. Whether defined here or not, the default can be 37 `-10'. Whether defined here or not, the default can be
38 overridden at run time via the _POSIX2_VERSION environment 38 overridden at run time via the _POSIX2_VERSION environment
39 variable.]) 39 variable.])
40 fi 40 fi
41 AC_MSG_RESULT($gl_default_posix2_version) 41 AC_MSG_RESULT([$gl_default_posix2_version])
42 AC_ARG_VAR( 42 AC_ARG_VAR(
43 [DEFAULT_POSIX2_VERSION], 43 [DEFAULT_POSIX2_VERSION],
44 [POSIX version to default to; see 'config.hin'.]) 44 [POSIX version to default to; see 'config.hin'.])
45 ]) 45 ])