* expect/configure.in patch for NSIG
@ 2001-04-24 4:51 RDBrown
2001-05-11 20:55 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: RDBrown @ 2001-04-24 4:51 UTC (permalink / raw)
To: gdb-patches
expect/ChangeLog entry
2001-04-24 Rodney Brown <RDBrown@mira.net>
* configure.in: Only define _XOPEN_SOURCE if NSIG remains defined.
--- expect/configure.in.orig Thu Jun 22 12:21:48 2000
+++ expect/configure.in Tue Apr 24 11:07:55 2001
@@ -854,7 +854,19 @@
# On some systems (e.g., IA-64 Linux), we need to define _XOPEN_SOURCE
# in order to get a declaration for ptsname. It is safe to simply
# define that whenever we are using ptsname.
- AC_DEFINE(_XOPEN_SOURCE)
+ AC_MSG_CHECKING([for NSIG definition with _XOPEN_SOURCE])
+ AC_TRY_COMPILE([
+/* _XOPEN_SOURCE can remove NSIG on UnixWare or OSF/1. */
+#define _XOPEN_SOURCE
+#include <signal.h>
+char junk[NSIG];],
+ [],
+ AC_DEFINE(_XOPEN_SOURCE)
+ AC_MSG_RESULT(yes)
+ ,
+ AC_MSG_RESULT(no)
+ ,
+ )
# END CYGNUS LOCAL
else
AC_MSG_RESULT(no)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: expect/configure.in patch for NSIG
2001-04-24 4:51 expect/configure.in patch for NSIG RDBrown
@ 2001-05-11 20:55 ` Andrew Cagney
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2001-05-11 20:55 UTC (permalink / raw)
To: RDBrown, gcc-patches; +Cc: gdb-patches
No one as said anything so I'm checking this in. The original
discussion leading up to this occured on the gdb list.
Andrew
> expect/ChangeLog entry
> 2001-04-24 Rodney Brown <RDBrown@mira.net>
>
> * configure.in: Only define _XOPEN_SOURCE if NSIG remains defined.
>
> --- expect/configure.in.orig Thu Jun 22 12:21:48 2000
> +++ expect/configure.in Tue Apr 24 11:07:55 2001
> @@ -854,7 +854,19 @@
> # On some systems (e.g., IA-64 Linux), we need to define _XOPEN_SOURCE
> # in order to get a declaration for ptsname. It is safe to simply
> # define that whenever we are using ptsname.
> - AC_DEFINE(_XOPEN_SOURCE)
> + AC_MSG_CHECKING([for NSIG definition with _XOPEN_SOURCE])
> + AC_TRY_COMPILE([
> +/* _XOPEN_SOURCE can remove NSIG on UnixWare or OSF/1. */
> +#define _XOPEN_SOURCE
> +#include <signal.h>
> +char junk[NSIG];],
> + [],
> + AC_DEFINE(_XOPEN_SOURCE)
> + AC_MSG_RESULT(yes)
> + ,
> + AC_MSG_RESULT(no)
> + ,
> + )
> # END CYGNUS LOCAL
> else
> AC_MSG_RESULT(no)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-11 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-24 4:51 expect/configure.in patch for NSIG RDBrown
2001-05-11 20:55 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox