summaryrefslogtreecommitdiffstats
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: improbe UL_CONFLICT_BUILD macroKarel Zak2013-08-121-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use -Wno-clobbered for some BSD crapKarel Zak2013-05-071-3/+4
| | | | | | | | * extend UL_WARN_ADD() for accept non-default CFLAGS variable * add BSD_WARN_CFLAGS with -Wno-clobbered * use all this for pg(1) and more(1) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix UL_REQUIRES_HAVEKarel Zak2013-04-181-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: support list of variables for UL_REQUIRES_HAVE macroKarel Zak2013-01-241-1/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add -Werror to UL_WARN_ADD testKarel Zak2012-07-161-55/+4Star
| | | | | | | | ... so revert previous patches with extra options for clang. Sometimes is simple solution so obvious that it's invisible :-) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add exclude list to UL_ADD_WARNKarel Zak2012-07-161-20/+41
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_PROG_CLANG function, rename warnings.m4 -> compiler.m4Karel Zak2012-07-161-2/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_CONFLICTS_BUILD m4 macroKarel Zak2012-06-261-0/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add compiler warningsKarel Zak2012-06-061-0/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix UL_INIT_BUILD macroKarel Zak2011-11-041-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_BUILD_INIT macroKarel Zak2011-11-031-5/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_REQUIRES_* macrosKarel Zak2011-11-031-0/+127
| | | | | | | | UL_REQUIRES_{LINUX,BUILD,HAVE} macros check for dependence between --enable-* state and OS type, another build (e.g. libblkid), function or library. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rename and move macrosKarel Zak2011-11-031-0/+126
| | | | | | | - use m4/ul.m4 for util-linux macros - use UL_ prefix for all util-linux macros Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use AC_LANG_SOURCE to suppress warningsSami Kerola2011-03-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Messages bellow be supressed by using AC_LANG_SOURCE macro around code test blocks. m4/tls.m4:13: AX_CHECK_TLS is expanded from... configure.ac:335: the top level configure.ac:335: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2660: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2677: AC_LINK_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2728: _AC_RUN_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2747: AC_RUN_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2030: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2051: AC_CACHE_CHECK is expanded from... m4/tls.m4:13: AX_CHECK_TLS is expanded from... configure.ac:335: the top level Reference to documentation; http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html#id1168723648533 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: use generated libtool-2 stuffKarel Zak2011-01-055-7966/+0Star
| | | | | | | | | The commit 60a4edd66200be829560dce0d41a02fc70cef4f5 temporary disabled libtool-2 in autogen.sh. It seems that libtool-2 in available in many distributions now, so we don't have to manage the generated .m4 libtool files in git anymore. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rewrite TLS detectionKarel Zak2009-12-041-41/+104
| | | | | | | | | | | | | | | | | | * use more robust tls.m4 from gcc project The old version (from util-linux-ng) used AC_TRY_COMPILE. That's wrong. We need to use AC_RUN_IFELSE to check that the result is link-able and executable. The new version also test it TLS really works in multi-thread applications. * we need to detect TLS usability for cross-compiling * this new version supports __thread keyword only, it seems that we needn't to care about anything other Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "build-sys: check for gtk-doc by default"Karel Zak2009-11-061-18/+8Star
| | | | | | | | | The gtt-doc.make is not required for "make dist" now. So gtk-doc is completely optional now. Let's keep gtk-doc disabled by default. This reverts commit 57facddbc561f86f26cb70e9c5a4391bcf42ff11.
* build-sys: check for gtk-doc by defaultKarel Zak2009-11-061-8/+18
| | | | | | | | | | | This patch add "check|yes|no" concept for --{disable,enable}-gtk-doc configure option. (We use the same concept for many u-l-ng compile options.) The gtk-doc is required for "make dist" (not sure if this is good idea..), so it makes sense to enable gtk-doc by default. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: clean up gtk-doc usageKarel Zak2009-10-121-0/+39
| | | | | | | | | | | Currently gtk-doc is optional. Unfortunately, the ./configure script still depends on GTK_DOC_CHECK macro and shlibs/blkid/docs/Makefile.am depends on gtk-doc.make. It seems that the best solution is to add gtk-doc.[make,m4] files to the repository. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-tlsKarel Zak2009-05-221-0/+48
| | | | | | | | | | | * add AX_TLS autoconf macro * add --disabletls option * cleanup gen_uuid.c code to remove gcc warnings when compiled without TLS macro. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: refresh generated libtool-2 stuffKarel Zak2009-03-171-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add temporary libtool *.m4 stuffKarel Zak2009-02-165-0/+7963
| | | | | | | | | | We require libtool-2 (because old 1.5.x is crap). Unfortunately, libtool-2 is still not available in many Linux distributions -- now I see it in unstable distributions only. The painless way how to resolve this problem is to __temporary__ commit generated libtool-2 stuff to our repository. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove generated autotools stuff from gitKarel Zak2007-01-0330-2660/+0Star
| | | | | | | The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-0730-0/+2660