1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

943 Commits

Author SHA1 Message Date
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 71b990d9d687b517dec3d4eff67b6a3fe417a12a)
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 880238c65c13c8b280e2f34431aa331a16af4a7b)
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 ed2337e3a24e800e0a445a9ffc7d735d49abc6d7)
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 cb7f42bcbc6cbe84823402cd3c7bb9327669ed9b)
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 c6d9650930510982ef4e4759272dba573fc81067)
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 8dfc389ff678967a7b16ff1d68f00468a9925275)
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 c2b0c2f2af287bbe8e09bf7467de581691d09014)
2008-02-06 18:16:22 +01:00
Volker Lendecke
d49754944c NetBSD defines innetgr() in <netgroup.h>
(This used to be commit 7ad8e22073b577cd454675bacf92549e81f55e1c)
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 2df3408079fc382d00d01a0b82b0b8e1ffeba6e4)
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 d5ebfccebb1f1b56b45673a506fcdb414103c43b)
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 74a71f198866ba0a0217e58a6a47bdc858d5df68)
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 5f5fc72b01c8e8fc096375c7cb4a97186c387259)
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 83a805220e52742119546c76a054d50582e33a24)
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 e33286f4a68352e55df081d06307f64f190773b3.

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

metze
(This used to be commit b8a57a24c390355c4950ca499c1d96aff80abad7)
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 136c024c9a32ca8ca33cb36b9a6b731237179af5)
2008-01-16 12:28:28 +03:00
Volker Lendecke
c2acec43ae rename vfs_ea_tdb to vfs_xattr_tdb
(This used to be commit 151b42a150a17f566e7b4055bbdbc0564a3c106d)
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 2036b4c5ad677b8a477b34b0f076febab0abff5e)
2008-01-15 11:01:18 +01:00
Stefan Metzmacher
e00e080034 libwbclient: add wbclient.pc.in
metze
(This used to be commit e6bd1395f2c1da7bcf1a31cdb297919ed6a15469)
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 7a88cd61e09f6db9db38916704ae65e03b33139c)
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 ece34fd2fe4bcd3f88a31a42faaba89248da3ba9)
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 5a30f6377d37d8a5cadce4fb9a2fc19b78fc1709)
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 64ff1dad8664f14030c7d78c252d946216798a88)
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 8befb22672d54a9255e5bdaf9cb0bb4e2b631245)
2008-01-03 13:41:43 +01:00
Günther Deschner
98ae29c26a Fix configure output for libnetapi.
Guenther
(This used to be commit d00ce6685a2cad7cd5526d4b13d43d157cd13481)
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 e33286f4a68352e55df081d06307f64f190773b3)
2007-12-25 18:37:42 +01:00
Volker Lendecke
fae533d359 AIX iface test needs rep_vasprintf
(This used to be commit 3e5788cc9665acb450be793fb88db8e2a871aaa5)
2007-12-25 18:36:49 +01:00
Volker Lendecke
199ecd9a85 ifreq needs more from lib/replace
(This used to be commit e85290550ad33433f584009ffce34c81bea5b164)
2007-12-25 14:19:50 +01:00
Volker Lendecke
afec8b523a Next try to fix get_interfaces detection
(This used to be commit 2dc0282f245c62b83b80f8da0394201e1c00f284)
2007-12-25 13:49:17 +01:00
Volker Lendecke
b410f254f0 Revert "Attempt to fix the ifreq detection"
This reverts commit 2d08959685b495caf1884babbece27775d8bcb4f.
(This used to be commit acb560900be29c407e7da955d16c2de7898e49b8)
2007-12-25 11:59:34 +01:00
Volker Lendecke
54861606f9 Attempt to fix the ifreq detection
(This used to be commit 2d08959685b495caf1884babbece27775d8bcb4f)
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 11acca7d3884731491709dd09b7de2edc8bb5811)
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 ad87786c91709d62ee2cbd02c87e59b855e050cc)
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 83d274b46078a9ace77edb822a0e336c79dcf40e)
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 faedc78fc78527ee3bf05e1177ea43653aea67b2)
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 11e90dcbf5dd1a91118e6a5cee53735d72767c93)
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 db74b99d0ef1a60894c838b4c9d0d454db6cf620)
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 d0e33840fb4cfc85990d3ee327428b0854a22722)
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 b8e582c9941d2466a403e476c52026f4b4201062)
2007-12-13 14:23:04 +03:00
James Peach
819a74ed8f Fix typo.
(This used to be commit c8468a1bb49535f0467e1a83b4c8bc5c8dce834e)
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 2dfe9525b9e6e7dcbac191c1fb6288e166d171e5)
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 87c302e250aacc4d5d6a3cce3f134dd13fa457bf)
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 f802db70b8675df43fba892986203bbeac2d02f8)
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 8ec10c4ab1aa890c9f03d34bd872c93ae5c4d84c)
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 12eee4f7fe27bb4ca376301b959dbfb918b7ba2d)
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 8b0bee7c7688a966777f502c97922d7ad40d841c)
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 11bcdf780e164659b89a66e24edc27e89da7619a)
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 96827929626a528bb3e1ec8366aef58c174d67e1)
2007-11-09 09:52:58 +01:00
Michael Adam
8f13ba4568 Fix a typo.
Michael
(This used to be commit 5721a511d8dd327717bcd9c2053c4bd08f01185c)
2007-11-05 15:16:11 +01:00
Gerald (Jerry) Carter
7bbdc00545 Fix build breakage when not specifying --with-fhs.
Ensure that CODEPAGEDIR, STATEDIR, and CACHEDIR have values.
(This used to be commit 10af752391be51c7381a4eaca27f29e1f2a677b3)
2007-11-02 14:16:06 -04:00
Gerald (Jerry) Carter
8132a7b98b Patch from Debian Samba package maintainers:
Patch 1 of 3:

- Patch 1 adds the new variables
- Patch 2 makes uses of them for files belonging to the "state" path
  and the "code pages" path
  This patch seemed more easily acceptable, which explains why we
  separated it from patch 3
- Patch 3 reassigns files to the "cache" path. Indeed all "debatable"
  changes have been moved to that one

The point is adding:

- a path for non discardable state data: basically all TDB files
  that may need to be backed up
- a path for shared data: mostly codepage stuff
- a path for cache data to host files such as
  browse.dat, printers.tbd, <printer>.tdb

All these are currently mixed in "libdir" (${prefix}/lib/samba by default).
The patch keeps these new paths to point to ${prefix}/lib/samba by default
and does therefore not change the software behaviour.  Used alone, it just
adds unused variables...so it can safely be used in sources without any
behaviour change and no impact on Samba developers work.
(This used to be commit b7d2fadbef044a89920da613b1aafc74a3d94e24)
2007-11-01 13:00:10 -04:00