This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFC] expect/configure.in NSIG revisited
- To: gdb-patches at sources dot redhat dot com
- Subject: Re: [PATCH RFC] expect/configure.in NSIG revisited
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Fri, 28 Sep 2001 16:43:47 -0700
- References: <1010518190353.ZM15917@ocotillo.lan>
I've just committed the patch below along with a regenerated configure
file.
On May 18, 12:03pm, Kevin Buettner wrote:
> Subject: [PATCH RFC] expect/configure.in NSIG revisited
> Rodney Brown's recent change to expect/configure.in needs a bit of
> tweaking for Linux/IA-64. On Linux/IA-64, it turns out that when
> _XOPEN_SOURCE is defined, NSIG won't be defined, but _NSIG will. The
> expect sources already handle this case since they define NSIG to be
> _NSIG if NSIG is not defined.
>
> I've tested the patch below on UnixWare (where I think Rodney was
> seeing problems) and Linux/IA-64. I'll wait a few days for comments
> before checking it in.
>
> Also... which version of autoconf should I be using when regenerating
> configure? I'm seeing more differences than I like using version 2.13.
>
> * configure.in (_XOPEN_SOURCE): Permit definition of _NSIG to
> define _XOPEN_SOURCE too.
>
> Index: configure.in
> ===================================================================
> RCS file: /cvs/src/src/expect/configure.in,v
> retrieving revision 1.3
> diff -u -p -r1.3 configure.in
> --- configure.in 2001/05/12 04:09:04 1.3
> +++ configure.in 2001/05/18 18:42:52
> @@ -859,6 +859,9 @@ if test -r /dev/ptmx -a "x$svr4_ptys_bro
> /* _XOPEN_SOURCE can remove NSIG on UnixWare or OSF/1. */
> #define _XOPEN_SOURCE
> #include <signal.h>
> +#ifndef NSIG
> +#define NSIG _NSIG
> +#endif
> char junk[NSIG];],
> [],
> AC_DEFINE(_XOPEN_SOURCE)
>-- End of excerpt from Kevin Buettner