autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.67-45-g


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.67-45-g3037845
Date: Mon, 30 Aug 2010 16:46:35 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=30378453ea71e8a53c3dcc401ffa64b43353a64b

The branch, master has been updated
       via  30378453ea71e8a53c3dcc401ffa64b43353a64b (commit)
       via  d97d8a7d049e6474431140001fdd80ef14c84abe (commit)
       via  6284d1bef725b4e038472e4b31605f84f2f77f96 (commit)
      from  838bdfa56d79bd1cee7d489bdfd78771524c14f9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 30378453ea71e8a53c3dcc401ffa64b43353a64b
Author: Eric Blake <address@hidden>
Date:   Mon Aug 30 09:51:11 2010 -0600

    fortran: always avoid AC_LANG_CONFTEST warning
    
    * lib/autoconf/lang.m4 (AC_LANG_CONFTEST()): Make the default
    match the fact that the default AC_LANG_SOURCE does not inline
    confdefs.h in the first place.
    * lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
    (AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Revert previous use of
    AC_LANG_DEFINES_PROVIDED.
    Suggested by Ralf Wildenhues.
    
    Signed-off-by: Eric Blake <address@hidden>

commit d97d8a7d049e6474431140001fdd80ef14c84abe
Author: Eric Blake <address@hidden>
Date:   Fri Aug 27 13:15:22 2010 -0600

    config.status: minimize use of $tmp
    
    * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP)
    (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
    (_AC_OUTPUT_HEADERS_PREPARE, _AC_OUTPUT_HEADER): Use $ac_tmp
    internally, while preserving $tmp for existing users.
    * tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
    New test, that $tmp is available but not essential.
    
    Signed-off-by: Eric Blake <address@hidden>

commit 6284d1bef725b4e038472e4b31605f84f2f77f96
Author: Eric Blake <address@hidden>
Date:   Fri Aug 27 12:55:54 2010 -0600

    docs: avoid use of $tmp outside of config.status use
    
    * doc/autoconf.texi (Polymorphic Variables, Shell Substitutions):
    Use $var or $t instead.
    (Limitations of Usual Tools): Use $dir instead.
    (Initialization Macros) <AS_TMPDIR>: Make good on the NEWS
    regarding AS_TMPDIR being documented as consuming $tmp.
    Suggested by Ralf Wildenhues.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog               |   27 +++++++++++++++++++++
 doc/autoconf.texi       |   55 ++++++++++++++++++++++++++++++++-----------
 lib/autoconf/fortran.m4 |   10 ++++----
 lib/autoconf/lang.m4    |    6 ++++-
 lib/autoconf/status.m4  |   60 +++++++++++++++++++++++++---------------------
 tests/torture.at        |   28 ++++++++++++++++++++++
 6 files changed, 139 insertions(+), 47 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8ddf026..5d3ac87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,30 @@
+2010-08-30  Eric Blake  <address@hidden>
+
+       fortran: always avoid AC_LANG_CONFTEST warning
+       * lib/autoconf/lang.m4 (AC_LANG_CONFTEST()): Make the default
+       match the fact that the default AC_LANG_SOURCE does not inline
+       confdefs.h in the first place.
+       * lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
+       (AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Revert previous use of
+       AC_LANG_DEFINES_PROVIDED.
+       Suggested by Ralf Wildenhues.
+
+       config.status: minimize use of $tmp
+       * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP)
+       (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
+       (_AC_OUTPUT_HEADERS_PREPARE, _AC_OUTPUT_HEADER): Use $ac_tmp
+       internally, while preserving $tmp for existing users.
+       * tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
+       New test, that $tmp is available but not essential.
+
+       docs: avoid use of $tmp outside of config.status use
+       * doc/autoconf.texi (Polymorphic Variables, Shell Substitutions):
+       Use $var or $t instead.
+       (Limitations of Usual Tools): Use $dir instead.
+       (Initialization Macros) <AS_TMPDIR>: Make good on the NEWS
+       regarding AS_TMPDIR being documented as consuming $tmp.
+       Suggested by Ralf Wildenhues.
+
 2010-08-29  Paul Eggert  <address@hidden>
 
        AC_PROG_YACC: fix comment re what "yacc" stands for
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 19f00bd..840b4fe 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -13442,8 +13442,8 @@ results in a script that will output the line 
@samp{hello} three times.
 AC_DEFUN([MY_ACTION],
 [AS_LITERAL_IF([$1],
   [echo "$$1"],
-  [AS_VAR_COPY([tmp], [$1])
-   echo "$tmp"],
+  [AS_VAR_COPY([var], [$1])
+   echo "$var"],
   [eval 'echo "$'"$1"\"])])
 foo=bar bar=hello
 MY_ACTION([bar])
@@ -13462,8 +13462,8 @@ efficient scaling.
 For situations where the final contents of @var{var} are relatively
 short (less than 256 bytes), it is more efficient to use the simpler
 code sequence of @address@hidden@address@hidden@address@hidden (or its
-polymorphic equivalent of @code{AS_VAR_COPY([tmp], address@hidden)} and
address@hidden(address@hidden, ["$tmp"@var{text}])}).  But in the case
+polymorphic equivalent of @code{AS_VAR_COPY([t], address@hidden)} and
address@hidden(address@hidden, ["$t"@var{text}])}).  But in the case
 when the script will be repeatedly appending text into @code{var},
 issues of scaling start to become apparent.  A naive implementation
 requires execution time linear to the length of the current contents of
@@ -13702,6 +13702,33 @@ script.  This macro is automatically invoked by 
@code{AC_INIT} in
 configure scripts.
 @end defmac
 
address@hidden AS_TMPDIR (@var{prefix}, @dvar{dir, 
address@hidden:=/address@hidden)
address@hidden
address@hidden TMPDIR
address@hidden tmp
+Create, as safely as possible, a temporary sub-directory within
address@hidden with a name starting with @var{prefix}.  @var{prefix} should
+be 2-4 characters, to make it slightly easier to identify the owner of
+the directory.  If @var{dir} is omitted, then the value of @env{TMPDIR}
+will be used (defaulting to @samp{/tmp}).  On success, the name of the
+newly created directory is stored in the shell variable @code{tmp}.  On
+error, the script is aborted.
+
+Typically, this macro is coupled with some exit traps to delete the created
+directory and its contents on exit or interrupt.  However, there is a
+slight window between when the directory is created and when the name is
+actually known to the shell, so an interrupt at the right moment might
+leave the temporary directory behind.  Hence it is important to use a
address@hidden that makes it easier to determine if a leftover temporary
+directory from an interrupted script is safe to delete.
+
+The use of the output variable @samp{$tmp} rather than something in the
address@hidden namespace is historical; it has the unfortunate consequence
+that reusing this otherwise common name for any other purpose inside
+your script has the potential to break any cleanup traps designed to
+remove the temporary directory.
address@hidden defmac
+
 @defmac AS_SHELL_SANITIZE
 @asindex{SHELL_SANITIZE}
 Initialize the shell suitably for @command{configure} scripts.  This has
@@ -15475,15 +15502,15 @@ b  c
 
 Perhaps the easiest way to work around quoting issues in a manner
 portable to all shells is to place the results in a temporary variable,
-then use @samp{$tmp} as the @var{value}, rather than trying to inline
+then use @samp{$t} as the @var{value}, rather than trying to inline
 the expression needing quoting.
 
 @example
-$ @kbd{/bin/sh -c 'tmp="a  b\"'\''@}\\"; echo "address@hidden@}"'}
+$ @kbd{/bin/sh -c 't="a  b\"'\''@}\\"; echo "address@hidden@}"'}
 b  c"'@}\
-$ @kbd{ksh -c 'tmp="a  b\"'\''@}\\"; echo "address@hidden@}"'}
+$ @kbd{ksh -c 't="a  b\"'\''@}\\"; echo "address@hidden@}"'}
 b  c"'@}\
-$ @kbd{bash -c 'tmp="a  b\"'\''@}\\"; echo "address@hidden@}"'}
+$ @kbd{bash -c 't="a  b\"'\''@}\\"; echo "address@hidden@}"'}
 b  c"'@}\
 @end example
 
