aria2/m4
Michał Górny 02985711df configure: Use pkg-config to find libs whenever possible
Use pkg-config to find cppunit, libxml2 and expat. All those libraries
provide pkg-config files, and in all of those cases the pkg-config macro
is superior to the custom macros used currently.

The advantages of pkg-config files include:

- Explicit static linking support via --static. Currently, e.g.
'xml2-config --libs' prints all libraries needed for static linking when
doing dynamic linking unnecessary, resulting in unnecessary direct deps.

- Better cross-build support. You don't have to build the additional
*-config tools for target.

- Better multilib support. Per-ABI pkgconfig directories are commonly
supported while packages usually fail to look for per-CHOST *-config
variants.

- Better override support. The current macros allow little to no
result overrides, the pkg-config macros let you pass FOO_CFLAGS
and FOO_LIBS manually.

- Cleaner version checks. The code used in libxml.m4 is really creepy.
2016-11-12 22:13:48 +01:00
..
aria2_arg.m4 aria2_arg.m4: Doc fix 2013-03-12 23:35:04 +09:00
ax_check_compile_flag.m4 Add --enable-werror option to configure to enable warning flags 2016-01-22 23:22:46 +09:00
ax_cxx_compile_stdcxx_11.m4 Make AX_CXX_COMPILE_STDCXX_11 test for -stdlib=libc++ via std::shared_ptr 2013-08-21 23:19:01 +02:00
fallocate.m4 2010-07-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2010-07-27 14:37:25 +00:00