This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig: regen _r units again.
[metaconfig.git] / U / threads / d_endprotoent_r.U
CommitLineData
eed88ce0
JH
1?MAKE:d_endprotoent_r endprotoent_r_proto: Inlibc Protochk i_systypes i_unistd
2?MAKE: -pick add $@ %<
46953654 3?S:d_endprotoent_r:
eed88ce0
JH
4?S: This variable conditionally defines the HAS_ENDPROTOENT_R symbol,
5?S: which indicates to the C program that the endprotoent_r()
6?S: routine is available.
46953654
JH
7?S:.
8?S:endprotoent_r_proto:
eed88ce0 9?S: This variable encodes the prototype of endprotoent_r.
46953654
JH
10?S:.
11?C:HAS_ENDPROTOENT_R:
eed88ce0
JH
12?C: This symbol, if defined, indicates that the endprotoent_r routine
13?C: is available to endprotoent re-entrantly.
46953654
JH
14?C:.
15?C:ENDPROTOENT_R_PROTO:
eed88ce0 16?C: This symbol encodes the prototype of endprotoent_r.
46953654 17?C:.
eed88ce0
JH
18?H:#$d_endprotoent_r HAS_ENDPROTOENT_R /**/
19?H:#define ENDPROTOENT_R_PROTO $endprotoent_r_proto /**/
46953654
JH
20?H:.
21?T:try hdrs
22?LINT:set d_endprotoent_r
23?LINT:set endprotoent_r_proto
24: see if endprotoent_r exists
25set endprotoent_r d_endprotoent_r
26eval $inlibc
27case "$d_endprotoent_r" in
28"$define")
eed88ce0 29 hdrs="$i_systypes sys/types.h $i_unistd unistd.h"
46953654
JH
30 case "$endprotoent_r_proto" in
31 '') try='extern int endprotoent_r(struct protoent_data*);'
32 ./protochk "$try" $hdrs && endprotoent_r_proto=I_S;
33 ;;
34 esac
35 case "$endprotoent_r_proto" in
36 '') try='extern void endprotoent_r(struct protoent_data*);'
37 ./protochk "$try" $hdrs && endprotoent_r_proto=V_S;
38 ;;
39 esac
40 case "$endprotoent_r_proto" in
41 '') d_endprotoent_r=undef ; echo "Disabling endprotoent_r, cannot find prototype." ;;
42 * ) endprotoent_r_proto="REENTRANT_$endprotoent_r_proto" ; echo "$try" ;;
43 esac
44 ;;
45esac
46