From ef2e26c91b80556af033d3335e55f5dfa6fff31d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Aug 2003 01:53:07 +0000 Subject: first public release of samba4 code (This used to be commit b0510b5428b3461aeb9bbe3cc95f62fc73e2b97f) --- source4/build/tests/summary.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 source4/build/tests/summary.c (limited to 'source4/build/tests/summary.c') diff --git a/source4/build/tests/summary.c b/source4/build/tests/summary.c new file mode 100644 index 0000000000..d3708c236c --- /dev/null +++ b/source4/build/tests/summary.c @@ -0,0 +1,30 @@ +#include + +main() +{ +#if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64)) + printf("ERROR: No locking available. Running Samba would be unsafe\n"); + exit(1); +#endif + +#if !(defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX)) + printf("WARNING: No automated network interface determination\n"); +#endif + +#if !(defined(USE_SETEUID) || defined(USE_SETREUID) || defined(USE_SETRESUID) || defined(USE_SETUIDX)) + printf("ERROR: no seteuid method available\n"); + /* REWRITE: exit(1); */ +#endif + +#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)) + printf("ERROR: No disk free routine!\n"); + exit(1); +#endif + +#if !((defined(HAVE_RANDOM) || defined(HAVE_RAND)) && (defined(HAVE_SRANDOM) || defined(HAVE_SRAND))) + printf("ERROR: No random or srandom routine!\n"); + exit(1); +#endif + + exit(0); +} -- cgit From 8dfd1daf30bcbf9bceeaaf3b5eddf24b9e513a6f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 19 Aug 2004 07:59:08 +0000 Subject: r1905: add -Werror-implicit-function-declaration with --enable-developer metze (This used to be commit 11495a42b97b62b1f54cfb98909e937d370fdd4a) --- source4/build/tests/summary.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/build/tests/summary.c') diff --git a/source4/build/tests/summary.c b/source4/build/tests/summary.c index d3708c236c..8c318fe7d5 100644 --- a/source4/build/tests/summary.c +++ b/source4/build/tests/summary.c @@ -1,5 +1,7 @@ #include +void exit(int); + main() { #if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64)) -- cgit From aeb9d1e1adb4a7d3c5745b9c5a6906cdc7a8ccb0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 07:44:15 +0000 Subject: r2656: moved the seteuid configure tests into the posix backend (these tests don't actually work yet, that will come later) (This used to be commit 46b790c19da25ba88d29f555f828688bb05e531d) --- source4/build/tests/summary.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source4/build/tests/summary.c') diff --git a/source4/build/tests/summary.c b/source4/build/tests/summary.c index 8c318fe7d5..b6384a4083 100644 --- a/source4/build/tests/summary.c +++ b/source4/build/tests/summary.c @@ -13,11 +13,6 @@ main() printf("WARNING: No automated network interface determination\n"); #endif -#if !(defined(USE_SETEUID) || defined(USE_SETREUID) || defined(USE_SETRESUID) || defined(USE_SETUIDX)) - printf("ERROR: no seteuid method available\n"); - /* REWRITE: exit(1); */ -#endif - #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)) printf("ERROR: No disk free routine!\n"); exit(1); -- cgit From 4d7e4c80580f9902339680cecee457460fe85218 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 17 Jan 2005 04:07:33 +0000 Subject: r4794: - disabled the ntacl command line utilities until they are rewritten to use the same acl format as we use in pvfs (and hopefully use common code too) - removed a lot of old cruft from our autoconf tests. This may well break some builds, but then we can fix them properly instead of the "if solaris version 5.1.2" crap This was prompted by someone sending me solaris 10 patches that patched the configure script with if statements for several more versions of solaris to check for and do special stuff. That is just silly. (This used to be commit 1ea59d1146f041e9befbb435e901c6d7d497c52c) --- source4/build/tests/summary.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source4/build/tests/summary.c') diff --git a/source4/build/tests/summary.c b/source4/build/tests/summary.c index b6384a4083..6fbe46b87b 100644 --- a/source4/build/tests/summary.c +++ b/source4/build/tests/summary.c @@ -4,11 +4,6 @@ void exit(int); main() { -#if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64)) - printf("ERROR: No locking available. Running Samba would be unsafe\n"); - exit(1); -#endif - #if !(defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX)) printf("WARNING: No automated network interface determination\n"); #endif -- cgit From 026d67675ca86e2e0c8ca412bb2f22698d26c158 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 Dec 2007 08:34:51 +0100 Subject: r26421: build: we now have HAVE_IFACE_GETIFADDRS as valid interface detection code metze (This used to be commit fcc813d399965b51853e5790d328e4cc9668a032) --- source4/build/tests/summary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/build/tests/summary.c') diff --git a/source4/build/tests/summary.c b/source4/build/tests/summary.c index 6fbe46b87b..95fa1cbae9 100644 --- a/source4/build/tests/summary.c +++ b/source4/build/tests/summary.c @@ -4,7 +4,7 @@ void exit(int); main() { -#if !(defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX)) +#if !(defined(HAVE_IFACE_GETIFADDRS) || defined(HAVE_IFACE_IFCONF) || defined(HAVE_IFACE_IFREQ) || defined(HAVE_IFACE_AIX)) printf("WARNING: No automated network interface determination\n"); #endif -- cgit