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

664 Commits

Author SHA1 Message Date
Andrew Tridgell
de2d305bfe build: add libresolv 2010-04-06 20:26:36 +10:00
Andrew Tridgell
8e81ea7c3a build: on the fly dependency checking 2010-04-06 20:26:36 +10:00
Andrew Tridgell
9e79e14e14 build: auto-remove circular dependencies 2010-04-06 20:26:36 +10:00
Andrew Tridgell
281f27d54b build: check for circular build dependencies 2010-04-06 20:26:36 +10:00
Andrew Tridgell
4f920748d4 build: death to singletons 2010-04-06 20:26:36 +10:00
Andrew Tridgell
e3dca1412b build: simpler BUILD_SUBDIR 2010-04-06 20:26:36 +10:00
Andrew Tridgell
371f9d35a7 build: more header checks 2010-04-06 20:26:36 +10:00
Andrew Tridgell
aa0476024c build: use runonce for config checks 2010-04-06 20:26:35 +10:00
Andrew Tridgell
ff9f972d55 build: added public_headers support 2010-04-06 20:26:35 +10:00
Andrew Tridgell
a3421fe6e9 build: added BUILD_SUBDIR() wrapper 2010-04-06 20:26:35 +10:00
Andrew Tridgell
5393e6c9d2 build: recognise manpages keyword 2010-04-06 20:26:35 +10:00
Andrew Tridgell
73634d6ff3 build: added autoproto stub 2010-04-06 20:26:35 +10:00
Andrew Tridgell
b1d24c7a8f build: put config.h in top dir by default 2010-04-06 20:26:35 +10:00
Andrew Tridgell
1cfc330156 build: allow override of config.h location 2010-04-06 20:26:35 +10:00
Andrew Tridgell
186e7115ab build: more developer flags 2010-04-06 20:26:35 +10:00
Andrew Tridgell
13cbd9f919 build: s4 wants config.h in include/ 2010-04-06 20:26:35 +10:00
Andrew Tridgell
4ed59b826c build: add dummy flags for auto-generated scripts 2010-04-06 20:26:34 +10:00
Andrew Tridgell
9a1cd09a10 build: added ADD_CFLAGS() and started of Samba4 build 2010-04-06 20:26:34 +10:00
Andrew Tridgell
7723519cf7 build: SAMBA_BUILD_ENV() is now in conf.* 2010-04-06 20:26:34 +10:00
Andrew Tridgell
bf4f9962f6 build: moved lib -> shared
- remove lib dep creation, it's done by waf
2010-04-06 20:26:34 +10:00
Andrew Tridgell
2b5a1cc70c build: added waf build rules for ldb 2010-04-06 20:26:34 +10:00
Andrew Tridgell
635a7ce6c1 build: some more config checks 2010-04-06 20:26:34 +10:00
Andrew Tridgell
45d23d1f53 build: added recursive library handling 2010-04-06 20:26:34 +10:00
Andrew Tridgell
04aa584c02 build: added target directory options 2010-04-06 20:26:34 +10:00
Andrew Tridgell
8f062f4a0f build: neater way to find libreplace and start on tevent waf build 2010-04-06 20:26:33 +10:00
Andrew Tridgell
f5d85a31d9 build: added some comments for tdb build 2010-04-06 20:26:33 +10:00
Andrew Tridgell
5c103b484f build: renamed autoconf.py to wafsamba.py and added SAMBA_*() functions 2010-04-06 20:26:33 +10:00
Andrew Tridgell
34b77a15d3 build: updates to waf scripts for replace and talloc 2010-04-06 20:26:33 +10:00
Andrew Tridgell
9757da515d build: a first attempt at waf build for talloc and libreplace
very rough so far
2010-04-06 20:26:33 +10:00
Kai Blin
b1192bbfc9 lib/replace: Don't use StrnCpy inside crypt.c
With this and the int32_t/int64_t change, talloc crossbuilds to android
2010-04-04 13:51:02 +02:00
Kai Blin
781a0c0846 lib/replace: use correct inttypes in crypt.c
This makes the android crossbuild slightly less broken.
2010-04-04 13:42:15 +02:00
Andrew Tridgell
08e0d94fae replace: allow memmem() with an empty string to return NULL
This is how FreeBSD behaves. We don't rely on it returning the string
in Samba.
2010-03-30 20:34:17 +11:00
Andrew Tridgell
686221eae2 s4-waf: use the libreplace strerror_r if needed 2010-03-29 21:34:29 +11:00
Andrew Tridgell
c81d2ae3c9 libreplace: strerror_r() is needed by heimdal on solaris8 2010-03-26 16:50:48 +11:00
Andrew Tridgell
a599319d0a libreplace: fixed declaration of dprintf() on FreeBSD 2010-03-24 07:11:38 +01:00
Andrew Tridgell
f3c738f819 replace: added get_current_dir_name() 2010-03-05 23:07:32 +11:00
Andreas Schneider
13e2f5f971 libreplace: Remove the obsolete signal type cast.
AC_SIGNAL_TYPE is already obsolete in autoconf. C89 requires signal
handlers to return void, only K&R returned int.
2010-02-23 12:23:45 +01:00
Brad Hards
198b17abf0 Spelling fixes for libreplace.
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-22 21:45:34 +01:00
Andrew Tridgell
f435538576 libreplace: add fdatasync() if not available 2010-02-13 22:36:11 +11:00
Andrew Tridgell
d6fb64c512 libreplace: added replacements for dprintf() and vdprintf()
these are very useful for writing files with formatted writes

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-11 21:04:13 +11:00
Stefan Metzmacher
02320cb0e2 libreplace: add check for NSS_WRAPPER_DISABLE similar to SOCKET_WRAPPER_DISABLE
metze
2010-02-08 09:59:23 +01:00
Volker Lendecke
6e7bcaa878 libreplace: Attempt to fix bug 5910, detect a broken getaddrinfo
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-08 09:59:20 +01:00
Matt Kraai
a2c95a5d96 Change uint_t to unsigned int in lib/replace
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:16 +01:00
Björn Jacke
e87adf523b Revert "libreplace: fix unused varibale warning on IRIX"
this one was broken
2010-01-26 01:16:37 +01:00
Björn Jacke
b6839e1bfd libreplace: fix unused varibale warning on IRIX 2010-01-26 00:19:10 +01:00
Volker Lendecke
a771c184b1 libreplace: Fix a C++ warning 2010-01-23 14:35:38 +01:00
Lars Müller
9e318129e0 Work around bad use of autoconf interna
Merge fix made by Andreas Schwab <schwab@linux-m68k.org>.  This change
had been in use by SUSE since 2008-07-03.
2010-01-18 11:49:01 +01:00
Andrew Tridgell
fef3c910da libreplace: some systems don't have memmem()
added rep_memmem() and a testsuite
2010-01-02 10:08:12 +11:00
Peter Rosin
590f7c262d Output %p as unsigned in snprintf replacement. 2009-12-19 19:43:52 +01:00
Andrew Tridgell
6dfd10f476 libreplace: added likely()/unlikely() macros for gcc
These macros allow the compile to better optimise code that has a lot
of if statements. I particularly want to use this for our low level
generated NDR code.
2009-09-17 15:19:25 -07:00
Björn Jacke
8703d9f5bf libreplace: white space cleanups 2009-09-15 20:26:24 +02:00
Matt Kraai
bd40feb1eb Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJ 2009-09-14 22:08:12 +02:00
Andrew Tridgell
2c846058ff LIBREPLACEOBJ now contains the full path 2009-08-24 16:30:00 +10:00
Andrew Tridgell
39cd5bbb33 make lib/replace more usable in standalone builds
This makes the lib/replace m4 work in lib/talloc as a standalone build
2009-08-24 16:30:00 +10:00
Andrew Tridgell
a5358402b2 fixed getpass m4
This allows the getpass.m4 code to work in standalone talloc builds
2009-08-24 16:30:00 +10:00
Matt Kraai
91d13b68be libreplace: undef AI_ADDRCONFIG on QNX 6.3.0 (fix bug #6630)
Some of the functions in source3/lib/util_sock.c use AI_ADDRCONFIG.  On QNX
6.3.0, this macro is defined but, if it's used, getaddrinfo will fail.  This
prevents smbd from opening any sockets.

If I undefine AI_ADDRCONFIG on such systems and allow
lib/replace/system/network.h to define it to be 0, this works around the issue.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-08-12 13:27:39 +02:00
Matt Kraai
e1a95e7961 libreplace: set SONAMEFLAG to "-Wl,-soname=" on QNX 2009-08-08 11:18:29 +02:00
Matt Kraai
dbedfc318e include unix.h if it's available 2009-07-19 15:59:03 +02:00
Björn Jacke
43887c8d71 libreplace: update library search path variables 2009-07-05 22:42:29 +02:00
Simo Sorce
f518e37c09 Add new replace check for --version-script
Allows us to pass an export files on Linux and Solaris so that we can expose
only symbols that are actually supposed to be global, and keep as local anything
else.
2009-06-15 16:31:12 -04:00
Andrew Bartlett
9b261c008a s4:heimdal: import lorikeet-heimdal-200906080040 (commit 904d0124b46eed7a8ad6e5b73e892ff34b6865ba)
Also including the supporting changes required to pass make test

A number of heimdal functions and constants have changed since we last
imported a tree (for the better, but inconvenient for us).

Andrew Bartlett
2009-06-12 07:45:48 +10:00
Andrew Tridgell
f7ba8ba5c3 try to get PICFLAG right for HP-UX with gcc 2009-06-09 14:18:58 +10:00
Timur I. Bakeyev
40178dd81e Add langinfo.h to the system/locale.h
This patch for Samba4. It's not really inspired by any real need, just
for the consistency. We define replace/system/locale.h as a generic
header, that includes all locale related headers and we are using
nl_langinfo at least in Samba3. So, it would be consistent to add yet
another locale-related header to the set of locale.h headers.

Here is the patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-08 13:20:51 +02:00
Stefan Metzmacher
bccef82516 replace: add fallback define for IOV_MAX
This hopefully fixes the build on IRIX.

metze
2009-06-08 09:40:11 +02:00
Günther Deschner
241db90c31 nss_wrapper: try to fix the build of nss_wrapper on solaris.
Guenther
2009-05-30 23:08:12 +02:00
Samuel Thibault
a0caffd446 Fix linker flags on non-Linux GNU platforms.
(e.g. Debian GNU/kFreeBSD)

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-05-16 04:05:53 +02:00
Jelmer Vernooij
6230eb94af Update copies of config.guess and config.sub. 2009-05-16 04:03:12 +02:00
Brad Hards
703d589770 Avoid using deprecated form of AC_CHECK_TYPE.
libreplace makes use of an older form of AC_CHECK_TYPE which basically
provides a fallback definition for the type if it isn't available.
http://www.gnu.org/software/hello/manual/autoconf/Obsolete-Macros.html#Obsolete-Macros
shows why this isn't a good idea (its not so important, except for pointer types).
This patch partly addresses the issue.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-04-22 10:36:47 +02:00
Jelmer Vernooij
bb0f430064 Error out at runtime when seteuid/setresuid or setegid/setresgid are not
available. This means it's possible to compile libreplace when these
functions are not available and use it, as long as this particular
function is not used.
2009-04-20 16:25:17 +02:00
Jelmer Vernooij
20e1ba1c09 Only define waitpid replacement if wait4 is available. (It isn't on
Windows.)
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
e5233ccf9e Cope with the fact that only _mkdir() exists on Windows and that it
doesn't take a mode argument.
2009-04-20 16:25:16 +02:00
Jelmer Vernooij
fbf4293d7e Move check for syslog out of libreplace to source3/ and source4/.
This should help compiling talloc on Windows.
2009-04-20 16:25:16 +02:00
Michael Adam
33d9f46674 libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGS
This fixes Samba3's double listing of -I options in CFLAGS,
since samba3's configure wraps the call to AC_LIBREPLACE_NETWORK_CHECKS
into a SAVE_CPPFLAGS="${CPPFLAGS}" .. CPPFLAGS="${SAVE_CPPFLAGS}"
sequence... :-)

