summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* autogen.sh: Implement GNOME Build APIbaserock/morphColin Walters2013-01-151-1/+3
| | | | | | http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
* configure: Remove AM_MAINTAINER_MODEAdam Jackson2013-01-151-1/+0
| | | | Signed-off-by: Adam Jackson <ajax@redhat.com>
* Fix spacing in XORG_TESTSET_CFLAGYaakov Selkowitz2012-04-041-1/+1
| | | | | Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Version bump: 1.17util-macros-1.17Gaetan Nadon2012-03-131-1/+1
| | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Separate unknown warning options by languageChase Douglas2012-03-121-13/+13
| | | | | | | | | | | | | | | If XORG_COMPILER_FLAGS is called more than once with separate languages, the unknown warning options used internally for unknown warning checking will be set the first time and then the cached value will be used for subsequent languages. This is a problem if the compilers differ between the languages. This change ensures that the unknown warning options are namespaced so multiple XORG_COMPILER_FLAGS calls with different languages are checked separately. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Gaetan Nadon<memsize@videotron.ca>
* Fix cflag test compiler message and cache idsChase Douglas2012-03-121-2/+6
| | | | | | | | | When the language is C++, the flag checking message references $CC instead of $CXX. The cache id is also xorg_cv_cc_* instead of xorg_cv_cxx_*. This change fixes both issues. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Gaetan Nadon<memsize@videotron.ca>
* Don't use AS_ECHO in XORG_TESTSET_CFLAGJon TURNEY2012-03-121-5/+5
| | | | | | | | | | Further to commit 52ef6f6, since AS_ECHO isn't supported in autoconf 2.61 either, rewrite use of cache variable in XORG_TESTSET_CFLAG so 'echo' isn't needed at all. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Gaetan Nadon<memsize@videotron.ca> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
* Add XORG_ENABLE_INTEGRATION_TESTSChase Douglas2012-03-121-0/+37
| | | | | | | | | | | | | | | This macro enables a builder to enable/disable integration testing It makes no assumption about the test cases' implementation Test cases may or may not use Automake "Support for test suites" Unit test support usually requires less dependencies and may be built and run under less stringent environments than integration tests. Thus, two separate options for unit and integration testing is desirable. Copied from XORG_ENABLE_UNIT_TESTS. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Gaetan Nadon<memsize@videotron.ca>
* Version bump: 1.16.2util-macros-1.16.2Gaetan Nadon2012-03-051-1/+1
| | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Define BASE_CXXFLAGS when C++ is the chosen languageChase Douglas2012-03-011-71/+105
| | | | | | | | You can use this functionality by setting the language to C++ before calling XORG_DEFAULT_OPTIONS. This can accomplished with AC_LANG(C++). Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Make XORG_TESTSET_CFLAG work for multiple languagesChase Douglas2012-03-011-21/+32
| | | | | Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Gaetan Nadon<memsize@videotron.ca>
* Use AS_ECHO rather than AS_ECHO_N in XORG_TESTSET_CFLAGJon TURNEY2012-02-191-1/+1
| | | | | | | | The AS_ECHO_N macro was only introduced in autoconf 2.62. Backticks remove trailing newlines, so we don't need to use echo -n Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Cache the results of checking compiler flag support in XORG_TESTSET_CFLAGJon TURNEY2012-01-221-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since checking all those warning flags takes an amount of time I find irritating, here is an attempt at caching the results of checking compiler warning flag support A couple of aspects which need definitely need review or testing: * I've tried to get things right when not the first flag in the list of alternates is supported, but this really needs testing with a compiler other than gcc * The cache variable naming policy is a bit opaque me, so the names used may need corecting * I've tried to be careful, but who knows what portability sins I have committed :-) This change reduces the time to run the ./configure script produced from a configure.ac containing just AC_INIT([test], 1.0) XORG_COMPILER_FLAGS XORG_CWARNFLAGS XORG_STRICT_OPTION AC_OUTPUT() from ~60s to ~20s on my cygwin machine, and from ~15s to ~9s on a linux VM running on the same hardware v2: AS_TR_SH transforms characters which are invalid in shell variable names, so we don't have to use sed to transform spaces ourself Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Version bump: 1.16.1util-macros-1.16.1Jeremy Huddleston2012-01-201-1/+1
| | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Provide a configure option to turn off the selective -Werror=... CFLAGSJeremy Huddleston2011-12-291-0/+24
| | | | | | | | | | Provide end users with a workaround if they find code doesn't build with the -Werror=... flags provided by BASE_CFLAGS. This can be useful if newer util-macros are used with older source code that had problems, or in the rare case when warnings are expanded to hit more cases (although this case should not happen too much in practice). Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Remove -Winline from BASE_CFLAGSJeremy Huddleston2011-12-101-1/+0
| | | | | | | This might be useful for performance tuning builds against specific compilers, but it is a bit too noisy to be used in general. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Version bump: 1.16.0util-macros-1.16.0Gaetan Nadon2011-12-071-1/+1
| | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_TESTSET_CFLAG: Try to both compile & link with the flagsAlan Coopersmith2011-12-011-1/+1
| | | | | | | | | Catches build problems caused by compilers that ignore unknown flags at compile time and pass them to the linker at link time, when the linker considers unknown flags to be fatal errors. Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* XORG_TESTSET_CFLAG: Add support fot -Werror=unused-command-line-argumentJeremy Huddleston2011-11-111-4/+22
| | | | | | This warning was was added to clang in r144365 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Add XORG_MEMORY_CHECK_FLAGS and require it in XORG_ENABLE_UNIT_TESTSAlan Coopersmith2011-11-071-0/+47
| | | | | | | | | | | | | | | | Based on the checks already in libXt/configure.ac and proposed for xserver/configure.ac - makes a common implementation before we make more copies. Callers should be able to just add TESTS_ENVIRONMENT = $(XORG_MALLOC_DEBUG_ENV) If built with an older xorg-macros, then the tests will simply be less stringent, matching what happens on platforms without any simple malloc debugging facilities available. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Define __wrap_exit in test program source for XORG_LD_WRAPAlan Coopersmith2011-11-071-3/+8
| | | | | | | | | Otherwise the test fails on Solaris releases that actually have support for ld -wrap because the linker instead returns an error that __wrap_exit is an undefined symbol. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Add an optional argument to XORG_LD_WRAPAlan Coopersmith2011-11-071-3/+8
| | | | | | | | | | Allows specifying if ld -wrap support is 'required' or 'optional' for unit tests, so that builds like the xserver which only need ld -wrap for some tests can allow users to enable the others when ld -wrap is not available. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Add additional flags to XORG_COMPILER_FLAGSJeremy Huddleston2011-11-061-0/+34
| | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Update XORG_CWARNFLAGS to use XORG_COMPILER_FLAGSJeremy Huddleston2011-11-061-13/+3
| | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Add XORG_COMPILER_FLAGS to replace XORG_CWARNFLAGSJeremy Huddleston2011-11-061-1/+47
| | | | | | See: https://bugs.freedesktop.org/show_bug.cgi?id=31238 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Use XORG_TESTSET_CFLAG in XORG_STRICT_OPTIONJeremy Huddleston2011-11-061-19/+9
| | | | Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
* Add XORG_TESTSET_CFLAG which can be used to test what flags the compiler ↵Jeremy Huddleston2011-11-061-0/+52
| | | | | | | supports Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Fix the test for -Werror=attributesJeremy Huddleston2011-11-061-1/+1
| | | | | | | | The current test was always failing to compile because 'return 0;' was global rather than in the body of a function. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Version bump: 1.15.0util-macros-1.15.0Gaetan Nadon2011-06-231-1/+1
| | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_WITH_XSLTPROC: warn at development time rather than config timeGaetan Nadon2011-06-221-4/+2
| | | | | | | | Catching up unimplemented features should be done earlier by the developer during autoconf rather than during configure. Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Add XORG_WITH_PERL macroGaetan Nadon2011-06-221-0/+56
| | | | | | | | | | Following the same pattern as XMLTO and friends. Allows all modules to use the same interface, variables and options to check for perl. Perl is used in libX11 and xserver. Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_WITH_FOP: add minimum version checking supportGaetan Nadon2011-06-221-3/+20
| | | | | | | | | | | | | | | | | | | Adding this feature is motivated by a bug in fop 0.95 where fop crashes in the presence of some characters like the latin capital sharp s. Fop version 1.0 works correctly. This is the same feature found in XMLTO and the likes. In the macro public interface there is a shift in parameter position for the DEFAULT parameter. Doing development on older libraries (point releases on older versions) will still work the same way as the "no" value will be interpreted as the minimum version. It won't be found, so fop will be disabled anyway. Only libX11 has used XORG_WITH_FOP(no) and will be changed with a version bump on util-macros. Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_PROG_RAWCPP: use AC_LANG_SOURCE to prevent warningsGaetan Nadon2011-06-051-4/+2
| | | | | | | | | The source for the AC_LANG_CONFTEST should be passed to AC_LANG_SOURCE to satisfy the more stringent testing done by autoconf 2.68. It is available in autoconf 2.60 where AC_LANG_DEFINES_PROVIDED is not. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Version bump: 1.14.0util-macros-1.14.0Alan Coopersmith2011-05-271-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add AC_LANG_DEFINES_PROVIDED to XORG_RAW_CPP to silence autoconf warningsAlan Coopersmith2011-05-141-2/+4
| | | | | | | | | | | | Since we're intentionally doing a special case to just check cpp output, and not a full program compilation, add the magic macro to silence: configure.ac:46: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... aclocal.m4:1077: XORG_PROG_RAWCPP is expanded from... configure.ac:46: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* XORG_STRICT_OPTION: add -Werror=attributes to STRICT_CFLAGS for gccAlan Coopersmith2011-05-061-0/+9
| | | | | | | | Flags unknown attributes as errors, if -Werror=attributes is supported. (The -Werror=* option was first spotted in gcc 4.2.0 manuals.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
* Make XORG_STRICT_OPTION always set STRICT_CFLAGSAlan Coopersmith2011-05-021-9/+16
| | | | | | | | | | | Still only adds it to CWARNFLAGS if --enable-strict-compilation is passed, but sets the variable with the right flags for the compiler so it's available for other checks in configure scripts. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Create XORG_COMPILER_BRAND macro to centralize compiler checksAlan Coopersmith2011-05-011-4/+20
| | | | | | | | | | | | Check for gcc vs. intel vs. sun in one place, instead of continuing to grow more places the check is replicated. Add clang check here too, as it's now seeing a lot of use to build X. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* Version bump: 1.13.0util-macros-1.13.0Gaetan Nadon2011-03-141-1/+1
| | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_LD_WRAP: check if linker supports -wrapGaetan Nadon2011-03-101-0/+95
| | | | | | Used mainly by test cases using a wrapper function. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_WITH_GLIB: check for the GLib packageGaetan Nadon2011-03-101-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | XORG_WITH_GLIB([MIN-VERSION], [DEFAULT]) ---------------------------------------- Minimum version: 1.13.0 GLib is a library which provides advanced data structures and functions. This macro enables a module to test for the presence of Glib. When used in conjunction with XORG_ENABLE_UNIT_TESTS, use both AM_CONDITIONAL ENABLE_UNIT_TESTS and HAVE_GLIB. Glib may be used for purpose other than testing Package builders should use --without-glib to ensure it does not get pulled in. Unit tests may or may not use GLib. Developers should use --with-glib to error out if GLib is missing. Interface to module: HAVE_GLIB: used in makefiles to conditionally build targets with_glib: used in configure.ac to know if GLib has been found --with-glib: 'yes' user instructs the module to use glib 'no' user instructs the module not to use glib Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_ENABLE_UNIT_TESTS: add support for unit testingGaetan Nadon2011-03-101-0/+27
| | | | | | | | | | This macro enables a builder to enable/disable unit testing It makes no assumption about the test cases implementation Test cases may or may not use Automake "Support for test suites" They may or may not use the software utility library GLib Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Version bump: 1.12.0util-macros-1.12.0Gaetan Nadon2011-02-251-1/+1
| | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_WITH_XSLTPROC: add XSLT processor command line toolGaetan Nadon2011-02-011-0/+63
| | | | | | | | | | | | | | | | The primary use will be for DocBook/XML cross links database generation. XSLT (Extensible Stylesheet Language Transformations) is a declarative, XML-based language used for the transformation of XML documents. The xsltproc command line tool is for applying XSLT stylesheets to XML documents. It is used under the cover by xmlto to generate html files from DocBook/XML. The XSLT processor is often used as a standalone tool for transformations. It should not be assumed that it is used only to work with documnetation. Tested-by: Matt Dew <marcoz@osource.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Use AC_LANG_PROGRAM in XORG_CHECK_MALLOC_ZERO to clear autoconf-2.68 warningsAlan Coopersmith2010-12-071-8/+6
| | | | | | | | | | | | | | | | | | | | configure.ac:126: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2730: _AC_RUN_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... ../../lib/autoconf/general.m4:2749: AC_RUN_IFELSE is expanded from... aclocal.m4:1952: XORG_CHECK_MALLOC_ZERO is expanded from... configure.ac:126: the top level Also, calloc() takes two arguments; and all of them return void *, not char *; as the compiler points out when you #include <stdlib.h> instead of faking it badly. (And sometimes when you don't, due to compiler builtin versions of the functions.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
* XORG_ENABLE_DOCS: Fix "Enable building the documentation (yes: yes)"Gaetan Nadon2010-11-071-4/+4
| | | | | | | | The quoting did not prevent the m4 defined variable "default" to replace the text string "default" in the help text. Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Version bump: 1.11.0util-macros-1.11.0Alan Coopersmith2010-10-292-1/+7
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* docs: Take optional argument to control defaultsDan Nicholson2010-10-281-24/+42
| | | | | | | | | | | | The typical default of enabling documentation if the correct tool is found is usually the right thing to do. However, some packages such as Xlib have huge amounts of documentation that few people would need in every output format. Allow packages to specify the default for each tool by passing an argument to the macro. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* docs: Use m4 to handle optional macro defaultsDan Nicholson2010-10-281-18/+12
| | | | | | | | | Handling the optional documentation parameters with m4 allows the help string to correctly represent the default. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Version bump: 1.10.1util-macros-1.10.1Gaetan Nadon2010-09-231-1/+1
| | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca>