1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

1146 Commits

Author SHA1 Message Date
Jeremy Allison
1cae2ac905 Add st_birthtime and friends for accurate create times on systems that support it (*BSD and MacOSX).
Should have done this ages ago, sorry.
Jeremy.
(This used to be commit 4c3a955890)
2008-08-27 15:06:14 -07:00
Andrew Tridgell
d9f61dbdc9 Avoid a race condition in glibc between AIO and setresuid().
See this test: http://samba.org/~tridge/junkcode/aio_uid.c

The problem is that setresuid() tries to be clever about threads, and
tries to change the euid of any threads that are running. If a AIO read
or write completes while this is going on then the signal from the thread
where the IO completed is lost, as it gets -1/EPERM from rt_sigqueueinfo()

The simplest fix is to try to use setreuid() instead of setresuid(),
as setreuid() doesn't try to be clever. Unfortunately this also means
we must use become_root()/unbecome_root() in the aio code.
(This used to be commit 56c5a6f024)
2008-08-26 14:39:42 +02:00
Jeff Layton
2c96b1fd5b cifs.upcall: enable building by default on linux
When building on linux, default to building cifs.upcall. Throw a
warning if ADS support is disabled or keyutils isn't installed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit d8018d15f0)
2008-08-21 19:41:14 -04:00
Michael Adam
f14e833c53 libsmbclient examples: add Makefile.internal.in for building from a samba source
Without needing to install libsmbclient to /usr/local/samba first.

Michael
(This used to be commit f0e47bce2e)
2008-08-21 12:16:05 +02:00
Michael Adam
762439025a Revert "Add a gpfs_prefetch module"
This reverts commit fc9b30bed2.

Sorry, this got pushed by accident:

"This can not go upstream yet because it uses the non-GPL libgpfs."

Michael
(This used to be commit 26a3cf0be9)
2008-08-14 17:46:28 +02:00
Volker Lendecke
b0935e5663 Add a gpfs_prefetch module
This can not go upstream yet because it uses the non-GPL libgpfs. So it will
not be compiled by default and will not be included in the SOFS RPMs. But upon
Sven's request, we include it in the git tree and the source RPMs, so that it
can be built for in-house tests.
(This used to be commit fc9b30bed2)
2008-08-13 11:54:05 +02:00
Günther Deschner
9d88cc3394 netapi: generate the netapi testsuite makefile.
Guenther
(This used to be commit a2247a5b19)
2008-08-11 19:02:28 +02:00
Jeremy Allison
6d99eedafc Try and fix the build for systems that don't have krb5_auth_con_set_req_cksumtype().
Jeremy.
(This used to be commit 8598e7b06e)
2008-08-08 15:15:36 -07:00
Jeremy Allison
e8c7ff3e88 Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. Some
work by me and advice by Love.
Jeremy.
(This used to be commit ecc3838e4c)
2008-08-08 14:32:15 -07:00
Zach Loafman
472519eb69 Check for f_frsize when using statvfs
Add a configure test for the availability of f_frsize in struct statvfs
(for broken platforms that define statvfs but still have
f_bsize/f_iosize). Also add sys/types.h to the other struct statvfs test
(again, some platforms need it).
(This used to be commit 591bf1d15f)
2008-07-22 15:00:48 +02:00
Zach Loafman
45bbad9ca0 Add --enable-picky-developer
This adds an --enable-picky-developer option that will halt compilation
on warnings. Yes, this could be handled by a direct Makefile change, but
people should be encourage to do it!
(This used to be commit 10a2ab4077)
2008-07-22 15:00:48 +02:00
Jeremy Allison
cdabee2bb4 This patchset comprises a number of cleanups for the cifs upcall
binary. The biggest change is that it renames it from cifs.spnego
to cifs.upcall since the cifs.spnego name really isn't applicable
anymore.

It also fixes a segfault when the program is run without any args
and adds a manpage. Comments and/or suggestions appreciated.

This set should apply cleanly to the 3.3 test branch.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Jeremy.
(This used to be commit c633f10d9e)
2008-07-16 17:27:05 -07:00
Zach Loafman
55f676550a Fix realpath() check so that it doesn't generate a core() when it fails.
(This used to be commit 5fdbf89c89)
2008-07-10 15:24:57 -07:00
Michael Adam
373c315788 build: remove library-versions.in - it is not used any more.
Michael
(This used to be commit e2699b7f86)
2008-07-07 20:34:04 +02:00
Michael Adam
576d1dc66d build: set SONAME version of libraries from configure, not using library-versions
This sets the library versions (previously gotten from library-versions
file during make) already at configure time.

For library "foo", the version is stored in the LIBFOO_SOVER configure
variable.  For all libraries except libwbclient, this is done through the
call of SMB_LIBRARY().

