r4533: parsing support for:
[samba.git] / source4 / build / tests / summary.c
1 #include <stdio.h>
2
3 void exit(int);
4
5 main()
6 {
7 #if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64))
8         printf("ERROR: No locking available. Running Samba would be unsafe\n");
9         exit(1);
10 #endif
11
12 #if !(defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX))
13         printf("WARNING: No automated network interface determination\n");
14 #endif
15
16 #if !(defined(STAT_STATVFS) || defined(STAT_STATVFS64) || defined(STAT_STATFS3_OSF1) || defined(STAT_STATFS2_BSIZE) || defined(STAT_STATFS4) || defined(STAT_STATFS2_FSIZE) || defined(STAT_STATFS2_FS_DATA))
17         printf("ERROR: No disk free routine!\n");
18         exit(1);
19 #endif
20
21 #if !((defined(HAVE_RANDOM) || defined(HAVE_RAND)) && (defined(HAVE_SRANDOM) || defined(HAVE_SRAND)))
22     printf("ERROR: No random or srandom routine!\n");
23     exit(1);
24 #endif
25
26         exit(0);
27 }