Commit graph

10 commits

Author SHA1 Message Date
Tollef Fog Heen
eb866ade77 Spelling and grammar in pkg.m4
Fixes: #27
2020-04-21 20:52:02 +02:00
Dan Nicholson
677e924875 pkg.m4: Bump the serial number for release
There aren't any significant changes here, but this will cause aclocal
to get the latest version.
2017-03-20 12:03:09 -05:00
Peter Eisentraut
f88710d3e1 m4: Fix indentation
The pkg-config source code is full of weird whitespace, the sort that
git diff --check would complain about. Attached is a small patch that
cleans this up in pkg.m4 so that it doesn't propagate into other
packages.

https://bugs.freedesktop.org/show_bug.cgi?id=99522
2017-03-19 12:50:16 -05:00
Russ Allbery
3b96e7434c Make PKG_CHECK_MODULES report the module name instead of the variable prefix
In Autoconf output from PKG_CHECK_MODULES in pkg.m4, the "checking for"
message refers to the first argument of PKG_CHECK_MODULES, the variable
prefix, instead of the second argument, the module being checked for.

This results in strange output (like ALL CAPS module names) in various
packages. And when probing for modules, one can't always use a variable
prefix that matches the module name (since ‘-’ and other characters
aren't allowed in variable names), so the Autoconf output is going to
refer to something odd.

The status output should reference the module name being probed for,
both because it looks nicer and because, when debugging problems, this
references the actual thing being probed for on the system, rather than
an internal implementation detail.

Signed-off-by: Guillem Jover <guillem@hadrons.org>

https://bugs.freedesktop.org/show_bug.cgi?id=98334
2017-03-19 09:56:25 -05:00
Ross Burton
a38d5c58a1 pkg.m4.in: use correct comments for aclocal serial
aclocal requires that serial numbers are on a line commented out with hashes not
dnl, so change the commenting style on the first two lines.

https://bugs.freedesktop.org/show_bug.cgi?id=97615
2016-09-06 09:24:53 -07:00
Dan Nicholson
56c9d85369 m4: Change all comment markers to dnl
Using # leaves the comments within the generated configure file, which
is just unnecessary bloat since no one would read the generated
configure file for the documentation of the macros.
2015-09-26 21:08:45 -07:00
Dan Nicholson
5e786130a5 m4: Add Since releases and cleanup comments
Note which release each macro was added in and cleanup the comments to
be more consistent between them.
2015-09-26 20:58:25 -07:00
Dan Nicholson
d5c6358eda m4: Update serial to 11
This was determined by counting the number of changes to pkg.m4 since
the initial serial number was added. The trailing comment is also
updated to have the version number substituted.
2015-09-26 19:56:40 -07:00
Dan Nicholson
b51cd2165d m4: Add PKG_PREREQ version checking macro
While PKG_PROG_PKG_CONFIG checks the version of pkg-config available at
build time, it doesn't check the version of the pkg-config macros being
used. PKG_PREREQ (like AC_PREREQ or LT_PREREQ) can be used to check the
version of the macros in use when configure is being generated by the
developer.

https://bugs.freedesktop.org/show_bug.cgi?id=89267
2015-09-26 15:02:36 -07:00
Dan Nicholson
7e8b0bf6d9 m4: Process pkg.m4 through AC_CONFIG_FILES
Currently there are no substitutions needed in pkg.m4, but this will
allow autoconf values such as the package version to be included.
2015-09-26 15:01:37 -07:00
Renamed from pkg.m4 (Browse further)