NOTE: Currently the versions are hard-coded in the SMB_LIBRARY() calls in
configure.in, but this change makes it easier to retrieve the version from
the libraries source dir at configure time, e.g. for talloc and tdb.

Michael
(This used to be commit 3c300f9f8c)
2008-07-07 20:34:04 +02:00
Michael Adam
d51180e4b8 build: handle libaddns by SMB_LIBRARY() and correctly create SONAME file.
Create .so file as a symlink.

Michael
(This used to be commit bbf665ad57)
2008-07-07 20:34:03 +02:00
Michael Adam
fc54fc52f4 build: handle libsmbsharemodes by SMB_LIBRARY() and correctly create SONAME file.
Create libsmbsharemodes.so as a symlink.

Michael
(This used to be commit 1157048146)
2008-07-07 20:34:02 +02:00
Michael Adam
1b20cf1324 build: handle libsmbclient by SMB_LIBRARY() and correctly create soname file.
Create libsmbclient.so as a symlink to libsmbclient.so.0.

Michael
(This used to be commit c463bd0cb9)
2008-07-07 20:34:02 +02:00
Karolin Seeger
006515d889 Revert "build: add symbol versioning when we build with gnu ld"
This reverts commit cb5492978b.

For more information, please have a look at the discussion on
samba-technical starting with [1].

[1] http://lists.samba.org/archive/samba-technical/2008-June/059511.html

Karolin
(cherry picked from commit 1e5aeb96f9)
(This used to be commit d06baf0e74)
2008-06-27 13:46:26 +02:00
Andrew Bartlett
086de4ddb5 Without stdlib.h we don't get a prototype for free().
This test fails if GCC emits any warnings (presumably to detect the
function propertly), but unless we include this message then free()
fail.  Why we need to call free in a configure test is probably
something to blame on valgrind...

Andrew Bartlett
(This used to be commit d013f6fadc)
2008-06-17 22:45:29 +10:00
Volker Lendecke
e7530f567c Use the correct cups-devel test for HAVE_IPRINT also
(This used to be commit a42d7e1146)
2008-06-14 11:10:13 +02:00
Volker Lendecke
c08611a6c5 Correctly check for presence of cups-devel
On SuSE at least cups-config belongs to cups-libs which does not contain the
headers which are in cups-devel.
(This used to be commit 2408d2493f)
2008-06-14 10:39:25 +02:00
Volker Lendecke
67f3ee618b Add -brtl to the AIX linker flags
Thanks to William Jojo
(cherry picked from commit 74b195b544)
(This used to be commit 5ffad12d68)
2008-06-12 13:17:37 +02:00
Stefan Metzmacher
b19587b464 configure: we require autoconf 2.54
I've tested with autoconf from 2.53 to 2.62.

metze
(This used to be commit a268a6d251)
2008-06-09 11:05:06 +02:00
Stefan Metzmacher
4461f0a6ee configure: fix warnings with autoconf-2.62 rename SMB_BUILD_ => samba_cv_
AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(This used to be commit 89663ab4d1)
2008-06-09 11:04:56 +02:00
Stefan Metzmacher
7f70c126b2 configure: fix warnings with autoconf-2.62 rename samba_stat_hires => samba_cv_stat_hires
AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(This used to be commit 426b1e36e2)
2008-06-09 11:04:50 +02:00
Stefan Metzmacher
2c0360fe26 configure: fix warnings with autoconf-2.62 rename smb_krb5_ => smb_krb5_cv_
AC_CACHE_VAL() variables must contain _cv_ to be cached.

metze
(This used to be commit 38a03d61ec)
2008-06-09 11:04:45 +02:00
Stefan Metzmacher
ad90333e89 build: make sure LIBWBCLIENT_*_TARGET is never empty
This should fix the build with non gnu make

metze
(cherry picked from commit 401a0c84fe)
(This used to be commit 36ba31e39b)
2008-05-23 17:23:46 +02:00
Stefan Metzmacher
7abda3fb9d build: add symbol versioning when we build with gnu ld
There's --enable-symbol-versioning=no to disable it.

