path: root/mcon/U/d_sigaction.U
diff options
Diffstat (limited to 'mcon/U/d_sigaction.U')
1 files changed, 61 insertions, 0 deletions
diff --git a/mcon/U/d_sigaction.U b/mcon/U/d_sigaction.U
new file mode 100644
index 0000000..7aef7b1
--- /dev/null
+++ b/mcon/U/d_sigaction.U
@@ -0,0 +1,61 @@
+?RCS: $Id: d_sigaction.U,v 1997/02/28 15:44:29 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS: $Log: d_sigaction.U,v $
+?RCS: Revision 1997/02/28 15:44:29 ram
+?RCS: patch61: created
+?MAKE:d_sigaction: Csym Setvar cat cc ccflags ldflags libs rm _o
+?MAKE: -pick add $@ %<
+?S: This variable conditionally defines the HAS_SIGACTION symbol, which
+?S: indicates that the Vr4 sigaction() routine is available.
+?C: This symbol, if defined, indicates that Vr4's sigaction() routine
+?C: is available.
+?H:#$d_sigaction HAS_SIGACTION /**/
+?LINT:set d_sigaction
+echo " "
+: see if we have sigaction
+if set sigaction val -f d_sigaction; eval $csym; $val; then
+ echo 'sigaction() found.' >&4
+ val="$define"
+ echo 'sigaction NOT found.' >&4
+ val="$undef"
+?X: Solaris 2.5_x86 with SunWorks Pro C 3.0.1 doesn't have a complete
+?X: sigaction structure if compiled with cc -Xc. This compile test
+?X: will fail then. <>
+$cat > set.c <<'EOP'
+#include <stdio.h>
+#include <sys/types.h>
+#include <signal.h>
+ struct sigaction act, oact;
+if $cc $ccflags $ldflags -o set set.c $libs >/dev/null 2>&1; then
+ :
+ echo "But you don't seem to have a useable struct sigaction." >&4
+ val="$undef"
+set d_sigaction; eval $setvar
+$rm -f set set$_o set.c