summaryrefslogtreecommitdiff
path: root/source4/build/m4/check_cc.m4
AgeCommit message (Collapse)AuthorFilesLines
2009-06-29Two patches which fix issues on cross compiling/buildingNathaniel McCallum1-1/+3
2009-02-02s4:build: add a comment why we need CFLAG_NO_CAST_QUAL and ↵Stefan Metzmacher1-4/+7
CFLAG_NO_UNUSED_MACROS metze
2009-01-22Move configure test files to the top-level and share them between s3 andJelmer Vernooij1-1/+1
s4.
2008-06-09build/m4: fix warnings with autoconf-2.62 rename SMB_BUILD_ => samba_cv_Stefan Metzmacher1-3/+3
AC_CACHE_VAL() variables must contain _cv_ to be cached. metze (This used to be commit 0241af873fdefd5856932190ca0019a2d3c05703)
2007-12-24r26571: Hide warnings about unused macros and casting qualifiers in ↵Jelmer Vernooij1-0/+4
autogenerated files. (This used to be commit cb76c60007ae1254181c09ba1ab09c419f500bc5)
2007-10-10r23637: fix detection of visibility attribute supportStefan Metzmacher1-3/+2
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 0a97de3804cbfc593c0cfc62e61fbfe87d2cf368)
2007-10-10r23111: nicer ./configure --help outputStefan Metzmacher1-1/+1
metze (This used to be commit d0d371be719f219db9ed9b37df010a80fdda6fc3)
2007-10-10r20942: Simplify handling of systems that don't support negative enum values ↵Jelmer Vernooij1-2/+1
by using an ifdef rather than a pidl argument. (This used to be commit 6bada0dcf0c7915d366c7917189375dbabecdd4f)
2007-10-10r20697: A couple of minot cross-compile fixes.James Peach1-1/+2
(This used to be commit d4c7dd19f3a114ee1527cbcd3071b4921600977d)
2007-10-10r18936: hopefully fix the test for negative enum values. When a compilerAndrew Tridgell1-9/+3
truncates the enums, the test was passing. (This used to be commit c6216f7dbf68012fa8351dcae17fe4c7ab165b58)
2007-10-10r18549: move gcc version check to libreplace and reorder the tests a bitStefan Metzmacher1-6/+0
for nicer output metze (This used to be commit 888a769af557d050d99df703ce5f651688c837c5)
2007-10-10r18535: move the AC_CANONICAL_HOST and host specific flag tests intoAndrew Tridgell1-39/+0
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 823cd3ab35456769dcefee17bdaca21f01ba0f63)
2007-10-10r18500: move make related checks into its own fileStefan Metzmacher1-37/+0
metze (This used to be commit 6a6729fb7219ac7eb160b787827acdf1f7af7cc8)
2007-10-10r18485: include libreplace.m4 in the aclocal.m4 filesStefan Metzmacher1-11/+1
and use the macros in configure.ac metze (This used to be commit 95d33e4d71b4c97af8413bcd136f393aa3e380dd)
2007-10-10r18337: more -Ae tests in check_cc.m4Andrew Tridgell1-4/+0
honor the MMAP_BLACKLIST (This used to be commit c2f2dbb5d1c082ee1391908073336a9dfc10f712)
2007-10-10r18266: we should bail out in configure if C99 structs are not supportStefan Metzmacher1-0/+12
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-10r18261: print out the version of gccStefan Metzmacher1-0/+6
metze (This used to be commit 655e400127d828104718ab87a0bc118dbf1a471f)
2007-10-10r18221: moved more configure checks into lib/replace/Andrew Tridgell1-55/+0
(This used to be commit d853dcfda771888f80a80e14ffabb1c0e58a340e)
2007-10-10r18210: - reenable autodependenciesStefan Metzmacher1-1/+0
- 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-10r18183: - add LIBREPLACE globaly and add LIBREPLACE_HOSTCCStefan Metzmacher1-0/+1
- 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-10r18179: - move CC specific stuff to check_cc.m4Stefan Metzmacher1-0/+43
- 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-10r18152: move our AC macros into lib/replace/libreplace_macros.m4Stefan Metzmacher1-8/+1
and include them from there metze (This used to be commit 38f9e90a120b4e62f005a1bac89139ee87f63071)
2007-10-10r17904: we don't want warnings about unused parametersStefan Metzmacher1-1/+9
volker that one was for you:-) metze (This used to be commit d0aa78177d24877320bac2294328e0083f34e9a5)
2007-10-10r17890: add -Wc++-compat option to gcc but don't use it yetStefan Metzmacher1-0/+1
metze (This used to be commit 6b4f788c71a6d445ded522d89cd5425f9e2fb391)
2007-10-10r17793: add -Wmissing-prototypes, -Wmissing-declarations, ↵Stefan Metzmacher1-0/+3
-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-10r17772: warn about unused macrosStefan Metzmacher1-0/+1
(only when defined in the .c file not in headers) metze (This used to be commit a6f22cd924ce040d6b3c31c9c483f1c256015f8d)
2007-10-10r17744: we explicit want to get warnings about declarations after statements:-)Stefan Metzmacher1-1/+1
metze (This used to be commit c3be1e18bcc050fe96be3f35e10ca643673749ca)
2007-10-10r17566: test if the compiler support inline, this resultsStefan Metzmacher1-0/+2
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-10r17565: expand the test for negative enum values, systems like Tru64Stefan Metzmacher1-2/+19
truncate the value to INT_MAX... So a AC_TRY_RUN test is needed here metze (This used to be commit dc0e22a52e3488a4cb9f17138389885183e90c34)
2007-10-10r17564: we don't need a AC_TRY_RUN to test the compiler warning optionsStefan Metzmacher1-1/+1
metze (This used to be commit ebade9dea58b58e34c6dfc39358ddb0b05d2b372)
2007-10-10r15280: - remove the 2nd check for __FUNCTION__Stefan Metzmacher1-7/+0
- fallback to __func__ if __FUNCTION__ isn't there metze (This used to be commit 6c5a2b08ca2f0db6b39808740a06ed165e8b9ade)
2007-10-10r15236: Fix -MT detectionJelmer Vernooij1-1/+1
(This used to be commit 2cc0925280cbcefabfcf399f2c20453a02d8d679)
2007-10-10r15232: Look for CC flags, not C++ flags..Jelmer Vernooij1-1/+1
(This used to be commit fb5c0c1d85c802367871a1a306d4f8b4d01859b4)
2007-10-10r15231: Try to fix detection of ability of CC to generate dependenciesJelmer Vernooij1-2/+6
(This used to be commit 11353d4b47964b762a72ec0e55221811a5a3d550)
2007-10-10r15224: Check whether -MT is actually supported by the compiler before usingJelmer Vernooij1-1/+2
automatic dependencies (This used to be commit 6598efc6b302984d0b26b0c76a4b7107f5feba21)
2007-10-10r14621: Define HAVE_IMMEDIATE_STRUCTURES for those using Samba headers,Jelmer Vernooij1-0/+1
so people don't end up with different sizes for NTSTATUS... (This used to be commit 54962ce41a7ae72d1dc8cbb2d2cf9cd60a1ed683)
2007-10-10r14583: Enable automatic dependencies only if GNU make >= 3.81 is present.Jelmer Vernooij1-0/+31
(This used to be commit 2b22f1853306625a4c59763ef11965ac8900d4ff)
2007-10-10r14322: Remove the BROKEN_CC flag for now. None of the buildfarm hosts hasJelmer Vernooij1-9/+0
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-10r13967: change the standard visibility to "default" public againStefan Metzmacher1-1/+0
for modules, libraries and subsystems metze (This used to be commit 2d546c32801b12ba82596ccdf1521cba7bfff9f7)
2007-10-10r13917: fix detection of the visibility support,Stefan Metzmacher1-7/+14
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-10r13902: Stricter checking for the -fvisibility flagJelmer Vernooij1-11/+18
Add two more proto headers. (This used to be commit 0c95bf0cd33d8a6c35f692b796d7fbfd98b4d068)
2007-10-10r13898: Add a subsystem-specific DEFAULT_VISIBILITY property that can be usedJelmer Vernooij1-20/+12
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-10r13847: Fix some portability issues with the visibility attribute.Jelmer Vernooij1-7/+9
(This used to be commit fe5eae0e983d1c8634dd9b7caf19cd103c641223)
2007-10-10r13243: Bring __FUNCTION__ checks across from Samba 3.James Peach1-0/+8
(This used to be commit 92eec049628a79f8d9496c6d199d6de0238e7940)
2007-10-10r13225: Enable full compiler warnings for developer mode on IRIX.James Peach1-3/+7
(This used to be commit 2aefbcb47272536d8c2229f8b199f7cd7da7d890)
2007-10-10r12836: use: -fvisibility=hidden ↵Stefan Metzmacher1-0/+19
-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-10r10287: Compile compilers for build host. This fixes some bits ofJelmer Vernooij1-3/+11
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-10r10283: Eliminate some more use of autoconf substitution variables.Jelmer Vernooij1-2/+2
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-10r10077: - move gcc option checks to check_cc.m4Stefan Metzmacher1-1/+32
- 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-10r10076: this macro was moved to build/m4/smb_cc_featues.m4Stefan Metzmacher1-18/+0
metze (This used to be commit cd444bd6f0743cd5ba1d2b137c2411d3088ff6f0)