metze
(cherry picked from commit cb5492978b)
(This used to be commit a739652d94)
2008-05-23 17:19:57 +02:00
Stefan Metzmacher
3d6911afca build: autogenerate exports/libwbclient.syms
metze
(cherry picked from commit 8e0fcd583a)
(This used to be commit 17ce137754)
2008-05-23 17:19:56 +02:00
Stefan Metzmacher
ef0dd8850b build: pass .syms extention via @SYMSEXT@ from configure
metze
(cherry picked from commit efb23fdce7)
(This used to be commit 3bf5a047e3)
2008-05-23 17:19:55 +02:00
Stefan Metzmacher
033ec7fbf5 configure: samba_cv_unixsocket was renamed into libreplace_cv_HAVE_UNIXSOCKET
metze
(This used to be commit d53b589deb)
2008-05-22 13:02:59 +02:00
Stefan Metzmacher
3b6b2f26fc configure: remove HAVE_IPV6 test as LIBREPLACE_NETWORK_CHECKS already have this
metze
(This used to be commit e94ff756be)
2008-05-22 13:02:59 +02:00
Kai Blin
00f6ad7b5a net: Split out "net afs"
(This used to be commit 3f10527f79)
2008-05-20 14:27:56 +02:00
Kai Blin
10f9a60e39 configure: Fix comment to match the current iconv check.
(This used to be commit 5d9963479f)
2008-05-18 02:27:45 +02:00
Stefan Metzmacher
12dc451163 configure: make use of LIBREPLACE_NETWORK_LIBS instead of redoing the tests
metze
(This used to be commit 6b782b5897)
2008-05-17 13:18:34 +02:00
Stefan Metzmacher
5bb40d07f8 configure: remove some header checks which are already done by AC_LIBREPLACE_NETWORK_CHECKS
metze
(This used to be commit d81e58597e)
2008-05-17 13:18:33 +02:00
Stefan Metzmacher
b800fad625 configure: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET and rely on libreplace
metze
(This used to be commit ca163ff81a)
2008-05-17 13:18:32 +02:00
Stefan Metzmacher
ab90fc9a56 configure: remove unused configure check for HAVE_WORKING_AF_LOCAL
metze
(This used to be commit dddc4f0cef)
2008-05-17 13:18:31 +02:00
Stefan Metzmacher
fc83dd6fd6 libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba
metze
(This used to be commit 0c9b24e1e7)
2008-05-16 08:51:47 +02:00
Kai Blin
7c4c5e5f84 configure: Kill linker warnings about 32bit libs on 64bit Linux.
(This used to be commit 9a40cbd66f)
2008-05-14 15:23:41 +02:00
Jeremy Allison
82572cfd43 Enable tests for splice on Linux. Add a static (vl, I hate this)
so we can detect broken Linux recvfile splice and correctly fall
back.
Jeremy.
(This used to be commit ec2d301a7a)
2008-05-06 15:44:39 -07:00
Günther Deschner
fb623c942d pam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).
Guenther
(This used to be commit d8372f73b9)
2008-04-30 18:34:29 +02:00
Michael Adam
5a4db7eacb configure: fix a comment typo
Michael
(This used to be commit af2a1f15e6)
2008-04-22 14:13:48 +02:00
Björn Jacke
25f9ca7b05 add AC_TRY_RUN_STRICT support for Sun Studio compiler
(This used to be commit ce7025df29)
2008-04-16 16:40:44 +02:00
Gerald W. Carter
72556d4c8c Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
(This used to be commit 359921acd4)
2008-04-16 15:48:00 +02:00
Günther Deschner
de013be0b6 gpo: add scripts plugin.
Guenther
(This used to be commit cd6388f040)
2008-04-13 17:52:11 +02:00
Michael Adam
7d7b420ad1 libnetapi: fix dependency problem by linking libnetapi statically (internally)
This is a workaround until we have isolated enough internal libraries
as shared libraries.

Michael
(This used to be commit 8a87e40270)
2008-04-12 02:17:46 +02:00
Michael Adam
1cd7e36ace configure: be more portable, use 'printf "%s"' instead of "echo -n"
Michael
(This used to be commit 06dfb0cf7c)
2008-04-01 16:16:55 +02:00
Gerald (Jerry) Carter
eeeb4aa931 Fix libtdb some to move back towards allowing out of tree builds
Remaining problem is that not all *.syms linker scripts are generated
so the LD command needs to look in a single place.  Out of tree
builds now work but report write access to the source tree in order
to create the $(srcdir)/expotrs/libtdb.sysms file.
(This used to be commit 6e9287c5c3)
2008-03-24 17:25:13 -05:00
Günther Deschner
5fdf4b8f4a Remove remaining old srvsvc client and server rpc code entirely.
Guenther
(This used to be commit a5f0186f70)
2008-03-21 04:16:22 +01:00
Volker Lendecke
90300631eb Build aio_fork by default
... only when --with-aio-support and we can pass file descriptors
(This used to be commit fdf4cd99cc)
2008-03-08 12:31:12 +01:00
Simo Sorce
9e83c9159e Enable use of Relocations Read-Only, if supported, for enhanced security.
(This used to be commit c20c5f0821)
2008-03-07 11:33:26 -05:00
Günther Deschner
d42e415b40 Revert "Make sure to generate pkgconfig files for libtdb and libtalloc."
This uses incorrect version numbers for tdb and talloc.

Guenther

