Commit graph

266 commits

Author SHA1 Message Date
Tollef Fog Heen
b02c40bca4 Only treat real files (or symlinks to real files) as .pc files
Ignore any dangling symlinks.  Thanks to Ciaran Anscomb for patch
inspiration.

Fixes Freedesktop #23922
2011-05-15 14:08:21 +02:00
Tollef Fog Heen
beb55100ea Ignore emacs backup files 2011-05-15 11:06:50 +02:00
Tollef Fog Heen
7c45ef3c84 Drop dead code 2011-05-15 11:05:42 +02:00
Tollef Fog Heen
1363621467 Document specifying paths to .pc files
Thanks to Binki for the patch

Freedesktop #32622
2011-05-15 10:34:01 +02:00
Руслан Ижбулатов
7850aeb03a Escape slashes in paths passed to mingw-gcc
Avoids Msys path mangling that turns *nix paths (such as /usr/include) into
DOS-style absolute paths (such as c:/mingw/msys/1.0/include).
Allows mingw-built pkg-config to pass check-cflags.
2011-04-14 08:19:50 +02:00
Simon McVittie
01005bbbd0 Add --with-system-include-path etc.
Instead of hard-coding /usr/include, we now use the environment variable
PKG_CONFIG_SYSTEM_INCLUDE_PATH, defaulting to the argument of
./configure --with-system-include-path, which in turn defaults to
/usr/include.

Similarly, PKG_CONFIG_SYSTEM_LIBRARY_PATH defaults to /usr/lib or
/usr/lib:/usr/lib64 as appropriate.

(As currently implemented, this causes a behaviour change on Win32 -
the option -I/usr/include will now be filtered out.)

