Jelmer Vernooij
e72cec408e
r22598: Simplify includes for replace.
2007-10-10 14:51:49 -05:00
Stefan Metzmacher
99125fe76a
r22263: use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
...
and #ifndef doesn't work.
metze
2007-10-10 14:50:54 -05:00
Stefan Metzmacher
0a04ed570b
r22250: try to fix the build on aix1 in the farm
...
metze
2007-10-10 14:50:46 -05:00
Stefan Metzmacher
aba6452170
r22215: add strptime replacement to libreplace based on the patch
...
from jojowil@hvcc.edu to bug 4063
also add a testsuite for strptime()
metze
2007-10-10 14:50:38 -05:00
Stefan Metzmacher
dd83a8dad8
r22152: merge from samba3:
...
remove netgr functions from libreplace they're not used
in samba4 currently and samba3 has explicit configure checks for them.
should fix bug #4496
metze
2007-10-10 14:49:54 -05:00
Stefan Metzmacher
d6de7f2cda
r21793: add replacement for unsetenv()
...
metze
2007-10-10 14:49:27 -05:00
Jelmer Vernooij
74c4783953
r21302: Provide simple redirecting headers for standard headers.
2007-10-10 14:48:06 -05:00
Stefan Metzmacher
1b10cbb629
r20816: merge from samba3:
...
include setjmp.h via system/wait.h
metze
2007-10-10 14:43:35 -05:00
Stefan Metzmacher
d46a5efb03
r20788: - remove epoll configure checks from libreplace
...
- fix epoll configure checks for the epoll and aio
events backends
- we should only activate the epoll backend if sys/epoll.h
and epoll_create() are found
- we should only activate the aio backend if sys/epoll.h, epoll_create(),
libaio.h and io_getevents() are found
hopefully fix the build on 'bnhtest' in the build farm...
metze
2007-10-10 14:40:55 -05:00
Jelmer Vernooij
8a8e974d21
r19347: Add socketpair()
2007-10-10 14:21:14 -05:00
Stefan Metzmacher
cd03738e7c
r19234: fix configure test for net/if.h for some platforms
...
AC_LANG_SOURCE() causes to have the content of confdefs.h
in front of the file that will be compiled
metze
2007-10-10 14:20:56 -05:00
Stefan Metzmacher
7e399e607c
r19227: - add a AC_CACHE_CHECK() around the net/if.h test
...
to see (we now get some output that this test happens at all...).
- make use of AC_INCLUDES_DEFAULT
metze
2007-10-10 14:20:55 -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
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
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
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
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
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
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
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
5fddb66def
r18443: add object files only when needed
...
metze
2007-10-10 14:18:30 -05:00
Andrew Tridgell
3ddb77c1e3
r18407: test for epoll.h and select.h
2007-10-10 14:18:24 -05:00
Stefan Metzmacher
aca8a3f8c0
r18388: remove _XOPEN_SOURCE it causes trouble on BSD and IRIX
...
I need to find a way to define it only on Tru64 maybe.
metze
2007-10-10 14:18:23 -05:00
Stefan Metzmacher
0f48c8ad7c
r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
...
to get MAP_FAILED
metze
2007-10-10 14:18:22 -05:00
Stefan Metzmacher
8109eb9d28
r18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
...
sys/mman.h on Tru64
metze
2007-10-10 14:18:22 -05:00
Stefan Metzmacher
ec6365b5f1
r18381: make sure autoconf doesn't add '-O2' to CFLAGS
...
metze
2007-10-10 14:18:21 -05:00
Andrew Tridgell
03ed41515b
r18378: try enabling _OSF_SOURCE to see if it fixes the tru64 build problems -
...
thanks to volker for the suggestion
2007-10-10 14:18:21 -05:00
Andrew Tridgell
3752cc2b57
r18359: better handling of child process killing in standard mode
2007-10-10 14:18:18 -05:00
Andrew Tridgell
e251c211f7
r18350: we have to check for lstat() to keep roken happen on hpux
2007-10-10 14:18:15 -05:00
Andrew Tridgell
f3b24ea48a
r18340: some HPUX boxes don't have ptrdiff_t
2007-10-10 14:18:12 -05:00
Andrew Tridgell
e98e0a28a0
r18339: need these checks for roken.h on hpux
2007-10-10 14:18:12 -05:00
Andrew Tridgell
eb93fb8e54
r18336: autoconf tries to force on C89 mode on HP-UX, using the -Ae
...
flag. Unfortunately that flag conflicts with the -AC99 flag, and we
get lots of breakage.
This is a trick to force off the -Ae option
2007-10-10 14:18:11 -05:00
Andrew Tridgell
45a3a6a566
r18335: more portable bool tests
2007-10-10 14:18:11 -05:00
Andrew Tridgell
6ff100b266
r18332: added back in our shared mmap test code
2007-10-10 14:18:10 -05:00
Andrew Tridgell
46ab2b9971
r18289: don't check for inline till we've worked out the main compiler flags
2007-10-10 14:18:02 -05:00
Andrew Tridgell
b4b028e65e
r18288: autoconf already has a C99 test builtin!
...
If this works well, we can remove our own test
2007-10-10 14:18:02 -05:00
Andrew Tridgell
3e0f262b38
r18284: enable _XOPEN_SOURCE_EXTENDED to fix a HP-UX bug with the definition
...
of sendfile()
2007-10-10 14:18:01 -05:00
Andrew Tridgell
03f9c67c06
r18283: libreplace.m4 needs to be early in configure.ac in other packages too
2007-10-10 14:18:01 -05:00
Andrew Tridgell
4860d02565
r18280: more portability tidyups, ensuring we use libreplace everywhere
2007-10-10 14:18:00 -05:00
Andrew Tridgell
77c442cd46
r18278: move more header checks and _GNU_SOURCE into libreplace
2007-10-10 14:18:00 -05:00
Andrew Tridgell
d853dcfda7
r18221: moved more configure checks into lib/replace/
2007-10-10 14:17:52 -05:00