This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig: replace the _r units with autogenerated ones.
[metaconfig.git] / U / threads / d_getnetbyname_r.U
CommitLineData
46953654
JH
1?MAKE:d_getnetbyname_r getnetbyname_r_proto: Inlibc Protochk i_systypes i_dirent
2?MAKE: -pick add $@ %<
3?S:d_getnetbyname_r:
4?S: This variable conditionally defines the HAS_GETNETBYNAME_R symbol,
5?S: which indicates to the C program that the getnetbyname_r()
6?S: routine is available.
7?S:.
8?S:getnetbyname_r_proto:
9?S: This variable encodes the prototype of getnetbyname_r.
10?S:.
11?C:HAS_GETNETBYNAME_R:
12?C: This symbol, if defined, indicates that the getnetbyname_r routine
13?C: is available to getnetbyname re-entrantly.
14?C:.
15?C:GETNETBYNAME_R_PROTO:
16?C: This symbol encodes the prototype of getnetbyname_r.
17?C:.
18?H:#$d_getnetbyname_r HAS_GETNETBYNAME_R /**/
19?H:#define GETNETBYNAME_R_PROTO $getnetbyname_r_proto /**/
20?H:.
21?T:try hdrs
22?LINT:set d_getnetbyname_r
23?LINT:set getnetbyname_r_proto
24: see if getnetbyname_r exists
25set getnetbyname_r d_getnetbyname_r
26eval $inlibc
27case "$d_getnetbyname_r" in
28"$define")
29 hdrs="$i_systypes sys/types.h ${i}_netdb netdb.h"
30 case "$getnetbyname_r_proto" in
31 '') try='extern int getnetbyname_r(const char*, int, struct netent*, char*, size_t, struct netent**, int*);'
32 ./protochk "$try" $hdrs && getnetbyname_r_proto=I_CISBWRE;
33 ;;
34 esac
35 case "$getnetbyname_r_proto" in
36 '') try='extern int getnetbyname_r(const char*, struct netent*, char*, int);'
37 ./protochk "$try" $hdrs && getnetbyname_r_proto=I_CSBI;
38 ;;
39 esac
40 case "$getnetbyname_r_proto" in
41 '') try='extern int getnetbyname_r(const char*, struct netent*, struct netent_data*);'
42 ./protochk "$try" $hdrs && getnetbyname_r_proto=I_CSD;
43 ;;
44 esac
45 case "$getnetbyname_r_proto" in
46 '') d_getnetbyname_r=undef ; echo "Disabling getnetbyname_r, cannot find prototype." ;;
47 * ) getnetbyname_r_proto="REENTRANT_$getnetbyname_r_proto" ; echo "$try" ;;
48 esac
49 ;;
50esac
51