Stefan Metzmacher
71f6a4d05b
r20816: merge from samba3:
...
include setjmp.h via system/wait.h
metze
(This used to be commit 1b10cbb629 )
2007-10-10 14:43:35 -05:00
Stefan Metzmacher
274df78541
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
(This used to be commit d46a5efb03 )
2007-10-10 14:40:55 -05:00
Jelmer Vernooij
c2d6fad69b
r19347: Add socketpair()
...
(This used to be commit 8a8e974d21 )
2007-10-10 14:21:14 -05:00
Stefan Metzmacher
5916c6c469
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
(This used to be commit cd03738e7c )
2007-10-10 14:20:56 -05:00
Stefan Metzmacher
d067ee2105
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
(This used to be commit 7e399e607c )
2007-10-10 14:20:55 -05:00
Jelmer Vernooij
85ba30961b
r18769: Re-enable __VA_ARGS__ test (but don't make it fatal)
...
(This used to be commit cc8c403de8 )
2007-10-10 14:19:10 -05:00
Andrew Tridgell
e84ee4a6fd
r18600: - fix shell syntax in tests for libraries
...
- add library test for libpopt
(This used to be commit 13878b7e7e )
2007-10-10 14:18:55 -05:00
Andrew Tridgell
550834c9df
r18594: fail the configure step if the required library is not found for tdb,
...
talloc or libreplace
(This used to be commit 9f45f970f7 )
2007-10-10 14:18:54 -05:00
Stefan Metzmacher
5d6a38004a
r18592: we don't need this twice
...
metze
(This used to be commit e9fe725cf4 )
2007-10-10 14:18:53 -05:00
Andrew Tridgell
6e3b94d3bc
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
(This used to be commit bde18f3d5c )
2007-10-10 14:18:46 -05:00
Stefan Metzmacher
040b5b812e
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
(This used to be commit 1ea52d7584 )
2007-10-10 14:18:44 -05:00
Andrew Tridgell
fafa8c3e47
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?
(This used to be commit 823cd3ab35 )
2007-10-10 14:18:42 -05:00
Stefan Metzmacher
d08fb7b1cc
r18485: include libreplace.m4 in the aclocal.m4 files
...
and use the macros in configure.ac
metze
(This used to be commit 95d33e4d71 )
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
3de6b469cc
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
(This used to be commit e7a30456c7 )
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
8e65d33d7d
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
(This used to be commit 371a33a871 )
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
4e355095d1
r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
...
- AC_HEADERS_STDC is not explicit needed
metze
(This used to be commit 8f20d2cfe5 )
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
84a56aca15
r18465: much better fix for a roken specifiv problem
...
metze
(This used to be commit 1ae1e68fe9 )
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
4c0b19277a
r18460: split out timegm test and only add timegm.o when needed
...
metze
(This used to be commit f9bff4dbda )
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
c706319c8f
r18458: move wins32 stuff to the top dir
...
metze
(This used to be commit 521e94f269 )
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
c564344766
r18451: move repdir/ into the top dir
...
metze
(This used to be commit a564194817 )
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
0584c108db
r18450: - autogenerate the OBJ_FILES for LIBREPLACE
...
- remove samba specific stuff from libreplace
- and include the readdir replacement stuff in the standalone builds
metze
(This used to be commit 3cac61152e )
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
e18547d489
r18445: splitout the dlfcn related tests
...
metze
(This used to be commit 8662e14815 )
2007-10-10 14:18:31 -05:00
Stefan Metzmacher
9768393b3b
r18443: add object files only when needed
...
metze
(This used to be commit 5fddb66def )
2007-10-10 14:18:30 -05:00
Andrew Tridgell
a8c17f8ed3
r18407: test for epoll.h and select.h
...
(This used to be commit 3ddb77c1e3 )
2007-10-10 14:18:24 -05:00
Stefan Metzmacher
497ca8527f
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
(This used to be commit aca8a3f8c0 )
2007-10-10 14:18:23 -05:00
Stefan Metzmacher
27964734a6
r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
...
to get MAP_FAILED
metze
(This used to be commit 0f48c8ad7c )
2007-10-10 14:18:22 -05:00
Stefan Metzmacher
d40dcaebda
r18382: define _XOPEN_SOURCE to hopefully bring in MAP_FAILED in
...
sys/mman.h on Tru64
metze
(This used to be commit 8109eb9d28 )
2007-10-10 14:18:22 -05:00
Stefan Metzmacher
70028b82a9
r18381: make sure autoconf doesn't add '-O2' to CFLAGS
...
metze
(This used to be commit ec6365b5f1 )
2007-10-10 14:18:21 -05:00
Andrew Tridgell
3f51341528
r18378: try enabling _OSF_SOURCE to see if it fixes the tru64 build problems -
...
thanks to volker for the suggestion
(This used to be commit 03ed41515b )
2007-10-10 14:18:21 -05:00
Andrew Tridgell
cb487062c8
r18359: better handling of child process killing in standard mode
...
(This used to be commit 3752cc2b57 )
2007-10-10 14:18:18 -05:00
Andrew Tridgell
620a1488b3
r18350: we have to check for lstat() to keep roken happen on hpux
...
(This used to be commit e251c211f7 )
2007-10-10 14:18:15 -05:00
Andrew Tridgell
a9aa66ab32
r18340: some HPUX boxes don't have ptrdiff_t
...
(This used to be commit f3b24ea48a )
2007-10-10 14:18:12 -05:00
Andrew Tridgell
5c104c1d2f
r18339: need these checks for roken.h on hpux
...
(This used to be commit e98e0a28a0 )
2007-10-10 14:18:12 -05:00
Andrew Tridgell
2e24543b21
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
(This used to be commit eb93fb8e54 )
2007-10-10 14:18:11 -05:00
Andrew Tridgell
3f8383cd61
r18335: more portable bool tests
...
(This used to be commit 45a3a6a566 )
2007-10-10 14:18:11 -05:00
Andrew Tridgell
fc8960ee9a
r18332: added back in our shared mmap test code
...
(This used to be commit 6ff100b266 )
2007-10-10 14:18:10 -05:00
Andrew Tridgell
594781270e
r18289: don't check for inline till we've worked out the main compiler flags
...
(This used to be commit 46ab2b9971 )
2007-10-10 14:18:02 -05:00
Andrew Tridgell
5c3c8e09f9
r18288: autoconf already has a C99 test builtin!
...
If this works well, we can remove our own test
(This used to be commit b4b028e65e )
2007-10-10 14:18:02 -05:00
Andrew Tridgell
55a760ddf3
r18284: enable _XOPEN_SOURCE_EXTENDED to fix a HP-UX bug with the definition
...
of sendfile()
(This used to be commit 3e0f262b38 )
2007-10-10 14:18:01 -05:00
Andrew Tridgell
e6b457d550
r18283: libreplace.m4 needs to be early in configure.ac in other packages too
...
(This used to be commit 03f9c67c06 )
2007-10-10 14:18:01 -05:00
Andrew Tridgell
c2387587cb
r18280: more portability tidyups, ensuring we use libreplace everywhere
...
(This used to be commit 4860d02565 )
2007-10-10 14:18:00 -05:00
Andrew Tridgell
f64b2474be
r18278: move more header checks and _GNU_SOURCE into libreplace
...
(This used to be commit 77c442cd46 )
2007-10-10 14:18:00 -05:00
Andrew Tridgell
afe2fde6fd
r18221: moved more configure checks into lib/replace/
...
(This used to be commit d853dcfda7 )
2007-10-10 14:17:52 -05:00
Andrew Tridgell
24f4b6eff2
r18219: move some more portability checks out of samba4 and info lib/replace
...
(This used to be commit 50318dc55e )
2007-10-10 14:17:52 -05:00
Stefan Metzmacher
6150443532
r18152: move our AC macros into lib/replace/libreplace_macros.m4
...
and include them from there
metze
(This used to be commit 38f9e90a12 )
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
e997a767aa
r18145: rename cc_feature.m4 into libreplace_macros.m4
...
metze
(This used to be commit d0f40dd3e5 )
2007-10-10 14:17:40 -05:00
Andrew Tridgell
a983b06d37
r18129: moved the system includes into libreplace - this gives much more
...
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
(This used to be commit 77d1a468e0 )
2007-10-10 14:17:36 -05:00
Jelmer Vernooij
3e11f4c061
r18127: Add macro AC_CHECK_DECL() for systems that don't have it.
...
(This used to be commit 589a1c2509 )
2007-10-10 14:17:36 -05:00
Jelmer Vernooij
7e251d1f11
r18124: Keep right libs when looking for dl*() functions
...
(This used to be commit 12ce4cef2f )
2007-10-10 14:17:35 -05:00
Jelmer Vernooij
7619eff87d
r18122: Fix warnings related to errno declaration.
...
(This used to be commit c30abc8e49 )
2007-10-10 14:17:35 -05:00