diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2006-04-05 20:55:14 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2006-04-05 20:55:14 +0000 |
commit | 73b45d6e4b08192ee0072018e15d10a7155b752d (patch) | |
tree | 5cdcfcf859d2fc07c19e8fa1c397fa98a46e24ba /lib | |
parent | 6cd003bf890660e17cb9fb00474874809c0a709f (diff) | |
download | autoconf-73b45d6e4b08192ee0072018e15d10a7155b752d.tar.gz |
* TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
lib/autoconf/specific.m4, lib/autoconf/status.m4,
lib/autoconf/types.m4, lib/autotest/general.m4,
tests/mktests.sh, tests/torture.at: White space cleanup:
remove some SPACE before TAB, or add quoting ('' or @&t@).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/autoconf/c.m4 | 2 | ||||
-rw-r--r-- | lib/autoconf/specific.m4 | 14 | ||||
-rw-r--r-- | lib/autoconf/status.m4 | 14 | ||||
-rw-r--r-- | lib/autoconf/types.m4 | 18 | ||||
-rw-r--r-- | lib/autotest/general.m4 | 20 | ||||
-rw-r--r-- | lib/freeze.mk | 2 |
6 files changed, 35 insertions, 35 deletions
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 962baeef..425f695f 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -1018,7 +1018,7 @@ char **argv;]], [[return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];]], dnl Don't try gcc -ansi; that turns off useful extensions and dnl breaks some systems' header files. -dnl AIX circa 2003 -qlanglvl=extc89 +dnl AIX circa 2003 -qlanglvl=extc89 dnl old AIX -qlanglvl=ansi dnl Ultrix, OSF/1, Tru64 -std dnl HP-UX 10.20 and later -Ae diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index de949047..650c0d60 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -132,10 +132,10 @@ m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE], [while :; do $3=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$5], [$6])], - [break]) + [break]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@define $1 $2 $5], [$6])], - [$3=$2; break]) + [$3=$2; break]) break done]) if test "$$3" != no; then @@ -162,12 +162,12 @@ if test "$enable_largefile" != no; then if test "$GCC" != yes; then ac_save_CC=$CC while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])]) - AC_COMPILE_IFELSE([], [break]) - CC="$CC -n32" - AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) + AC_COMPILE_IFELSE([], [break]) + CC="$CC -n32" + AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) break done CC=$ac_save_CC diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index b29b94fa..01f22700 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -363,7 +363,7 @@ _ACEOF m4_define([_AC_SED_CMD_NUM], m4_eval(_AC_SED_CMD_NUM + 3))dnl m4_define([_AC_SED_FRAG], m4_defn([_AC_SED_FRAG])dnl -[/^[ ]*@]_AC_Var[@[ ]*$/{ +[/^[ @&t@ ]*@]_AC_Var[@[ @&t@ ]*$/{ r $]_AC_Var[ d } @@ -574,7 +574,7 @@ m4_define([_AC_OUTPUT_HEADER], # dnl Quote, for the `[ ]' and `define'. [ ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*' - ac_dB='\)[ (].*$,\1define\2' + ac_dB='\)[ '' (].*$,\1define\2' ac_dC=' ' ac_dD=' ,'] dnl ac_dD used to contain `;t' at the end, but that was both slow and incorrect. @@ -606,14 +606,14 @@ uniq confdefs.h | sed -n ' t rset :rset - s/^[ ]*#[ ]*define[ ][ ]*// + s/^[ '' ]*#[ '' ]*define[ '' ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/[\\$`]/\\&/g - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ '' ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p + s/^\('"$ac_word_re"'\)[ '' ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p ' >>conftest.defines ] # Remove the space that was appended to ease matching. @@ -641,8 +641,8 @@ do dnl Quote, for the `[ ]' and `define'. echo [' # First, check the format of the line: cat >"$tmp/defines.sed" <<CEOF -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def -/^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ @&t@ ]*$/b def +/^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( @&t@ ]/b def b :def'] >>$CONFIG_STATUS sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4 index 0f6f64fa..9080a887 100644 --- a/lib/autoconf/types.m4 +++ b/lib/autoconf/types.m4 @@ -89,33 +89,33 @@ # The most obvious way to check for a TYPE is just to compile a variable # definition: # -# TYPE my_var; +# TYPE my_var; # # Unfortunately this does not work for const qualified types in C++, # where you need an initializer. So you think of # -# TYPE my_var = (TYPE) 0; +# TYPE my_var = (TYPE) 0; # # Unfortunately, again, this is not valid for some C++ classes. # # Then you look for another scheme. For instance you think of declaring # a function which uses a parameter of type TYPE: # -# int foo (TYPE param); +# int foo (TYPE param); # # but of course you soon realize this does not make it with K&R # compilers. And by no ways you want to # -# int foo (param) -# TYPE param -# { ; } +# int foo (param) +# TYPE param +# { ; } # # since this time it's C++ who is not happy. # # Don't even think of the return type of a function, since K&R cries # there too. So you start thinking of declaring a *pointer* to this TYPE: # -# TYPE *p; +# TYPE *p; # # but you know fairly well that this is legal in C for aggregates which # are unknown (TYPE = struct does-not-exist). @@ -123,7 +123,7 @@ # Then you think of using sizeof to make sure the TYPE is really # defined: # -# sizeof (TYPE); +# sizeof (TYPE); # # But this succeeds if TYPE is a variable: you get the size of the # variable's type!!! @@ -133,7 +133,7 @@ # # Also note that we use # -# if (sizeof (TYPE)) +# if (sizeof (TYPE)) # # to `read' sizeof (to avoid warnings), while not depending on its type # (not necessarily size_t etc.). Equally, instead of defining an unused diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 19246100..10789ee1 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -390,16 +390,16 @@ dnl Process *=* last to allow for user specified --option=* type arguments. m4_divert_push([PARSE_ARGS_END])dnl *=*) - at_envvar=`expr "x$at_option" : 'x\([[^=]]*\)='` - # Reject names that are not valid shell variable names. - expr "x$at_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null && - AS_ERROR([invalid variable name: $at_envvar]) - at_value=`echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$at_envvar='$at_value'" - export $at_envvar + at_envvar=`expr "x$at_option" : 'x\([[^=]]*\)='` + # Reject names that are not valid shell variable names. + expr "x$at_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null && + AS_ERROR([invalid variable name: $at_envvar]) + at_value=`echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$at_envvar='$at_value'" + export $at_envvar # Propagate to debug scripts. - at_debug_args="$at_debug_args $at_option" - ;; + at_debug_args="$at_debug_args $at_option" + ;; *) echo "$as_me: invalid option: $at_option" >&2 echo "Try \`$[0] --help' for more information." >&2 @@ -745,7 +745,7 @@ m4_divert_push([TESTS_END])[]dnl run. This means that test suite is improperly designed. Please report this failure to <AT_PACKAGE_BUGREPORT>. _ATEOF - echo "$at_setup_line" >"$at_check_line_file" + echo "$at_setup_line" >"$at_check_line_file" fi at_group_count=`expr 1 + $at_group_count` $at_verbose $ECHO_N "$at_group. $at_setup_line: $ECHO_C" diff --git a/lib/freeze.mk b/lib/freeze.mk index db6025e0..c2269df2 100644 --- a/lib/freeze.mk +++ b/lib/freeze.mk @@ -70,7 +70,7 @@ m4sh_m4f_dependencies = \ $(m4sugar_m4f_dependencies) \ $(src_libdir)/m4sugar/m4sh.m4 -autotest_m4f_dependencies = \ +autotest_m4f_dependencies = \ $(m4sh_m4f_dependencies) \ $(src_libdir)/autotest/autotest.m4 \ $(src_libdir)/autotest/general.m4 |