+2002-02-06 Akim Demaille <akim@epita.fr>
+
+ * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Don't output empty
+ case/esac, some shells don't support it.
+ Reported by Zack Weinberg.
+ * tests/torture.at (AC_CONFIG_COMMANDS with empty commands): New.
+
2002-02-06 Akim Demaille <akim@epita.fr>
* lib/autotest/general.m4 (AT_INIT): When handling --keywords, be
Werner Lemberg wl@gnu.org
Wilfredo Sanchez wsanchez@apple.com
Wolfgang Mueller Wolfgang.Mueller@cui.unige.ch
+Zack Weinberg zack@codesourcery.com
Many people are not named here because we lost track of them. We
thank them! Please, help us keep this list up to date.
_AC_SRCPATHS(["$ac_dir"])
AC_MSG_NOTICE([executing $ac_dest commands])
- case $ac_dest in
+dnl Some shells don't like empty case/esac
+m4_ifset([AC_LIST_COMMANDS_COMMANDS],
+[ case $ac_dest in
AC_LIST_COMMANDS_COMMANDS()dnl
esac
+])dnl
done
_ACEOF
])# _AC_OUTPUT_COMMANDS
# -*- Autotest -*-
-AT_BANNER([[Testing config.status.
-
-## ---------------------------------------------------------------- ##
-## This section of torture tests is trying to make Autoconf produce ##
-## failing `configure' scripts, which must never happen. If one of ##
-## these tests ever fails, it is extremely important that you ##
-## report the failure to bug-autoconf@gnu.org. ##
-## ---------------------------------------------------------------- ##]])
-
-# Copyright 2000, 2001 Free Software Foundation, Inc.
+# Copyright 2000, 2001, 2002 (C) 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
# 02111-1307, USA.
+AT_BANNER([[Testing config.status.]])
+
+
+## ---------------------------------------- ##
+## AC_CONFIG_COMMANDS with empty commands. ##
+## ---------------------------------------- ##
+
+AT_CHECK_MACRO([AC_CONFIG_COMMANDS with empty commands],
+[[AC_CONFIG_COMMANDS([foo], [], [:])
+]])
+
+
## ------------ ##
## AC_ARG_VAR. ##
## ------------ ##
# Create a link
AT_CHECK_CONFIG_CREATION(link)
-AT_CLEANUP(header file link commandvar-header var-file var-link var-command
- input)
+AT_CLEANUP
["'$ " ' $ "'$
])
-AT_CLEANUP(configure config.status config.log config.cache)
+AT_CLEANUP
[AT_BIG_VALUE
])])
-AT_CLEANUP(dummy)
+AT_CLEANUP
## -------- ##
at_here=`pwd`
AT_CHECK([cd at-dir && $at_here/configure], [], [ignore])
-AT_CLEANUP(at-dir foo.in foo)
+AT_CLEANUP
## ----------------- ##