This reverts commit df97fb019b.
(This used to be commit ead849949b)
2008-03-05 16:31:04 +01:00
Günther Deschner
cb94b313ba Make sure to generate pkgconfig files for libtdb and libtalloc.
Guenther
(This used to be commit df97fb019b)
2008-03-05 15:40:23 +01:00
Günther Deschner
485b070eb8 Add "registry" Group Policy extension.
Guenther
(This used to be commit 4e93301ca4)
2008-02-29 17:25:28 +01:00
Günther Deschner
41efa5ca45 Add Group Policy extension infrastructure.
Guenther
(This used to be commit 6d543b1a1a)
2008-02-29 17:07:57 +01:00
Volker Lendecke
695b6662ab Attempt to fix the build
(This used to be commit 364d87a5e4)
2008-02-29 10:17:35 +01:00
Stefan Metzmacher
85b7f90c47 configure: only build vfs_syncops if dirfd() is available
This hopefully fixes the build on HP-UX.

metze
(This used to be commit 5fb7533e37)
2008-02-29 09:58:37 +01:00
Stefan Metzmacher
8657066f3a configure: Remove lib/repdir.c and related stuff
It was only used in configure, but lib/replace already
has a much better version of it.

metze
(This used to be commit c9b60b75b4)
2008-02-29 09:48:24 +01:00
Volker Lendecke
18206a4cb5 Add vfs_aio_fork
This is used for two purposes:

First, I'm using it to test the async I/O code. In the forked process it is
pretty easy to delay a reply for a random amount of time. See the
BUILD_FARM_HACKS snippet.

Second, there are systems around that claim to have Posix AIO but which is
broken. This might be some help for those systems.

Also add tests how to pass file descriptors
(This used to be commit b0e52cecf2)
2008-02-29 09:47:53 +01:00
Karolin Seeger
e1b32594c7 Remove smbmount.
Karolin
(This used to be commit 5fbd98f706)
2008-02-28 15:53:43 +01:00
Michael Adam
df3939da94 configure: put swat-part of config into m4-include file of its own.
Michael
(This used to be commit 622667c079)
2008-02-26 13:56:12 +01:00
Volker Lendecke
43491db17c Fix inotify detection
Bug 5271 -- thanks to Tiziano Müller
(This used to be commit 4a1a138b0f)
2008-02-25 12:58:56 +01:00
Michael Adam
658b72916f Fix aix-build of libtalloc.so by exporting all necessary symbols.
Use -bexpfull instead of -bexpall for LDSHFLAGS to also export
symbols starting with "_". This exports all necessary symbols
from libtalloc.so.

Michael
(This used to be commit 213ba3a719)
2008-02-24 01:00:39 +01:00
Michael Adam
0d7f555335 Move the definition of SMB_LIBRARY to aclocal.m4.
Michael
(This used to be commit 4724b13ed8)
2008-02-21 14:07:45 +01:00
Michael Adam
d29c816b61 configure: Abstract configuration of internal libs into an m4 macro.
New subsystem libraries can now be added by specifying SMB_LIBRARY(name).

Michael
(This used to be commit 54d73769c4)
2008-02-21 12:59:42 +01:00
Volker Lendecke
21387a4c5e fix typo
(This used to be commit 2d51bf67fc)
2008-02-21 11:40:22 +01:00
Michael Adam
63592eebbb Remove check for secure mkstemp from configure.in.
It has moved to libreplace.

Michael
(This used to be commit b5e894cb3b)
2008-02-21 10:27:56 +01:00
Michael Adam
48302a28a9 Remove mmap check from configure.in
It is available in libreplace.

Michael
(This used to be commit 310c121faf)
2008-02-21 10:27:56 +01:00
Michael Adam
d2e63399d3 configure: add --enable-shared-libs to control overall internal use of shared libs.
To disable internal use of shared libraries altogether (as opposed to
disabling use of single shared libs by --with-static-libs=LIBS), use
this new configure parameter --disable-shared-libs.

Michael
(This used to be commit 63bff18f3f)
2008-02-20 23:38:27 +01:00
Michael Adam
443f8ed260 configure: Move assemblage of samba version strings to m4 include file.
Michael
(This used to be commit 8b220717e8)
2008-02-20 21:33:24 +01:00
Michael Adam
e0f4573de2 Remove checks for ino_t, loff_t, offset_t, and comparison_fn_t from configure.in.
These tests are in libreplace.

Michael
(This used to be commit 2e6b66eda4)
2008-02-20 21:33:24 +01:00
Michael Adam
4f5a888067 Remove tests for vsnprintf snprintf asprintf vasprintf and va_copy from configure.
These are tested in libreplace.

Michael
(This used to be commit 9b9495d367)
2008-02-20 17:26:39 +01:00
Michael Adam
9e5be586af Remove the getifaddrs checks from configure.in: they are now in lib/replace.
Michael
(This used to be commit 53c9098253)
2008-02-20 00:44:40 +01:00
Michael Adam
31a356420d configure: Use SAMBA_CONFIGURE_CPPFLAGS for AC_LIBREPLACE_BROKEN_CHECKS.
To fix the build (make test) after merging libreplace changes.

