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
Stefan Metzmacher
0b61ea3ed7
r18462: make the output a bit nicer
...
metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
43c1d775b9
r18461: - extend make showflags
...
- let make test trigger showflags
metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
f9bff4dbda
r18460: split out timegm test and only add timegm.o when needed
...
metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
521e94f269
r18458: move wins32 stuff to the top dir
...
metze
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
5af86eb3f0
r18456: Tru64 doesn't have getdents() so we don't need this ifdef's...
...
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
d53eb6bd10
r18455: check if getdents() and getdirentries() are available.
...
(only for the nicer configure output)
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
f9f14a9429
r18454: this was just for debugging...
...
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
dd791d255c
r18452: add configure test for a getdirentries() based replacement for broken readdir()
...
Tru64 need this, linux also has getdirentries() but the native readdir() works
but it means we can write the code on linux and when it works it may work on Tru64
too.
tridge: can you try to implement this?
metze
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
a564194817
r18451: move repdir/ into the top dir
...
metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
3cac61152e
r18450: - autogenerate the OBJ_FILES for LIBREPLACE
...
- remove samba specific stuff from libreplace
- and include the readdir replacement stuff in the standalone builds
metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
8662e14815
r18445: splitout the dlfcn related tests
...
metze
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
d65e94fea9
r18444: return the correct value on error
...
metze
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
5fddb66def
r18443: add object files only when needed
...
metze
2007-10-10 14:18:30 -05:00
Stefan Metzmacher
a5ebfd0ab7
r18442: run the os2_delete test in the testsuite too
...
that shows that Tru64 is broken...
It doesn't have getdirent() and the the replacement
code doesn't work there.
tridge: do you have any idea how to fix this?
metze
2007-10-10 14:18:30 -05:00
Andrew Tridgell
4dd949c80d
r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
...
two conflict on irix.
2007-10-10 14:18:28 -05:00