This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig: new round of the _r units.
[metaconfig.git] / U / threads / d_endnetent_r.U
1 ?MAKE:d_endnetent_r endnetent_r_proto: Inlibc Protochk i_systypes i_netdb
2 ?MAKE:  -pick add $@ %<
3 ?S:d_endnetent_r:
4 ?S:     This variable conditionally defines the HAS_ENDNETENT_R symbol,
5 ?S:     which indicates to the C program that the endnetent_r()
6 ?S:     routine is available.
7 ?S:.
8 ?S:endnetent_r_proto:
9 ?S:     This variable encodes the prototype of endnetent_r.
10 ?S:.
11 ?C:HAS_ENDNETENT_R:
12 ?C:     This symbol, if defined, indicates that the endnetent_r routine
13 ?C:     is available to endnetent re-entrantly.
14 ?C:.
15 ?C:ENDNETENT_R_PROTO:
16 ?C:     This symbol encodes the prototype of endnetent_r.
17 ?C:.
18 ?H:#$d_endnetent_r HAS_ENDNETENT_R         /**/
19 ?H:#define ENDNETENT_R_PROTO $endnetent_r_proto    /**/
20 ?H:.
21 ?T:try hdrs
22 ?LINT:set d_endnetent_r
23 ?LINT:set endnetent_r_proto
24 : see if endnetent_r exists
25 set endnetent_r d_endnetent_r
26 eval $inlibc
27 case "$d_endnetent_r" in
28 "$define")
29         hdrs="$i_systypes sys/types.h define stdio.h $i_netdb netdb.h"
30         case "$endnetent_r_proto" in
31         '') try='int endnetent_r(struct netent_data*);'
32         ./protochk "extern $try" $hdrs && endnetent_r_proto=I_S ;;
33         esac
34         case "$endnetent_r_proto" in
35         '') try='void endnetent_r(struct netent_data*);'
36         ./protochk "extern $try" $hdrs && endnetent_r_proto=V_S ;;
37         esac
38         case "$endnetent_r_proto" in
39         '')     d_endnetent_r=undef
40                 echo "Disabling endnetent_r, cannot determine prototype." ;;
41         * )     case "$endnetent_r_proto" in
42                 REENTRANT_PROTO*) ;;
43                 *) endnetent_r_proto="REENTRANT_PROTO_$endnetent_r_proto" ;;
44                 esac
45                 echo "Prototype: $try" ;;
46         esac
47         ;;
48 esac
49