Michael
(This used to be commit af5ec88ece)
2008-02-20 00:17:31 +01:00
Michael Adam
27b711414f configure: Move path (and debug) checks to an m4 include file check_path.m4.
This is inspired by metze's check_path.m4 of Samba4.

Michael
(This used to be commit d1db2b78c9)
2008-02-19 17:39:40 +01:00
Michael Adam
07f4f95b14 build: change selftest_prefix from ./ to ./st .
It was used as ${selftest_prefix}/st anyways...

Michael
(This used to be commit 1f3bfa024d)
2008-02-19 17:39:40 +01:00
Michael Adam
3b3b80a365 configure: move debug check to developer check
...thereby grouping test checks and debug/developer checks together, respectively.

Michael
(This used to be commit bf1bb2c090)
2008-02-19 17:39:40 +01:00
Michael Adam
53d5624205 configure: Also set debug=yes for --enable-developer and --enable-krb5developer.
Michael
(This used to be commit ad45d056df)
2008-02-19 17:39:40 +01:00
Michael Adam
12239ef505 configure: add default for developer and krb5developer
Michael
(This used to be commit e9b06ac113)
2008-02-19 17:39:40 +01:00
Michael Adam
b40d1b131b configure: move more developer/test related checks up before the compiler checks.
Michael
(This used to be commit 05e3095e21)
2008-02-19 17:39:40 +01:00
Michael Adam
5073bd1349 Move the --enable-debug check up above all compiler checks.
Michael
(This used to be commit fb74f8dd6a)
2008-02-19 17:39:40 +01:00
Michael Adam
90ea8ae9b1 configure: Introduce "debug" variable set to yes by --enable-debug.
Michael
(This used to be commit b33db84c22)
2008-02-19 17:39:40 +01:00
Michael Adam
86e758e246 configure: move AC_SUBST's of certain directories to the corresponding checks.
Michael
(This used to be commit 28c862704c)
2008-02-19 17:39:40 +01:00
Michael Adam
c666d5b384 Move AC_ENABLE_SHARED and AC_DISABLE_STATIC to a more appropriate place.
I have to investigate the effect of these and evaluate the need of
their presence. For now establish more reasonable grouping.

Michael
(This used to be commit 3ba8fa1c4b)
2008-02-19 17:39:40 +01:00
Michael Adam
1f67a36de3 configure.in: move definition of build dir up.
Michael
(This used to be commit 35327e8fee)
2008-02-19 17:39:39 +01:00
Günther Deschner
8db780ac8f Yippie! LSARPC server-side migration to pidl finished.
Guenther
(This used to be commit aa7023b88d)
2008-02-19 01:23:05 +01:00
Günther Deschner
d8fcfb1615 Build the generated ntsvcs server (not at all useable yet).
Guenther
(This used to be commit acce1092d9)
2008-02-17 23:03:22 +01:00
Günther Deschner
b4989afbab YES! NETLOGON rpc server side migration to pidl finished.
Guenther
(This used to be commit 7845a0d9a8)
2008-02-16 14:53:45 +01:00
Michael Adam
8e3ae7baaf Add support for building and using shared and static libtdb library.
This should work with m4_include(lib/tdb/libtdb.m4) like already
done with talloc, but currently this does not work (yet) - tdb
code has to be merged from s4 before that.

Michael
(This used to be commit e92fdf6b20)
2008-02-14 14:17:57 +01:00
Michael Adam
879b32806d Fix a typo.
This had no negative side effect since currently TALLOC_OBJ
only consists of one object.

Michael
(This used to be commit 9cf3be8520)
2008-02-14 14:15:23 +01:00
Michael Adam
f292f3de3f Try and fix the Darwin build with dynamic libs.
Golly gosh, this one took me quite some time to figure out!
Hopefully, I did not introduce any typos copying...

Michael
(This used to be commit 85ca2c9edb)
2008-02-14 00:09:23 +01:00
Michael Adam
adcbc2439c Remove --enable-libwbclient-shared , use --with-static-libs=libwbclient instead.
Use the more general mechanism.
The enable_developer-check is preserved, of course.

Michael
(This used to be commit 4321d5aba7)
2008-02-13 15:11:55 +01:00
Michael Adam
8a8c71e08e Use --with-static-libs=libtalloc instead of --with-static-libs=talloc
for consistency (and similar for all other examples).

Michael
(This used to be commit 198768a832)
2008-02-13 15:11:23 +01:00
Michael Adam
574dce7c0e Link in libnetapi as shared or static library (same mechanism as talloc).
This, too, can be turned to static linking by providing the configure
parameter --with-static-libs=netapi.

