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