It seems that 'trap 1 2 13 15' (without any command) reset the traps
in a reasonably portable way,
I'm afraid not. For example, on Ubuntu 9.04:
$ dash
!-penguin $ trap 1 2
!-penguin $ kill -2 $$
dash: 1: not found
It's hard to argue that this is a bug, since POSIX requires this behavior.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[adding bug-autoconf]
According to Matthew Woehlke on 4/29/2009 1:07 PM:
Typically, -qlanglvl=extc99 is a better choice for GNU software.
I tried that also, but it results in configure picking '-qlanglvl=extc99
-qlanglvl=ansi', which presumably