Michael
(This used to be commit a4c773de0f)
2008-02-13 14:45:13 +01:00
Michael Adam
1fee36432b Add -L./bin to LDFLAGS when building shared libs.
Formerly this was only needed for libwbclient, but now that we start
using more shared libs internally, this is needed more globally
to support linking internal libs dynamically on systemy without winbindd.

Michael
(This used to be commit ec79357218)
2008-02-13 13:48:51 +01:00
Michael Adam
ee9d033e65 Change hand written configure help strings to use AS_HELP_STRING().
Michael
(This used to be commit d950174bcb)
2008-02-13 11:03:50 +01:00
Michael Adam
5566b3372b Use AS_HELP_STRING instead of (deprecated) AC_HELP_STRING.
Existence is guaranteed by libreplace.

Michael
(This used to be commit 90bdd0fa2e)
2008-02-13 11:03:49 +01:00
Michael Adam
c040b9be92 Fix some comment typos.
Michael
(This used to be commit bc4482cde1)
2008-02-13 09:25:31 +01:00
Michael Adam
62c94e0acc Remove some unneded variables: we always build and install some talloc libs.
LIBTALLOC, INSTALL_LIBTALLOC, UNINSTALL_LIBTALLOC

Michael
(This used to be commit 97a60565ad)
2008-02-13 09:25:31 +01:00
Michael Adam
cb69724050 Put talloc lib targets into variables and uses these.
LIBTALLOC_STATIC_TARGET and LIBTALLOC_SHARED_TARGET.

Michael
(This used to be commit d1bec38829)
2008-02-13 09:25:31 +01:00
Michael Adam
79a3ed88cc Simplify code by moving duplicate assignment to common place.
Michael
(This used to be commit dddfdee90e)
2008-02-13 09:25:31 +01:00
Michael Adam
ea22f75493 Add support for linking talloc library statically or dynamically into samba.
This also establishes a general configure mechanism to control static vs
dynamic linking of internal subsystems built as libraries:
This first simple approach is as follows.

* It applies only to "subsystems" that we build as libraries and for
  that linking samba against the libraries (as opposed to linking in
  the plain object files) has been configured in Makefile.in.

* If we do build the shared library, then we link dynamically by default.

* We only link statically if we don't build shared or if the library
  appears in the new --with-static-libs configure option
  (comma-separated list).

Example (currently only one):
  --with-static-libs=talloc makes use of libtalloc.a instead
  of linking the dynamic variant with -ltalloc.

A possilble way to setup linking against libraries in Makefile.in is this:
For a subsystem, "mylib" say, we build bin/libmylib.a and bin/libmylib.so.
The subsystem usually has a MYLIB_OBJ definition in Makefile.in.  Define
LIBMYLIB_STATIC=bin/libmylib.a and and LIBMYLIB_LIBS=-lmylib in configure.in
as controlled by presence of "mylib" in the list given to --with-static-libs
and change uses of $(MYLIB_OBJ) to @LIBMYLIB_STATIC@ in Makefile.in and
add @LIBMYLIB_LIBS@ to the link targets as needed.

In the example of talloc, which is needed everywhere, I have simply
added @LIBTALLOC_LIBS@ to the definition of "LIBS" in Makefile.in.
For other subsystems, one will have to be more careful.

Michael
(This used to be commit 71b990d9d6)
2008-02-13 09:25:31 +01:00
Michael Adam
2a9cbe3c13 Use data from lib/talloc/libtalloc.m4 instead of hard coded data.
Michael
(This used to be commit 880238c65c)
2008-02-13 09:25:31 +01:00
Michael Adam
57794a0550 Move the AC_LIBREPLACE_CC_CHECKS up before building SAMBA_CPPFLAGS.
Michael
(This used to be commit ed2337e3a2)
2008-02-13 09:25:31 +01:00
Michael Adam
c7e80b0c20 Add support for building libtalloc.a and libtalloc.so.
Michael
(This used to be commit cb7f42bcbc)
2008-02-13 09:25:31 +01:00
Günther Deschner
80d20d8e54 w00t! SAMR server-side conversion to pidl is finished.
Guenther
(This used to be commit c6d9650930)
2008-02-12 14:55:20 +01:00
Michael Adam
b7989e2ac7 Add configure check for LBER_LOG_PRINT_FN - to intercept ldap debug.
Use the resulting HAVE_LBER_LOG_PRINT_FN to determine whether we can
use it in init_ldap_debugging to intercept LDAP debug output and print
it out in the samba logs (controlled with "ldap debug level").

Michael
(This used to be commit 8dfc389ff6)
2008-02-06 18:16:22 +01:00
Michael Adam
0e5344b53b Don't use the deprecated form of AC_INIT.
Fill in the project name and email address instead.

