1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

47 Commits

Author SHA1 Message Date
Stefan Metzmacher
a4e94eedf0 r18500: move make related checks into its own file
metze
(This used to be commit 6a6729fb7219ac7eb160b787827acdf1f7af7cc8)
2007-10-10 14:18:39 -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 95d33e4d71b4c97af8413bcd136f393aa3e380dd)
2007-10-10 14:18:36 -05:00
Andrew Tridgell
d82ed849cc r18337: more -Ae tests in check_cc.m4
honor the MMAP_BLACKLIST
(This used to be commit c2f2dbb5d1c082ee1391908073336a9dfc10f712)
2007-10-10 14:18:11 -05:00
Stefan Metzmacher
52102bc76c r18266: we should bail out in configure if C99 structs are not support
tridge: I think we should create macros in libreplace_macros.m4
        and call them in check_cc.m4 instead of running the tests
	in libreplace.m4. Maybe the macros should remember if they're called
	and then they're skipped in libreplace.m4 inside samba4

metze
(This used to be commit ce08bf12803869914b35c05e125070f267daf78c)
2007-10-10 14:17:58 -05:00
Stefan Metzmacher
26c789eb6a r18261: print out the version of gcc
metze
(This used to be commit 655e400127d828104718ab87a0bc118dbf1a471f)
2007-10-10 14:17:58 -05:00
Andrew Tridgell
afe2fde6fd r18221: moved more configure checks into lib/replace/
(This used to be commit d853dcfda771888f80a80e14ffabb1c0e58a340e)
2007-10-10 14:17:52 -05:00
Stefan Metzmacher
af1b64c92f r18210: - reenable autodependencies
- and add -MT $@ to the dependency generation
  to notice changes in depdendecies of header files

you may need a 'make clean' or at least you need to remove
heimdal_build/replace.hd

metze
(This used to be commit 5ecf98cc189039023ff0a97f43eba7fb2c2cdc46)
2007-10-10 14:17:50 -05:00
Stefan Metzmacher
6b5e86f47b r18183: - add LIBREPLACE globaly and add LIBREPLACE_HOSTCC
- also specify USE_HOSTCC = YES on binaries that use HOSTCC

I also disable autodependecies as this change let make run forever,
I hopefully fix that tomorrow

metze
(This used to be commit 159f74570233a8707dc1deb70fb1917a854213f8)
2007-10-10 14:17:47 -05:00
Stefan Metzmacher
21ef15d703 r18179: - move CC specific stuff to check_cc.m4
- add some AC_DEFINES to rewrite.m4
  (I'll remove them from check_ld.m4 soon)
  (I've also merged new values from samba3)

metze
(This used to be commit de0c8d1b1729daef984d5b44e0224481cf9e2164)
2007-10-10 14:17:46 -05:00
Stefan Metzmacher
6150443532 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
(This used to be commit 38f9e90a120b4e62f005a1bac89139ee87f63071)
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
2a1ef3c817 r17904: we don't want warnings about unused parameters
volker that one was for you:-)

metze
(This used to be commit d0aa78177d24877320bac2294328e0083f34e9a5)
2007-10-10 14:16:53 -05:00
Stefan Metzmacher
6e4043cb05 r17890: add -Wc++-compat option to gcc but don't use it yet
metze
(This used to be commit 6b4f788c71a6d445ded522d89cd5425f9e2fb391)
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
fef30c770a r17793: add -Wmissing-prototypes, -Wmissing-declarations, -Wmissing-field-initializers
gcc options, but don't enable them yet.

we should step by step try to enable them, after removing the flood of warnings
they would generate.

metze
(This used to be commit 40fb476a9cc53c757dcf07e879107c4572b8a1ee)
2007-10-10 14:16:43 -05:00
Stefan Metzmacher
1ec1c32ea1 r17772: warn about unused macros
(only when defined in the .c file not in headers)

metze
(This used to be commit a6f22cd924ce040d6b3c31c9c483f1c256015f8d)
2007-10-10 14:16:39 -05:00
Stefan Metzmacher
d68a169886 r17744: we explicit want to get warnings about declarations after statements:-)
metze
(This used to be commit c3be1e18bcc050fe96be3f35e10ca643673749ca)
2007-10-10 14:16:35 -05:00
Stefan Metzmacher
2f119fc7a8 r17566: test if the compiler support inline, this results
in

#define inline

if the compiler doesn't support it

This hopefully fix the build on some hosts,
however we should not start to use inline in our
code this is more to not need to touch imported files
from heimdal or popt.

metze
(This used to be commit 687d69af6228d159a0dfc59c44eb0a1349a51f2b)
2007-10-10 14:15:37 -05:00
Stefan Metzmacher
d6fed33711 r17565: expand the test for negative enum values, systems like Tru64
truncate the value to INT_MAX...
So a AC_TRY_RUN test is needed here

metze
(This used to be commit dc0e22a52e3488a4cb9f17138389885183e90c34)
2007-10-10 14:15:37 -05:00
Stefan Metzmacher
4662f3a6d2 r17564: we don't need a AC_TRY_RUN to test the compiler warning options
metze
(This used to be commit ebade9dea58b58e34c6dfc39358ddb0b05d2b372)
2007-10-10 14:15:37 -05:00
Stefan Metzmacher
81d3f8e8a1 r15280: - remove the 2nd check for __FUNCTION__
- fallback to __func__ if __FUNCTION__ isn't there

metze
(This used to be commit 6c5a2b08ca2f0db6b39808740a06ed165e8b9ade)
2007-10-10 14:05:01 -05:00
Jelmer Vernooij
5c818491fc r15236: Fix -MT detection
(This used to be commit 2cc0925280cbcefabfcf399f2c20453a02d8d679)
2007-10-10 14:04:22 -05:00
Jelmer Vernooij
c98d625a88 r15232: Look for CC flags, not C++ flags..
(This used to be commit fb5c0c1d85c802367871a1a306d4f8b4d01859b4)
2007-10-10 14:04:21 -05:00
Jelmer Vernooij
a78a6fcb49 r15231: Try to fix detection of ability of CC to generate dependencies
(This used to be commit 11353d4b47964b762a72ec0e55221811a5a3d550)
2007-10-10 14:04:21 -05:00
Jelmer Vernooij
847e80dee9 r15224: Check whether -MT is actually supported by the compiler before using
automatic dependencies
(This used to be commit 6598efc6b302984d0b26b0c76a4b7107f5feba21)
2007-10-10 14:04:20 -05:00
Jelmer Vernooij
4fd82be140 r14621: Define HAVE_IMMEDIATE_STRUCTURES for those using Samba headers,
so people don't end up with different sizes for NTSTATUS...
(This used to be commit 54962ce41a7ae72d1dc8cbb2d2cf9cd60a1ed683)
2007-10-10 13:59:02 -05:00
Jelmer Vernooij
61ec62fb27 r14583: Enable automatic dependencies only if GNU make >= 3.81 is present.
(This used to be commit 2b22f1853306625a4c59763ef11965ac8900d4ff)
2007-10-10 13:58:53 -05:00
Jelmer Vernooij
d563c448f7 r14322: Remove the BROKEN_CC flag for now. None of the buildfarm hosts has
a C compiler that doesn't support -c and -o together and it makes the build
system more complicated. This also means the current handling of broken C
compilers is most likely broken as it isn't tested.

This detection can be readded when we stumble upon a C compiler that supports
both C99 (or at least the parts of it we need) and also has broken -c/-o
handling, which I think is unlikely to happen.
(This used to be commit 7fd74cfbb90063c79994fb6691dbe456d9ad9efa)
2007-10-10 13:57:12 -05:00
Stefan Metzmacher
d9c439b884 r13967: change the standard visibility to "default" public again
for modules, libraries and subsystems

metze
(This used to be commit 2d546c32801b12ba82596ccdf1521cba7bfff9f7)
2007-10-10 13:52:33 -05:00
Stefan Metzmacher
f266ee7c28 r13917: fix detection of the visibility support,
as we don't use #pragma for the build don't use it for the configure test
and use -fvisibility=hidden in CFLAGS in the configure test

metze
(This used to be commit a0c543c0d6440627da594611fbff3ef1ab0d4251)
2007-10-10 13:52:23 -05:00
Jelmer Vernooij
c389883ba2 r13902: Stricter checking for the -fvisibility flag
Add two more proto headers.
(This used to be commit 0c95bf0cd33d8a6c35f692b796d7fbfd98b4d068)
2007-10-10 13:52:21 -05:00
Jelmer Vernooij
ce3032cab8 r13898: Add a subsystem-specific DEFAULT_VISIBILITY property that can be used
to not export symbols when building shared libraries. Symbols that have to be
available to users of the library can be explicitly exported by
prepending them with _PUBLIC_ in the C source.
(This used to be commit ea9988dfda6df09f1ee8f9aea1dc5b96fff52ee6)
2007-10-10 13:52:20 -05:00
Jelmer Vernooij
8ef42b1fab r13847: Fix some portability issues with the visibility attribute.
(This used to be commit fe5eae0e983d1c8634dd9b7caf19cd103c641223)
2007-10-10 13:52:15 -05:00
James Peach
b98a5bf922 r13243: Bring __FUNCTION__ checks across from Samba 3.
(This used to be commit 92eec049628a79f8d9496c6d199d6de0238e7940)
2007-10-10 13:51:36 -05:00
James Peach
7daa5d139f r13225: Enable full compiler warnings for developer mode on IRIX.
(This used to be commit 2aefbcb47272536d8c2229f8b199f7cd7da7d890)
2007-10-10 13:51:35 -05:00
Stefan Metzmacher
eab4a56197 r12836: use: -fvisibility=hidden -D_PUBLIC_="__attribute__((visibility(\"default\")))"
if the compiler supports it, this will cause that modules can only access
public functions (gcc 4 supports this)

