1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

247 Commits

Author SHA1 Message Date
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
4a854fe809 r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
(This used to be commit 26228e4b2e)
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
a8fd66f91f r18549: move gcc version check to libreplace and reorder the tests a bit
for nicer output

metze
(This used to be commit 888a769af5)
2007-10-10 14:18:45 -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
182ab7107c r18539: 'make distclean' should delete config.cache
(This used to be commit 5a8becb1be)
2007-10-10 14:18:43 -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
Andrew Tridgell
eef5a6f538 r18518: we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case
(This used to be commit 64b5ff171d)
2007-10-10 14:18:41 -05:00
Stefan Metzmacher
cbb1975c8c r18514: fix configure caching of AC_VERIFY_C_PROTOTYPE() macro
metze
(This used to be commit 8e49dc69e7)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
a0e87e5dc7 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
(This used to be commit 1f4e602ff2)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
a9aa6d0c67 r18503: - _GNU_SOURCE is defined by libreplace
- move AS_HELP_STRING replacement to libreplace

metze
(This used to be commit ace406a36e)
2007-10-10 14:18:40 -05:00
Stefan Metzmacher
d184a9cc32 r18502: remove unused lines
metze
(This used to be commit 37f55c08c3)
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
8ed1176a8d 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
(This used to be commit d8fdd05482)
2007-10-10 14:18:39 -05:00
Stefan Metzmacher
ac24d381a5 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
(This used to be commit c4da3b4364)
2007-10-10 14:18:39 -05:00
Andrew Tridgell
bdfecf3c97 r18493: another "blind coding" attempt at a getdirentries() based readdir()
replacement
(This used to be commit 94b73d692b)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
ae98478385 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
(This used to be commit 343b0871b1)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
90c3e8b906 r18491: fixed a warning
(This used to be commit 1b17f0f08f)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
fd6030eac7 r18490: on irix _XOPEN_SOURCE_EXTENDED needs to be defined to 1, not just
defined
(This used to be commit 39d984738b)
2007-10-10 14:18:37 -05:00
Andrew Tridgell
6fa6c74d59 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
(This used to be commit d37fc31532)
2007-10-10 14:18:36 -05:00
Stefan Metzmacher
f80d6bc100 r18486: hopefully this fixes the panics on solaris
metze
(This used to be commit 22cfc3404c)
2007-10-10 14:18:36 -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
f6de92d47c r18463: add some more warning flags, tested with gcc 2.95.3 on SuSE 7.3
metze
(This used to be commit 553a90cbe2)
2007-10-10 14:18:34 -05:00
Stefan Metzmacher
63d284c912 r18462: make the output a bit nicer
metze
(This used to be commit 0b61ea3ed7)
2007-10-10 14:18:33 -05:00
Stefan Metzmacher
dca9292c15 r18461: - extend make showflags
- let make test trigger showflags

metze
(This used to be commit 43c1d775b9)
2007-10-10 14:18:33 -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
2c3dc50953 r18456: Tru64 doesn't have getdents() so we don't need this ifdef's...
metze
(This used to be commit 5af86eb3f0)
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
bf071a91aa r18455: check if getdents() and getdirentries() are available.
(only for the nicer configure output)

metze
(This used to be commit d53eb6bd10)
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
b270dd3fd6 r18454: this was just for debugging...
metze
(This used to be commit f9f14a9429)
2007-10-10 14:18:32 -05:00
Stefan Metzmacher
dfef2dc22f 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
(This used to be commit dd791d255c)
2007-10-10 14:18:32 -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
cac47350c2 r18444: return the correct value on error
metze
(This used to be commit d65e94fea9)
2007-10-10 14:18:30 -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
Stefan Metzmacher
764f74c565 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
(This used to be commit a5ebfd0ab7)
2007-10-10 14:18:30 -05:00
Andrew Tridgell
daff791c27 r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
two conflict on irix.
(This used to be commit 4dd949c80d)
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
26e9619c17 r18420: fix the build...
metze
(This used to be commit a7ce2c6c53)
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
68201cc76b r18419: fix include paths of the configure tests
metze
(This used to be commit 8774eeb0dc)
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
566466319e r18418: Tru64 has a different prototype for seekdir() returning int
when _OSF_SOURCE is defined

metze
(This used to be commit 5279656a15)
2007-10-10 14:18:26 -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
Andrew Tridgell
ac3e41af37 r18401: some of our code also relies on fprintf() handling C99
semantics. Easiest to just replace it if it doesn't.
(This used to be commit 5fc756a770)
2007-10-10 14:18:24 -05:00
Andrew Tridgell
513568b7e2 r18400: move MAP_FAILED define to lib/replace/system/shmem.h
(This used to be commit 025b142ff2)
2007-10-10 14:18:23 -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