Michael
(This used to be commit c2b0c2f2af)
2008-02-06 18:16:22 +01:00
Volker Lendecke
d49754944c NetBSD defines innetgr() in <netgroup.h>
(This used to be commit 7ad8e22073)
2008-02-01 13:06:23 +01:00
Günther Deschner
3d507a2fca Let _samr_Close() use pidl generated server code.
Guenther
(This used to be commit 2df3408079)
2008-01-31 11:20:13 +01:00
Günther Deschner
05ff7fd46e Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
Guenther
(This used to be commit d5ebfccebb)
2008-01-25 15:30:43 +01:00
Volker Lendecke
d221d53f3a Link smbd on AIX with -bexpfull instead of -bexpall
-bexpall only exports the names without leading _, so we don't get
_talloc_reallo_array for example.

Thanks a lot to Heinrich Mislik for the hint!
(This used to be commit 74a71f1988)
2008-01-21 15:01:19 +01:00
Volker Lendecke
dfd05b9b65 vfs_streams_depot
Store streams in a file each. Not 100% finished, and not built by default.
(This used to be commit 5f5fc72b01)
2008-01-19 23:36:34 +01:00
Volker Lendecke
4ba64fce49 vfs_streams_xattr module
Store streams in posix xattrs. A kludge, as xattrs are limited in many ways,
but it might be a help for some situations.
(This used to be commit 83a805220e)
2008-01-19 23:34:22 +01:00
Stefan Metzmacher
db449a4c5f Revert "Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage"
This reverts commit e33286f4a6.

393bab185e0e9f02aac5740becc2aba2762133c8 is the v4-0-test fix
for the same problem.

metze
(This used to be commit b8a57a24c3)
2008-01-18 17:02:13 +01:00
Alexander Bokovoy
80f1cc3879 Enable building of VFS modules: vfs_tsmsm, vfs_shadowcopy2 and IDMAP module idmap_tdb2
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 136c024c9a)
2008-01-16 12:28:28 +03:00
Volker Lendecke
c2acec43ae rename vfs_ea_tdb to vfs_xattr_tdb
(This used to be commit 151b42a150)
2008-01-15 17:30:29 +01:00
Volker Lendecke
57cc992e0f Implement vfs_ea_tdb
This is an option for file systems that do not implement xattrs: in
lockdir/eas.tdb an array of xatts per inode is stored.

It can not solve the problem that xattrs might reappear if a posix-level
process deletes a file and happens to re-create it under the same name. On file
systems with birthtime we might have a chance to detect this, but not with
standard posix. A future version might put relief on file systems that do have
xattrs but where these are severely limited in size/speed/whatever: We can put
a simple marker as a native xattr, but the xattrs proper are stored in the tdb.

Volker
(This used to be commit 2036b4c5ad)
2008-01-15 11:01:18 +01:00
Stefan Metzmacher
e00e080034 libwbclient: add wbclient.pc.in
metze
(This used to be commit e6bd1395f2)
2008-01-15 10:43:43 +01:00
Volker Lendecke
0bfa867159 --enable-libwbclient-shared
This patch adds the configure option --enable-libwbclient-shared that defaults
to yes. If you set --enable-developer=yes, then you can say
--enable-libwbclient-shared=no to avoid problems you might have with the wrong
shared libaries.

Jerry, is this acceptable to you? If yes, please push.

Thanks!

Volker
(This used to be commit 7a88cd61e0)
2008-01-10 22:15:19 +01:00
Michael Adam
638b57e5d1 Enable building the notify_fam module.
Found by Timur I. Bakeyev <timur@com.bat.ru>.

Michael
(This used to be commit ece34fd2fe)
2008-01-10 00:48:03 +01:00
Jelmer Vernooij
aaa2770666 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 5a30f6377d)
2008-01-05 23:09:38 +01:00
Jelmer Vernooij
3ba8fbef29 selftest: Use platform-specific equivalents of LD_LIBRARY_PATH for Samba4's smbtorture.
(This used to be commit 64ff1dad86)
2008-01-05 23:09:25 +01:00
Günther Deschner
53e1014472 Use -g instead of -gstabs as many have reported gdb problems with -gstabs.
Guenther
(This used to be commit 8befb22672)
2008-01-03 13:41:43 +01:00
Günther Deschner
98ae29c26a Fix configure output for libnetapi.
Guenther
(This used to be commit d00ce6685a)
2008-01-03 13:41:27 +01:00
Volker Lendecke
8b88fa53b5 Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage
(This used to be commit e33286f4a6)
2007-12-25 18:37:42 +01:00
Volker Lendecke
fae533d359 AIX iface test needs rep_vasprintf
(This used to be commit 3e5788cc96)
2007-12-25 18:36:49 +01:00
Volker Lendecke
199ecd9a85 ifreq needs more from lib/replace
(This used to be commit e85290550a)
2007-12-25 14:19:50 +01:00
Volker Lendecke
afec8b523a Next try to fix get_interfaces detection
(This used to be commit 2dc0282f24)
2007-12-25 13:49:17 +01:00
Volker Lendecke
b410f254f0 Revert "Attempt to fix the ifreq detection"
This reverts commit 2d08959685.
(This used to be commit acb560900b)
2007-12-25 11:59:34 +01:00
Volker Lendecke
54861606f9 Attempt to fix the ifreq detection
(This used to be commit 2d08959685)
2007-12-25 00:13:24 +01:00
Jeremy Allison
9a2b54dfb6 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Conflicts:

	source/library-versions.in