metze
(This used to be commit bcf4c362556b8168fc0b63af5708e4a78c7b93fb)
2007-10-10 13:50:04 -05:00
Jelmer Vernooij
7f08aa1dd5 r10287: Compile compilers for build host. This fixes some bits of
the mingw32 build (it now fails on missing inet_aton / in_addr definitions).
Find sane default for HOSTCC
(This used to be commit 1a833690b8fd9a22169882c41704d24f2d52b2d9)
2007-10-10 13:38:13 -05:00
Jelmer Vernooij
3a4da8c0db r10283: Eliminate some more use of autoconf substitution variables.
Add makefile rule for '.ho' files (compiled with host compiler). This
does not allow for cross-compiling yet as that requires a HOSTLD as well.
(This used to be commit c675ba0ee437ade4abe839a2fb193b9e3a98a3de)
2007-10-10 13:38:13 -05:00
Stefan Metzmacher
a302b79a37 r10077: - move gcc option checks to check_cc.m4
- only use -g if supported
- don't allow AC_PROG_C and friends to autoset the CFLAGS
  (we don't want -g -02 by default..., maybe a configure option
   for -OX could be useful...)

metze
(This used to be commit f3e0bf022f6a1d5de0d21eb7be3ec97f526fe631)
2007-10-10 13:37:51 -05:00
Stefan Metzmacher
2f72d3a0dd r10076: this macro was moved to build/m4/smb_cc_featues.m4
metze
(This used to be commit cd444bd6f0743cd5ba1d2b137c2411d3088ff6f0)
2007-10-10 13:37:51 -05:00
James Peach
e6190e6be5 r10071: Configure checks for IRIX build environment. Test whether we can
use the MIPSPro 7.4 -c99 option to get C99 support. Try to find
a common perl that is more modern than /usr/bin/perl.
(This used to be commit 82fab8b747bf68d8548c6f0f2f4bff98bd428d22)
2007-10-10 13:36:34 -05:00
Jelmer Vernooij
46ca543e19 r10041: Add 'gcov' make target. Run
'make clean gcov' to generate a set of files describing the test coverage
of the Samba 4 code.
(This used to be commit 72bb84add469ad4f027ddbd8d73bb846b0609fa2)
2007-10-10 13:36:32 -05:00
James Peach
eacdca99df r9494: Add ac-archive macro for checking GCC options. Use this to add to
developer CFLAGS to handle different versions of GCC.
(This used to be commit 850d073c8569c758a6998021ee033793425316c9)
2007-10-10 13:34:22 -05:00
Stefan Metzmacher
99ad4c681c r8868: add comfigure check for c99 struct initialization,
which is required for samba4

metze
(This used to be commit 3d4fdb70935b4bde1c34a293e5d5a3000151c116)
2007-10-10 13:30:13 -05:00
Andrew Tridgell
2ec501883d r8533: improve --help output
(This used to be commit 3dd6e2056678ccf5c4844d74410dbe0775db3c46)
2007-10-10 13:29:36 -05:00
Andrew Tridgell
3cddf280da r8532: this miight fix cross compilation for reactos
(This used to be commit 810fa4f762458202adee3f2fd5b13e74eae7781f)
2007-10-10 13:29:35 -05:00
Andrew Tridgell
3699e58f1f r7895: hopefully this will fix the popt build on solaris
(This used to be commit 8f0b4ece48b6bf28891dc89e47ebffa81c431bd7)
2007-10-10 13:18:46 -05:00
Stefan Metzmacher
1b3471ed0c r7425: configure check to see if a compiler can handle negative enum values
if the compiler doesn't support it we pass --uint-enums to pidl

metze
(This used to be commit c52703c0a8adb4f64ec52e4bf602e9c17ef2c748)
2007-10-10 13:17:51 -05:00
Jelmer Vernooij
5296bd1b51 r7274: Move m4 files to seperate dir
(This used to be commit 0dda66f0e8e6ad37d731937af184a132bf3407b1)
2007-10-10 13:17:35 -05:00