Michael
2009-03-23 17:48:23 +01:00
Timur
a3d04991ef build: fix detection of netinet/ip.h on FreeBSD
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Timur
e8aa7169a6 build: format the header check for netinet/ip.h more nicely
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Stefan Metzmacher
099d6f05cd lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are available
metze
2009-03-16 11:14:52 +01:00
Stefan Metzmacher
082bea67af lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
This should fix the build on some hosts.

metze
2009-03-11 08:08:14 +01:00
Stefan Metzmacher
c21ae8d1bf libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
metze
2009-02-26 10:48:10 +01:00
Jeremy Allison
faa1100d22 More warning fixes for Solaris.
Jeremy.
2009-02-23 16:22:43 -08:00
Björn Jacke
cd6ae0de52 all BSDs use this evironment variable
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-23 09:43:23 +01:00
Björn Jacke
dc9387ec42 enable IPv6 support for NetBSD, FreeBSD
most systems include netinet/in.h via netdb.h but *BSD don't.
2009-02-11 10:19:12 -08:00
Stefan Metzmacher
412b89afba lib/replace: move MAXHOSTNAMELEN to system/network.h
Some platforms define it in netdb.h, so we should
define the replace after including metdb.h.

metze
2009-01-31 09:32:14 +01:00
Stefan Metzmacher
c28952c555 lib/replace: check if we have dirfd()
Note: we only use this internally and don't replace it by default.

