Commit | Line | Data |
---|---|---|
eed88ce0 JH |
1 | ?MAKE:d_endnetent_r endnetent_r_proto: Inlibc Protochk i_systypes i_unistd |
2 | ?MAKE: -pick add $@ %< | |
46953654 | 3 | ?S:d_endnetent_r: |
eed88ce0 JH |
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. | |
46953654 JH |
7 | ?S:. |
8 | ?S:endnetent_r_proto: | |
eed88ce0 | 9 | ?S: This variable encodes the prototype of endnetent_r. |
46953654 JH |
10 | ?S:. |
11 | ?C:HAS_ENDNETENT_R: | |
eed88ce0 JH |
12 | ?C: This symbol, if defined, indicates that the endnetent_r routine |
13 | ?C: is available to endnetent re-entrantly. | |
46953654 JH |
14 | ?C:. |
15 | ?C:ENDNETENT_R_PROTO: | |
eed88ce0 | 16 | ?C: This symbol encodes the prototype of endnetent_r. |
46953654 | 17 | ?C:. |
eed88ce0 JH |
18 | ?H:#$d_endnetent_r HAS_ENDNETENT_R /**/ |
19 | ?H:#define ENDNETENT_R_PROTO $endnetent_r_proto /**/ | |
46953654 JH |
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") | |
eed88ce0 | 29 | hdrs="$i_systypes sys/types.h $i_unistd unistd.h" |
46953654 JH |
30 | case "$endnetent_r_proto" in |
31 | '') try='extern int endnetent_r(struct netent_data*);' | |
32 | ./protochk "$try" $hdrs && endnetent_r_proto=I_S; | |
33 | ;; | |
34 | esac | |
35 | case "$endnetent_r_proto" in | |
36 | '') try='extern void endnetent_r(struct netent_data*);' | |
37 | ./protochk "$try" $hdrs && endnetent_r_proto=V_S; | |
38 | ;; | |
39 | esac | |
40 | case "$endnetent_r_proto" in | |
41 | '') d_endnetent_r=undef ; echo "Disabling endnetent_r, cannot find prototype." ;; | |
7e4a251e | 42 | * ) endnetent_r_proto="REENTRANT_PROTO_$endnetent_r_proto" ; echo "$try" ;; |
46953654 JH |
43 | esac |
44 | ;; | |
45 | esac | |
46 |