octave-maintainers
[Top][All Lists]
Advanced

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

sigset_t dectection of mingw configure


From: John W. Eaton
Subject: sigset_t dectection of mingw configure
Date: Mon, 03 Dec 2007 14:36:35 -0500

On  3-Dec-2007, Tatsuro MATSUOKA wrote:

| In the mingw, after the ./configure
| in 'config.h'
| 
| #if !defined(HAVE_SIGSET_T)
| typedef int sigset_t;
| #endif
| 
| is defined.
| 
| But actually, in the mingw system, 'sigset_t' is defined in  
.../MinGW/include/sys/types.h.
| (In Cygwin, it is defined in 'signal.h'. Perhaps in Unix it is place in 
'signal.h'??)
| 
| 
| So that
| 
| #if !defined(HAVE_SIGSET_T)
| typedef int sigset_t;
| #endif
| 
| will always gives the depucated definition in the 'make'.
| 
| So I alwas comment out after ./configure, I comment out like the following,
| 
| #if !defined(HAVE_SIGSET_T)
| // typedef int sigset_t;
| #endif

Does the following patch help?

jwe


ChangeLog:

2007-12-03  John W. Eaton  <address@hidden>

        * configure.in: If available, include <sys/types.h> in test for
        sigset_t and sig_atomic_t.


Index: configure.in
===================================================================
RCS file: /cvs/octave/configure.in,v
retrieving revision 1.597
diff -u -u -r1.597 configure.in
--- configure.in        30 Nov 2007 18:53:29 -0000      1.597
+++ configure.in        3 Dec 2007 19:35:45 -0000
@@ -1195,7 +1195,11 @@
 AC_TYPE_UID_T
 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t])
 AC_CHECK_TYPES([long long int, unsigned long long int])
-AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [#include <signal.h>])
+AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [
+#if defined (HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif
+#include <signal.h>])
 
 ### How big are ints and how are they oriented?  These could probably
 ### be eliminated in favor of run-time checks.

reply via email to

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