The intended usage is for Debian to configure pkg-config with
--with-system-include-path=/usr/include/$(DEB_HOST_GNU_TYPE):/usr/include
and the corresponding library path, for multiarch support
(<http://bugs.debian.org/482884>).

Based on work by Colin Walters <walters@verbum.org>
2011-04-13 22:56:53 +02:00
Tollef Fog Heen
57d6c40d7a Add _LIBDIR to m4_pattern_allow too
Fixes Debian #398901
2011-04-13 22:26:18 +02:00
Tollef Fog Heen
1b1bd80f5f Allow $() through unescaped.
$(foo) is used for make escapes, so allow them through.

Freedesktop #33920
2011-04-13 22:02:51 +02:00
Tollef Fog Heen
4366f5842f Handle --exist working and --cflags or --libs failing
--exists no longer does a full depth traversal, which means we need to
pay attention to the exit status when calling pkg-config --libs and
--cflags.  If those fail, we run with --cflags and --libs to get the
error message before printing it out.

Fixes Freedesktop #36039
2011-04-13 21:45:57 +02:00
Tollef Fog Heen
ad10a80814 Mention that auto* recommends building .pc files at build time
Fixes Freedesktop #32094
2011-04-13 21:03:15 +02:00
Tollef Fog Heen
2ec2007d8d Rename configure.in to configure.ac 2011-04-13 20:35:16 +02:00
Hauke Fath
5764fbe873 Fix C99-ism
Old NetBSD versions don't have a C99 compiler, so get rid a C99ism for
their benefit.
2011-04-13 20:29:22 +02:00
Ville Skyttä
35495b1e74 Man page syntax and spelling fixes. 2011-04-13 20:17:12 +02:00
Tollef Fog Heen
99964eddb5 Stop shipping an embedded glib
Drop the embedded glib, the associated patches and adjust build
scripts appropriately.
2011-04-13 20:16:23 +02:00
Tollef Fog Heen
03bd4a5528 Drop support for legacy -config scripts
We used to call gnome-config, gtk-config, glib-config and so on, which
was useful in the beginning of pkg-config.  This hasn't served any
practical purpose in recent years, so drop the support.
2010-09-01 20:48:57 +02:00
Tollef Fog Heen
2b86e9b466 Add some []s before dnl
Autoconf 2.66 has some problems with missing []s before dnls, causing
the expanded text to be garbled.

Fixes #29056
2010-08-19 08:54:09 +02:00
Dan Nicholson
f76fe52575 Force generation of libtool script so it can be used reliably
We want to use the libtool script to determine if indirect dependencies
should be listed. LT_OUTPUT forces the script to be created immediately
so that the test can be run reliably.

This is borrowed from glib's configure.in.
2010-06-17 09:17:46 -07:00
Dan Nicholson
a465eacaf6 Add test to exercise broken command option handling
The ancient bundled popt mishandles some cases of option parsing.

http://lists.freedesktop.org/archives/pkg-config/2010-March/000508.html

Add a test program to exercise it. This should encourage people to use
an external popt until we have a better fix.
2010-06-16 16:49:52 -07:00
Dan Nicholson
68763c08de Build pkg-config before descending to check directory
To ensure that pkg-config has been built and updated before running the
test suite, complete the top directory before descending to the check
directory.
2010-06-15 06:06:16 -07:00
Dan Nicholson
84e4847c06 Greatly simplify autogen.sh and fix configure skipping
There is really no reason to manually vet and run all the autotools.
That's what autoreconf is for. It has the added bonus that it will
descend to the glib subdirectory and rebuild the autotools there. The
handling of configure is also fixed as the previous --no-configure code
was completely broken.

This is basically the xorg autogen.sh, so we can be pretty confident
it'll work as advertised.
2010-06-09 21:34:21 -07:00
Tollef Fog Heen
b8eb53fd33 Bump version number to 0.25 2010-05-28 18:09:48 +02:00
Tollef Fog Heen
665b459b22 Document 0.25 changes 2010-05-28 18:09:35 +02:00
Tollef Fog Heen
66aa02a60b Make sure to distribute the blank fields .pc file too 2010-05-28 18:09:10 +02:00
Tollef Fog Heen
6702b97935 Document pc_path a bit 2010-05-27 22:43:04 +02:00
Tollef Fog Heen
4c6ff1c3d5 Add test case for empty fields
Make sure we don't run into the bug fixed by 6a27c57 again.
2010-05-27 22:23:40 +02:00
Dan Nicholson
6a27c57057 Handle empty valued fields with newer external popt
The bundled popt handled the case of Cflags or Libs with no value, but
newer popt linked through --with-installed-popt chokes parsing it into
a vector. This is arguably a popt bug in poptParseArgvString, but I
guess they expect you not to ask it to split an empty string.
2010-05-27 22:23:19 +02:00
Tollef Fog Heen
d9077956e2 Fix up test framework to better report errors when pkg-config exits non-zero 2010-05-27 22:17:54 +02:00
Tollef Fog Heen
2ce485c65d Allow : and = unescaped in output too 2010-05-27 21:48:52 +02:00
Dan Nicholson
376d42b004 Add COPYING files to give general licensing terms
In order to avoid having the COPYING file from automake included in
the distribution, add a copy of the GPLv2 for pkg-config. This matches
the source files, which all specify GPLv2+.

The COPYING file from upstream popt has also been added for the
bundled popt sources.
2010-05-27 21:40:47 +02:00
Tollef Fog Heen
ec55562d9a Fix typo in man page 2010-05-24 00:09:03 +02:00
Tollef Fog Heen
37d59a0c44 Distcheck fixes
Various small fixes to make distcheck pass
2010-05-23 23:31:14 +02:00
Tollef Fog Heen
a23bbe4584 Bump version number in configure.ac 2010-05-23 23:12:55 +02:00
Tollef Fog Heen
8d4d3ded3b Write NEWS for 0.24 2010-05-23 23:12:44 +02:00
Tollef Fog Heen
69a7eaa676 Make it possible to escape paths containing special shell characters
Allow paths and other components to contain shell metacharacters, but
escape them on output.  White space has to be escaped in the input
files using quotes or backslashes

Freedesktop.org #3571
2010-05-23 23:11:40 +02:00
Johannes Schmid
5ade770f76 Add --print-provides and --print-requires-private to the manual page 2010-05-10 20:03:28 +02:00
Johannes Schmid
d690466af4 Add --print-provides and --print-requires(-private) options
These are useful for applications that need to query the pkg-config
database, e.g.  managers or IDEs.
2010-05-10 20:02:53 +02:00
Daniel Richard G
0cd0d050c2 Quote the deplibs_check method a bit harder
This makes compiling on HP-UX work.
2010-05-09 10:38:01 +02:00
Dan Nicholson
a048ace79e Optionally use an external popt library
The one imported into pkg-config has seen very little maintenance, so
let's give users the option to use the upstream version. The default is
to use the included sources, but it can search for the system library
using --with-installed-popt.
2010-05-09 10:22:02 +02:00
Dan Nicholson
aa4634eb31 Move popt to subdirectory and make a convenience library of it
This keeps a cleaner separation of the pkg-config sources and the
imported popt sources.
2010-05-09 10:22:02 +02:00
Kirill Smelkov
e58b5b94c6 Fix formatting typo in pkg-config.1
Without <dot>TP, "Requires" and "Requires.private" are rendered as one
paragraph.
2010-05-09 10:18:44 +02:00
Jorn Amundsen
4b80e49ff8 Add listing of variables
Fixes Freedesktop #133
2010-05-09 09:49:13 +02:00
Tollef Fog Heen
c5a3105f41 Handle -idirafter specially
Don't split -idirafter from its argument.

Fixes Freedesktop #23480
2010-05-09 09:43:10 +02:00
Tollef Fog Heen
fbc4f8e076 Fix up man page
Make sure to avoid \ macros at the start of lines, as that makes some
man implementations unhappy.

Fixes freedesktop #17914
2010-05-09 09:02:33 +02:00
Tollef Fog Heen
59af363873 Make it clearer which directory PKG_CONFIG_LIBDIR refers to
Fixes Freedesktop.org #26879
2010-05-08 23:32:46 +02:00
Tollef Fog Heen
479b54fe34 Use $() rather than ``
Fixes Freedesktop.org #27376
2010-05-08 23:29:33 +02:00
Dan Nicholson
02c5f9a2d6 Document --list-all option in man page
Present in the --help output, but not the manual...
2010-05-08 22:30:49 +02:00
Dan Nicholson
b0fb05420c Include an introductory guide to pkg-config
The pkg-config(1) manual includes a lot of details behind pkg-config,
but not the background and usage patterns. This guide tries to provide
users and developers with a starting point for pkg-config.
2010-05-08 22:30:33 +02:00
Dan Nicholson
14e8c68984 Add .gitignore to exclude generated files from tracking
This was basically generated with "git ls-files -o --directory".
2010-05-08 22:23:57 +02:00
Tollef Fog Heen
d363ba6b86 Mark Changelog as no longer kept up to date. 2010-05-08 22:16:12 +02:00
Tollef Fog Heen
726f8e4c13 Update rpmvercmp with bugfixes from RPM
Grab two minor bugfixes from RPM's rpmvercmp.
2010-05-08 22:15:36 +02:00