@@ -18428,22 +18455,22 @@ use a file inside this directory.  Both methods 
prevent attackers from
 gaining control, though @command{mktemp} is far less likely to fail
 gratuitously under attack.
 
-Here is sample code to create a new temporary directory safely:
+Here is sample code to create a new temporary directory @samp{$dir} safely:
 
 @example
-# Create a temporary directory $tmp in $TMPDIR (default /tmp).
+# Create a temporary directory $dir in $TMPDIR (default /tmp).
 # Use mktemp if possible; otherwise fall back on mkdir,
 # with $RANDOM to make collisions less likely.
 : "address@hidden:=/address@hidden"
 @{
-  tmp=`
+  dir=`
     (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
   ` &&
-  test -n "$tmp" && test -d "$tmp"
+  test -d "$dir"
 @} || @{
-  tmp=$TMPDIR/foo$$-$RANDOM
+  dir=$TMPDIR/foo$$-$RANDOM
 @c $$ restore font-lock
-  (umask 077 && mkdir "$tmp")
+  (umask 077 && mkdir "$dir")
 @} || exit $?
 @end example
 
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index 5e48468..e8f7bbc 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -897,8 +897,8 @@ AC_DEFUN([__AC_FC_NAME_MANGLING],
 [_AC_FORTRAN_ASSERT()dnl
 AC_CACHE_CHECK([for _AC_LANG name-mangling scheme],
               ac_cv_[]_AC_LANG_ABBREV[]_mangling,
-[AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED
-[      subroutine foobar()
+[AC_COMPILE_IFELSE(
+[[      subroutine foobar()
       return
       end
       subroutine foo_bar()
@@ -1186,7 +1186,7 @@ for ac_flag in none -ffree-form -FR -free -qfree -Mfree 
-Mfreeform \
 do
   test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_freeform_FCFLAGS_save $ac_flag"
 dnl Use @&t@ below to ensure that editors don't turn 8+ spaces into tab.
-  AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[
+  AC_COMPILE_IFELSE([[
   program freeform
        ! FIXME: how to best confuse non-freeform compilers?
        print *, 'Hello ', &
@@ -1241,7 +1241,7 @@ for ac_flag in none -ffixed-form -fixed -qfixed -Mfixed 
-fixedform "-f fixed" \
               +source=fixed -fix
 do
   test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_fixedform_FCFLAGS_save $ac_flag"
-  AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[
+  AC_COMPILE_IFELSE([[
 C     This comment should confuse free-form compilers.
       program main
       end]],
@@ -1324,7 +1324,7 @@ for ac_flag in none \
               "-W $ac_fc_line_len" +extend_source -wide -e
 do
   test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_line_length_FCFLAGS_save 
$ac_flag"
-  AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[$ac_fc_line_length_test
+  AC_COMPILE_IFELSE([[$ac_fc_line_length_test
       end subroutine]],
                    [ac_cv_fc_line_length=$ac_flag; break])
 done
diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4
index bd4b68b..d2e98f9 100644
--- a/lib/autoconf/lang.m4
+++ b/lib/autoconf/lang.m4
@@ -201,9 +201,13 @@ AC_DEFUN([AC_LANG_CONFTEST],
 # AC_LANG_CONFTEST()(BODY)
 # ------------------------
 # Default implementation of AC_LANG_CONFTEST.
+# This version assumes that you can't inline confdefs.h into your
+# language, and as such, it is safe to blindly call
+# AC_LANG_DEFINES_PROVIDED.  Language-specific overrides should
+# remove this call if AC_LANG_SOURCE does inline confdefs.h.
 m4_define([AC_LANG_CONFTEST()],
 [cat > conftest.$ac_ext <<_ACEOF
-$1
+AC_LANG_DEFINES_PROVIDED[]$1
 _ACEOF])
 
 # AC_LANG_DEFINES_PROVIDED
diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4
index 9bd0a50..07889ae 100644
--- a/lib/autoconf/status.m4
+++ b/lib/autoconf/status.m4
@@ -373,21 +373,21 @@ dnl Define the pipe that does the substitution.
 m4_ifdef([_AC_SUBST_FILES],
 [m4_define([_AC_SUBST_CMDS], [|
 if $ac_cs_awk_getline; then
-  $AWK -f "$tmp/subs.awk"
+  $AWK -f "$ac_tmp/subs.awk"
 else
-  $AWK -f "$tmp/subs.awk" | $SHELL
+  $AWK -f "$ac_tmp/subs.awk" | $SHELL
 fi])],
 [m4_define([_AC_SUBST_CMDS],
-[| $AWK -f "$tmp/subs.awk"])])dnl
+[| $AWK -f "$ac_tmp/subs.awk"])])dnl
 
-echo 'BEGIN {' >"$tmp/subs1.awk" &&
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 _ACEOF
 
 m4_ifdef([_AC_SUBST_FILES],
 [# Create commands to substitute file output variables.
 {
   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
-  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
+  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   echo "$ac_subst_files" | sed 's/.*/F@<:@"&"@:>@="$&"/' &&
   echo "_ACAWK" &&
   echo "_ACEOF"
@@ -448,7 +448,7 @@ dnl - Writing `$ 0' prevents expansion by both the shell 
and m4 here.
 dnl
 dnl m4-double-quote most of the scripting for readability.
 [cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 _ACEOF
 sed -n '
 h
@@ -496,7 +496,7 @@ t delim
 rm -f conf$$subs.awk
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 _ACAWK
-cat >>"\$tmp/subs1.awk" <<_ACAWK &&
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   for (key in S) S_is_set[key] = 1
   FS = ""
 ]m4_ifdef([_AC_SUBST_FILES],
@@ -548,7 +548,7 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 else
   cat
-fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   || AC_MSG_ERROR([could not setup config files machinery])
 _ACEOF
 
@@ -673,28 +673,29 @@ m4_map_args_sep([$0_ADJUST_DIR(], [)], [
 m4_ifndef([AC_DATAROOTDIR_CHECKED], [$ac_datarootdir_hack
 ])dnl
 "
-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" m4_defn([_AC_SUBST_CMDS]) 
>$tmp/out \
-  || AC_MSG_ERROR([could not create $ac_file])
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" m4_defn([_AC_SUBST_CMDS]) \
+  >$ac_tmp/out || AC_MSG_ERROR([could not create $ac_file])
 
 m4_ifndef([AC_DATAROOTDIR_CHECKED],
 [test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
-  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
-  { ac_out=`sed -n '/^[[        ]]*datarootdir[[        ]]*:*=/p' "$tmp/out"`; 
test -z "$ac_out"; } &&
+  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+  { ac_out=`sed -n '/^[[        ]]*datarootdir[[        ]]*:*=/p' \
+      "$ac_tmp/out"`; test -z "$ac_out"; } &&
   AC_MSG_WARN([$ac_file contains a reference to the variable `datarootdir'
 which seems to be undefined.  Please make sure it is defined])
 ])dnl
 
-  rm -f "$tmp/stdin"
+  rm -f "$ac_tmp/stdin"
   case $ac_file in
-  -) cat "$tmp/out" && rm -f "$tmp/out";;
-  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
+  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   esac \
   || AC_MSG_ERROR([could not create $ac_file])
 dnl This would break Makefile dependencies:
-dnl  if diff "$ac_file" "$tmp/out" >/dev/null 2>&1; then
+dnl  if diff "$ac_file" "$ac_tmp/out" >/dev/null 2>&1; then
 dnl    echo "$ac_file is unchanged"
 dnl  else
-dnl     rm -f "$ac_file"; mv "$tmp/out" "$ac_file"
+dnl     rm -f "$ac_file"; mv "$ac_tmp/out" "$ac_file"
 dnl  fi
 ])# _AC_OUTPUT_FILE
 
@@ -736,7 +737,7 @@ m4_define([_AC_OUTPUT_HEADERS_PREPARE],
 # This happens for instance with `./config.status Makefile'.
 if test -n "$CONFIG_HEADERS"; then
 dnl This `||' list is finished at the end of _AC_OUTPUT_HEADERS_PREPARE.
-cat >"$tmp/defines.awk" <<\_ACAWK ||
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 BEGIN {
 _ACEOF
 
@@ -883,19 +884,19 @@ m4_define([_AC_OUTPUT_HEADER],
   if test x"$ac_file" != x-; then
     {
       AS_ECHO(["/* $configure_input  */"]) \
-      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
-    } >"$tmp/config.h" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+    } >"$ac_tmp/config.h" \
       || AC_MSG_ERROR([could not create $ac_file])
-    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
+    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
       AC_MSG_NOTICE([$ac_file is unchanged])
     else
       rm -f "$ac_file"
-      mv "$tmp/config.h" "$ac_file" \
+      mv "$ac_tmp/config.h" "$ac_file" \
        || AC_MSG_ERROR([could not create $ac_file])
     fi
   else
     AS_ECHO(["/* $configure_input  */"]) \
-      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
       || AC_MSG_ERROR([could not create -])
   fi
 dnl If running for Automake, be ready to perform additional
@@ -1624,16 +1625,21 @@ fi
 # Hook for its removal unless debugging.
 # Note that there is a small window in which the directory will not be cleaned:
 # after its creation but before its name has been assigned to `$tmp'.
+dnl For historical reasons, AS_TMPDIR must continue to place the results
+dnl in $tmp; but we swap to the namespace-clean $ac_tmp to avoid issues
+dnl with any CONFIG_COMMANDS playing with the common variable name $tmp.
 $debug ||
 {
-  tmp=
+  tmp= ac_tmp=
   trap 'exit_status=$?
-  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+  : "${ac_tmp:=$tmp}"
+  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 ' 0
   trap 'AS_EXIT([1])' 1 2 13 15
 }
 dnl The comment above AS_TMPDIR says at most 4 chars are allowed.
 AS_TMPDIR([conf], [.])
+ac_tmp=$tmp
 
 m4_ifdef([_AC_SEEN_CONFIG(FILES)], [_AC_OUTPUT_FILES_PREPARE])[]dnl
 m4_ifdef([_AC_SEEN_CONFIG(HEADERS)], [_AC_OUTPUT_HEADERS_PREPARE])[]dnl
@@ -1671,7 +1677,7 @@ do
     for ac_f
     do
       case $ac_f in
-      -) ac_f="$tmp/stdin";;
+      -) ac_f="$ac_tmp/stdin";;
       *) # Look for the file first in the build tree, then in the source tree
         # (if the path is not absolute).  The absolute path cannot be 
DOS-style,
         # because $ac_f cannot contain `:'.
@@ -1705,7 +1711,7 @@ do
     esac
 
     case $ac_tag in
-    *:-:* | *:-) cat >"$tmp/stdin" \
+    *:-:* | *:-) cat >"$ac_tmp/stdin" \
       || AC_MSG_ERROR([could not create $ac_file]) ;;
     esac
     ;;
diff --git a/tests/torture.at b/tests/torture.at
index 6855da4..e395fc1 100644
--- a/tests/torture.at
+++ b/tests/torture.at
@@ -29,6 +29,34 @@ AT_CHECK_MACRO([AC_CONFIG_COMMANDS with empty commands],
 ]])
 
 
+## --------------------------------------------- ##
+## AC_CONFIG_COMMANDS with temporary directory.  ##
+## --------------------------------------------- ##
+
+AT_CHECK_MACRO([AC_CONFIG_COMMANDS with temporary directory],
+[[AC_CONFIG_COMMANDS([foo], [
+case $ACTION in
+  use)
+    echo "$tmp" > tmpdir
+    test -d "$tmp" || AC_MSG_ERROR([No $tmp directory])
+    echo garbage-in > "$tmp/garbage-out"
+    ;;
+  corrupt)
+    echo "$tmp" > tmpdir
+    tmp=/nosuch
+    ;;
+  *) ;;
+esac
+])
+]], [
+AT_CHECK([test ! -f tmpdir])
+AT_CHECK([ACTION=use ./config.status], [], [ignore])
+AT_CHECK([test -s tmpdir && test ! -d "`cat tmpdir`"])
+AT_CHECK([ACTION=corrupt ./config.status], [], [ignore])
+AT_CHECK([test -s tmpdir && test ! -d "`cat tmpdir`"])
+])
+
+
 ## -------------------------- ##
 ## Multiple AC_CONFIG_FILES.  ##
 ## -------------------------- ##


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

[Prev in Thread] Current Thread [Next in Thread]