metze
2009-01-30 18:42:08 +01:00
Michael Adam
86ed67f073 libreplace: fix detection of netinet/ip.h on solaris 8
(The test needs to additionally include <netinet/in_systm.h>.)

Michael
2009-01-27 15:48:54 +01:00
Michael Adam
cdab2a4127 libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
under solaris

Michael
2009-01-27 12:38:01 +01:00
Stefan Metzmacher
7fc7ee9331 lib/replace: add defines to let the callers find out if pwrite and pread are thread/fork safe
metze
2009-01-22 12:39:34 +01:00
Jeremy Allison
2234173220 Fix warnings in make test code.
Jeremy.
2009-01-02 11:38:24 -08:00
Jelmer Vernooij
bbc95fb1a8 ldb: Fix linking against tevent library (rather than events)
replace: Fix copyright for dlfcn.c.
2008-12-23 04:18:31 +01:00
Andreas Schneider
b39611c36b Fix circular dependency error with autoconf 2.6.3.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
2008-11-26 16:44:50 +01:00
Jelmer Vernooij
b327c0a2da Samba3: Remove more configure tests already done by libreplace. 2008-11-02 17:39:41 +01:00
Jelmer Vernooij
cd55fdd445 Fix return type of readlink(). 2008-11-01 04:36:24 +01:00
Jelmer Vernooij
31fa08dcbd Merge branch 'master' of /home/jelmer/samba3
Conflicts:
	lib/replace/README
	lib/replace/libreplace.m4
	lib/replace/replace.c
	source3/include/proto.h
	source3/lib/system.c
