Andrew Tridgell
8228efdb93
r19117: I've changed the checker wrapper on snab to allow for a
...
.checker_innocent file, similar to our .valgrind_suppressions file.
2007-10-10 14:20:36 -05:00
Andrew Tridgell
48243721df
r19116: fixed a checker warning
2007-10-10 14:20:36 -05:00
Stefan Metzmacher
71fc73e11c
r19033: prepare to use the libreplace testsuite as LOCAL-REPLACE in smbtorture
...
metze
2007-10-10 14:20:30 -05:00
Stefan Metzmacher
4ed53dfafc
r19032: let the getdents replacement fail and see what the build-farm says.
...
metze
2007-10-10 14:20:30 -05:00
Stefan Metzmacher
6b5f06b059
r19029: test if opendir() on a file sets errno = ENOTDIR
...
metze
2007-10-10 14:20:30 -05:00
Stefan Metzmacher
268c8bc7ef
r19023: lets see what the build-farm says about trying the
...
getdirentries() based readdir() replacement first.
metze
2007-10-10 14:20:29 -05:00
Volker Lendecke
7b9ee1171d
r19017: Merge from Samba3:
...
Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir
returning ENOTDIR when the file opened is not a directory. Can we merge this
back into Samba4?
This includes the tabs->spaces fix requested by Stefan.
Volker
2007-10-10 14:20:28 -05:00
Stefan Metzmacher
cdcd4232d2
r18999: merge from samba3:
...
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'
metze
2007-10-10 14:20:28 -05:00
Volker Lendecke
d8bea42bb7
r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
2007-10-10 14:20:27 -05:00
Andrew Tridgell
c178c84f01
r18970: avoid strndup and strnlen on AIX. They are quite broken. See
...
http://lists.samba.org/archive/samba-technical/2004-August/036915.html
2007-10-10 14:20:25 -05:00
Stefan Metzmacher
cb334632fa
r18960: fix caching of some configure tests AC_CACHE_CHECK()
...
*needs* '_cv_' in the shell var to do caching...
metze
2007-10-10 14:20:24 -05:00
Stefan Metzmacher
f37b13cbe6
r18957: we need to include unistd.h in system/network.h because
...
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl
metze
2007-10-10 14:20:24 -05:00
Stefan Metzmacher
dfaccdca1b
r18947: overload listen() and ioctl() in socket_wrapper
...
metze
2007-10-10 14:20:23 -05:00
Andrew Tridgell
2cccede13d
r18914: this bug fix needs to be for just hpux 11.11
2007-10-10 14:20:20 -05:00
Andrew Tridgell
f7f548a1c7
r18913: an attempt to get tdb/ldb working on the HPUX box 'gwen'. This idea
...
come from Don McCall. Don may well be able to provide us with a
configure test in the future which does this in a nicer way, I just
want to see if it works now.
2007-10-10 14:20:20 -05:00
Andrew Tridgell
4bda5ed3f9
r18862: as andrew pointed our on irc, if we are going to define _TRUE, then
...
better make it be true :)
2007-10-10 14:20:17 -05:00
Andrew Tridgell
c5e2fcdc10
r18861: merge from samba3
2007-10-10 14:20:17 -05:00
Andrew Tridgell
331435daf3
r18859: finally worked out what is going wrong with immediate structures. The
...
problem is that the AC_PROG_CC_C99 macro ends up selecting either
-std=std99 or -std=gnu99 for gcc. Ironically enough, that breaks
constant structure initialisers!
So, simplest solution is to not try that configure test if we know we
are using gcc
2007-10-10 14:20:16 -05:00
Jelmer Vernooij
cc8c403de8
r18769: Re-enable __VA_ARGS__ test (but don't make it fatal)
2007-10-10 14:19:10 -05:00
Jelmer Vernooij
5e951bdeec
r18723: Update list of provided macros/defines in README.
2007-10-10 14:19:04 -05:00
Stefan Metzmacher
0c18e5d938
r18675: merge from samba3:
...
we need to define the macros the indicate we have bool
even if we have not defining bool ourself
metze
2007-10-10 14:19:01 -05:00
Stefan Metzmacher
dfb9bfba94
r18674: merge from samba3,
...
PRINTF_ATTRIBUTE seems to not work with gcc 3.0
metze
2007-10-10 14:19:01 -05:00
Andrew Tridgell
13878b7e7e
r18600: - fix shell syntax in tests for libraries
...
- add library test for libpopt
2007-10-10 14:18:55 -05:00
Andrew Tridgell
9f45f970f7
r18594: fail the configure step if the required library is not found for tdb,
...
talloc or libreplace
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
26228e4b2e
r18593: try to get the same socket_wrapper file building in samba3 and samba4
...
this is preparation of adding libreplace to samba3 later.
metze
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
e9fe725cf4
r18592: we don't need this twice
...
metze
2007-10-10 14:18:53 -05:00
Andrew Tridgell
bde18f3d5c
r18563: - move more of the header checks into lib/replace/
...
- change the test for net/if.h to do a full compile, not just an
existance test. net/if.h is completely broken on hpux, and can never
compile (it uses stuff before it defines it), so by using a
AC_TRY_COMPILE() test we avoid using net/if.h on hpux, which should
fix the build
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
888a769af5
r18549: move gcc version check to libreplace and reorder the tests a bit
...
for nicer output
metze
2007-10-10 14:18:45 -05:00
Stefan Metzmacher
1ea52d7584
r18544: - use AC_LIBREPLACE_LOCATION_CHECKS in samba4
...
- to get the ordering right we need to specify AC_CANONICAL_BUILD explicit
- add AC_CANONICAL_TARGET
metze
2007-10-10 14:18:44 -05:00
Andrew Tridgell
5a8becb1be
r18539: 'make distclean' should delete config.cache
2007-10-10 14:18:43 -05:00
Andrew Tridgell
823cd3ab35
r18535: move the AC_CANONICAL_HOST and host specific flag tests into
...
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.
Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
2007-10-10 14:18:42 -05:00
Andrew Tridgell
64b5ff171d
r18518: we replace snprintf() if its not C99, so we should also add the rep_
...
prototype in that case
2007-10-10 14:18:41 -05:00
Stefan Metzmacher
8e49dc69e7
r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro
...
metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
1f4e602ff2
r18505: add configure checks for telldir() and seekdir()
...
telldir() is different on older OpenBSD versions
seekdir() is different Tru64
tridge: OpenBSD seems to like this replacement:-)
while MAC OS 10 gets 134 runtime error:-(
lets wait what Tru64 will give
metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
ace406a36e
r18503: - _GNU_SOURCE is defined by libreplace
...
- move AS_HELP_STRING replacement to libreplace
metze
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
37f55c08c3
r18502: remove unused lines
...
metze
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
d8fdd05482
r18501: libreplace needs 'long long', bailout if not present
...
or the size is not 8 bytes or more.
samba4 doesn't need type checks anymore
metze
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
c4da3b4364
r18499: this hopefully lets the code compile on OpenBSD
...
the prototype was fixed in this revision
http://www.openbsd.org/cgi-bin/cvsweb/src/include/dirent.h.diff?r1=1.15&r2=1.16
so we'll need a configure test to find the prototype of
telldir later
metze
2007-10-10 14:18:39 -05:00
Andrew Tridgell
94b73d692b
r18493: another "blind coding" attempt at a getdirentries() based readdir()
...
replacement
2007-10-10 14:18:37 -05:00
Andrew Tridgell
343b0871b1
r18492: an attempt at replacing readdir() with something based on
...
getdirentries()
This is untested on any of the platforms that matter, so we'll just
have to see if the build farm machines like it
2007-10-10 14:18:37 -05:00
Andrew Tridgell
1b17f0f08f
r18491: fixed a warning
2007-10-10 14:18:37 -05:00
Andrew Tridgell
39d984738b
r18490: on irix _XOPEN_SOURCE_EXTENDED needs to be defined to 1, not just
...
defined
2007-10-10 14:18:37 -05:00
Andrew Tridgell
d37fc31532
r18488: we have to make sure any extensions flags also make it into
...
confdefs.h, otherwise the real build and the configure tests will not
be significant
this change fixes the build of libreplace on hpux with gcc
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
22cfc3404c
r18486: hopefully this fixes the panics on solaris
...
metze
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
95d33e4d71
r18485: include libreplace.m4 in the aclocal.m4 files
...
and use the macros in configure.ac
metze
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
e7a30456c7
r18479: start hiding libreplace configure tests behind macros
...
AC_LIBREPLACE_CC_CHECKS
AC_LIBREPLACE_BROKEN_CHECKS
and
AC_LIBREPLACE_ALL_CHECKS
which calls the 2 others
I'll add some more, so that samba3/samba4 can later call
them in the wanted order and all standalone builds
use AC_LIBREPLACE_ALL_CHECKS.
metze
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
371a33a871
r18474: - we don't need to explicit check stdint.h and inttypes.h
...
alsready done by autoconf magic
- display the sizes of all standard C types
- check for int64_t and uint64_t
metze
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
8f20d2cfe5
r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
...
- AC_HEADERS_STDC is not explicit needed
metze
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
1ae1e68fe9
r18465: much better fix for a roken specifiv problem
...
metze
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
553a90cbe2
r18463: add some more warning flags, tested with gcc 2.95.3 on SuSE 7.3
...
metze
2007-10-10 14:18:34 -05:00