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

55 Commits

Author SHA1 Message Date
Jelmer Vernooij
3ee442c54f r26571: Hide warnings about unused macros and casting qualifiers in autogenerated files.
(This used to be commit cb76c60007)
2007-12-24 01:51:03 -06:00
Stefan Metzmacher
13ecb01de8 r23637: fix detection of visibility attribute support
James: AC_TRY_LINK() has a different syntax as AC_TRY_RUN() :-)
       so this was wrong:
       http://websvn.samba.org/cgi-bin/viewcvs.cgi?rev=20697&view=rev

metze
(This used to be commit 0a97de3804)
2007-10-10 14:53:29 -05:00
Stefan Metzmacher
9853deacb6 r23111: nicer ./configure --help output
metze
(This used to be commit d0d371be71)
2007-10-10 14:52:50 -05:00
Jelmer Vernooij
30bfba96d3 r20942: Simplify handling of systems that don't support negative enum values by using an ifdef rather than a pidl argument.
(This used to be commit 6bada0dcf0)
2007-10-10 14:43:57 -05:00
James Peach
34fe5027d0 r20697: A couple of minot cross-compile fixes.
(This used to be commit d4c7dd19f3)
2007-10-10 14:40:24 -05:00
Andrew Tridgell
c9ae85d19a r18936: hopefully fix the test for negative enum values. When a compiler
truncates the enums, the test was passing.
(This used to be commit c6216f7dbf)
2007-10-10 14:20:22 -05:00
Stefan Metzmacher
a8fd66f91f r18549: move gcc version check to libreplace and reorder the tests a bit
for nicer output

metze
(This used to be commit 888a769af5)
2007-10-10 14:18:45 -05:00
Andrew Tridgell
fafa8c3e47 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
(This used to be commit 823cd3ab35)
2007-10-10 14:18:42 -05:00
Stefan Metzmacher
a4e94eedf0 r18500: move make related checks into its own file
metze
(This used to be commit 6a6729fb72)
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 95d33e4d71)
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 c2f2dbb5d1)
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 ce08bf1280)
2007-10-10 14:17:58 -05:00
Stefan Metzmacher
26c789eb6a r18261: print out the version of gcc
metze
(This used to be commit 655e400127)
2007-10-10 14:17:58 -05:00
Andrew Tridgell
afe2fde6fd r18221: moved more configure checks into lib/replace/
(This used to be commit d853dcfda7)
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 5ecf98cc18)
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 159f745702)
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 de0c8d1b17)
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 38f9e90a12)
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 d0aa78177d)
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 6b4f788c71)
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 40fb476a9c)
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 a6f22cd924)
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 c3be1e18bc)
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 687d69af62)
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 dc0e22a52e)
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 ebade9dea5)
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 6c5a2b08ca)
2007-10-10 14:05:01 -05:00
Jelmer Vernooij
5c818491fc r15236: Fix -MT detection
(This used to be commit 2cc0925280)
2007-10-10 14:04:22 -05:00
Jelmer Vernooij
c98d625a88 r15232: Look for CC flags, not C++ flags..
(This used to be commit fb5c0c1d85)
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 11353d4b47)
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 6598efc6b3)
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 54962ce41a)
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 2b22f18533)
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 7fd74cfbb9)
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 2d546c3280)
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 a0c543c0d6)
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 0c95bf0cd3)
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 ea9988dfda)
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 fe5eae0e98)
2007-10-10 13:52:15 -05:00
James Peach
b98a5bf922 r13243: Bring __FUNCTION__ checks across from Samba 3.
(This used to be commit 92eec04962)
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 2aefbcb472)
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 bcf4c36255)
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 1a833690b8)
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 c675ba0ee4)
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 f3e0bf022f)
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 cd444bd6f0)
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 82fab8b747)
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 72bb84add4)
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 850d073c85)
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 3d4fdb7093)
2007-10-10 13:30:13 -05:00