2008-11-01 04:02:47 +01:00
Jelmer Vernooij
5a56c0adf2 Use dup2() replacement from libreplace. 2008-11-01 03:58:14 +01:00
Jelmer Vernooij
6a2caa34b2 Remove sys_chroot() - libreplace already provides an alternative. 2008-11-01 03:46:09 +01:00
Jelmer Vernooij
a6d537bb6c Move sys_realpath() to libreplace. 2008-11-01 03:42:27 +01:00
Jelmer Vernooij
38d67363ac Move sys_lchown() to libreplace. 2008-11-01 03:39:20 +01:00
Jelmer Vernooij
e8cda43e17 Move sys_symlink() to libreplace. 2008-11-01 03:35:58 +01:00
Jelmer Vernooij
dbda9adfaf Move sys_readlink() to libreplace. 2008-11-01 03:33:39 +01:00
Jelmer Vernooij
bbbe6ab722 Move sys_link to libreplace. 2008-11-01 03:30:47 +01:00
Jelmer Vernooij
161d70a57a Move sys_chown() to rep_chown(). 2008-11-01 03:27:45 +01:00
Jelmer Vernooij
aafe9ca1aa Fix definition of environ on Mac OS X (bugzilla: #5412). 2008-10-27 23:39:53 +01:00
Jelmer Vernooij
9de5172a20 Remove duplicate check for volatile, move all utime-checks to
libreplace.
2008-10-27 23:23:15 +01:00
Jelmer Vernooij
4ba0453c3c Fix AC_SEARCH_LIBS_EXT() usage. 2008-10-21 18:33:38 +02:00
Jelmer Vernooij
01a902f599 Fix crypto test. 2008-10-20 18:59:45 +02:00
Jelmer Vernooij
620a27bdf1 Don't assume crypt.h is present even if crypt() is. 2008-10-20 10:38:03 +02:00
Jelmer Vernooij
974ab9d2f9 Use _EXT version of autoconf macro. 2008-10-19 15:47:36 +02:00
Jelmer Vernooij
6ba693b5de Make sure crypt libs get included. 2008-10-19 14:54:16 +02:00
Jelmer Vernooij
33032d591f Move ufc to libreplace. 2008-10-18 17:49:41 +02:00
Jelmer Vernooij
3bd73c926e Define inttypes macros if not provided by system. 2008-10-14 04:12:53 +02:00
Jelmer Vernooij
b96329f4f9 Define __STDC_FORMAT_MACROS, required for PRIu64 define (among others)
from inttypes.h.
2008-10-14 03:42:54 +02:00
Stefan Metzmacher
05525071e0 libreplace: move main() out of testsuite.c
metze
2008-09-22 00:09:12 +02:00
Simo Sorce
49b89633f1 Fix standalone builds adjusting to new relative path.
Add shared-build target to libreplace.
Useful to build multiple standalone libraries that depend on each other
without having to install them to the final install dir during the build.
2008-09-19 18:06:46 -04:00
Jelmer Vernooij
7106cd9fd5 Fix merged build. 2008-09-17 14:25:25 +02:00
Jelmer Vernooij
94855cd692 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00