This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
A new try at what #4490 tried to accomplish.
[metaconfig.git] / U / perl / d_cmsghdr_s.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
4 ?RCS:
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
7 ?RCS:
8 ?MAKE:d_cmsghdr_s: Hasstruct i_systypes d_socket i_sysuio Setvar
9 ?MAKE:  -pick add $@ %<
10 ?S:d_cmsghdr_s:
11 ?S:     This variable conditionally defines the HAS_STRUCT_CMSGHDR symbol,
12 ?S:     which indicates that the struct cmsghdr is supported.
13 ?S:.
14 ?C:HAS_STRUCT_CMSGHDR:
15 ?C:     This symbol, if defined, indicates that the struct cmsghdr
16 ?C:     is supported.
17 ?C:.
18 ?H:#$d_cmsghdr_s HAS_STRUCT_CMSGHDR     /**/
19 ?H:.
20 ?LINT:set d_cmsghdr_s
21
22 echo " "
23 echo "Checking to see if your system supports struct cmsghdr..." >&4
24 set d_ccmsghdr_s ccmsghdr ccmsg_len $i_systypes sys/types.h $d_socket sys/socket.h $i_sysuio sys/uio.h
25 eval $hasstruct
26 case "$d_cmsghdr_s" in
27 "$define")      echo "Yup, it does."     ;;
28 *)              echo "Nope, it doesn't." ;;
29 esac
30
31