(This used to be commit 11acca7d38)
2007-12-21 13:14:59 -08:00
Günther Deschner
f2ebf076a4 Generate pkgconfig files for at least lib{smbclient,smbsharemodes,netapi}.
Guenther
(This used to be commit ad87786c91)
2007-12-21 22:07:12 +01:00
Gerald (Jerry) Carter
a2481eda8c Add files for new LGPL libwbclient DSO implementing the Winbind client API
(based on the winbind_struct_protocol.h).

The API in incomplete, but sufficient to merge.  See wbclienbt.h for the i
interface functions.
(This used to be commit 83d274b460)
2007-12-21 11:58:04 -06:00
Günther Deschner
27a58bd50c Add getdc.c, a libnetapi example (incl. Makefile).
Guenther
(This used to be commit faedc78fc7)
2007-12-21 16:02:35 +01:00
Günther Deschner
8f65326e99 Build libnetapi shared and static if possible.
Guenther
(This used to be commit 11e90dcbf5)
2007-12-21 15:29:10 +01:00
Rishi Srivatsavai
bf2c5e2bde Add smbclient support for basic mDNS browsing.
Patch from Rishi Srivatsavai (bugzilla #4150), with tallocification
and minor syle changes by me.
(This used to be commit db74b99d0e)
2007-12-17 22:09:09 -08:00
Jeremy Allison
5dbc4a23bc Added patch originally by Andreas Schneider <anschneider@suse.de>
to cause us to behave like Vista when looking for remote
machine principal. Modified by me.
Jeremy.
(This used to be commit d0e33840fb)
2007-12-15 23:22:25 -08:00
Alexander Bokovoy
733425f312 Fix codepagedir to follow predefined libdir when using FHS. Fixes x86_64 build.
(This used to be commit b8e582c994)
2007-12-13 14:23:04 +03:00
James Peach
819a74ed8f Fix typo.
(This used to be commit c8468a1bb4)
2007-12-12 22:12:10 -08:00
James Peach
fa8966690b Autoconf support for detecting DNS Service Discovery support.
Patch from Rishi Srivatsavai <rishisv@gmail.com>, with some
adaptations.
(This used to be commit 2dfe9525b9)
2007-12-12 19:55:20 -08:00
James Peach
c553b6f7fa Make sure NULL is defined to the IPv6 test doesn't spuriously fail.
(This used to be commit 87c302e250)
2007-12-09 14:00:25 -08:00
Igor Mammedov
44a59c41cf * Adds support for cifs.spnego helper into configure and Makefile.in
* Added checks for spnego prereq keyutils.h and kerberos in configure.in

Signed-off-by: Igor Mammedov <niallain@gmail.com>
(This used to be commit f802db70b8)
2007-12-05 14:33:21 -05:00
Michael Adam
f5b071e3b0 Move check for broken system capabilites.h headers to lib/replace.
Michael
(This used to be commit 8ec10c4ab1)
2007-12-03 16:54:12 +01:00
David Losada Carballo
febaaae202 Extend commit module to help with NFS quotas.
Add "commit on eof" and "commit past eof" modes. Patch from David
Losada Carballo with some modifications during the merge.
(This used to be commit 12eee4f7fe)
2007-11-20 16:45:33 -08:00
James Peach
f8b9e720b2 Detect Heimdal Kerberos on OpenBSD 4.2.
Patch from Sean McCreary <samba-technical@mcwest.org>.
(This used to be commit 8b0bee7c76)
2007-11-18 13:56:19 -08:00
Michael Adam
6028176a39 Fix the build on RHEL5, when libcap-devel is installed.
The /usr/include/sys/capability.h defines _LINUX_TYPES_H
which prevents /usr/include/linux/types.h from being parsed
(when included afterwards). Thus certain types are undefined
that are for instance needed in /usr/include/linux/dqblk_xfs.h.
This breaks the build of lib/sysquotas_xfs.c.

This commit adds a configure check and a workaround for this.

Michael
(This used to be commit 11bcdf780e)
2007-11-16 00:45:59 +01:00
Stefan Metzmacher
8322aa6977 use nss_wrapper code in samba3 when --enable-nss-wrapper is given
metze
(This used to be commit 9682792962)
2007-11-09 09:52:58 +01:00