added a configuration summary at the end of ./configure. It also
[samba.git] / source / tests / summary.c
1 #include <stdio.h>
2
3 main()
4 {
5 #ifndef HAVE_FCNTL_LOCK
6         printf("ERROR: No locking available. Running Samba would be unsafe\n");
7         exit(1);
8 #endif
9
10 #if !(defined(HAVE_SYSV_IPC) || defined(HAVE_SHARED_MMAP))
11         printf("WARNING: no shared memory. Running with slow locking code\n");
12 #endif
13
14 #ifdef HAVE_TRAPDOOR_UID
15         printf("WARNING: trapdoor uid system - Samba may not operate correctly\n");
16 #endif
17
18 #if !(defined(HAVE_NETMASK_IFCONF) || defined(HAVE_NETMASK_IFREQ) || defined(HAVE_NETMASK_AIX))
19         printf("WARNING: No automated netmask determination - use an interfaces line\n");
20 #endif
21
22 #if !(defined(STAT_STATVFS) || defined(STAT_STATFS3_OSF1) || defined(STAT_STATFS2_BSIZE) || defined(STAT_STATFS4) || defined(STAT_STATFS2_FSIZE) || defined(STAT_STATFS2_FS_DATA))
23         printf("ERROR: No disk free routine!\n");
24         exit(1);
25 #endif
26
27         exit(0);
28 }