Commit | Line | Data |
---|---|---|
569da30e | 1 | ?MAKE:d_setnetent_r setnetent_r_proto: Inlibc Protochk i_systypes i_netdb |
46953654 JH |
2 | ?MAKE: -pick add $@ %< |
3 | ?S:d_setnetent_r: | |
4 | ?S: This variable conditionally defines the HAS_SETNETENT_R symbol, | |
5 | ?S: which indicates to the C program that the setnetent_r() | |
6 | ?S: routine is available. | |
7 | ?S:. | |
8 | ?S:setnetent_r_proto: | |
9 | ?S: This variable encodes the prototype of setnetent_r. | |
10 | ?S:. | |
11 | ?C:HAS_SETNETENT_R: | |
12 | ?C: This symbol, if defined, indicates that the setnetent_r routine | |
13 | ?C: is available to setnetent re-entrantly. | |
14 | ?C:. | |
15 | ?C:SETNETENT_R_PROTO: | |
16 | ?C: This symbol encodes the prototype of setnetent_r. | |
17 | ?C:. | |
18 | ?H:#$d_setnetent_r HAS_SETNETENT_R /**/ | |
19 | ?H:#define SETNETENT_R_PROTO $setnetent_r_proto /**/ | |
20 | ?H:. | |
21 | ?T:try hdrs | |
22 | ?LINT:set d_setnetent_r | |
23 | ?LINT:set setnetent_r_proto | |
24 | : see if setnetent_r exists | |
25 | set setnetent_r d_setnetent_r | |
26 | eval $inlibc | |
27 | case "$d_setnetent_r" in | |
28 | "$define") | |
569da30e | 29 | hdrs="$i_systypes sys/types.h $i_netdb netdb.h" |
46953654 JH |
30 | case "$setnetent_r_proto" in |
31 | '') try='extern int setnetent_r(int, struct netent_data*);' | |
32 | ./protochk "$try" $hdrs && setnetent_r_proto=I_IS; | |
33 | ;; | |
34 | esac | |
35 | case "$setnetent_r_proto" in | |
36 | '') d_setnetent_r=undef ; echo "Disabling setnetent_r, cannot find prototype." ;; | |
37 | * ) setnetent_r_proto="REENTRANT_$setnetent_r_proto" ; echo "$try" ;; | |
38 | esac | |
39 | ;; | |
40 | esac | |
41 |